提交 377a1f0b 编写于 作者: W Wolfram Sang 提交者: David S. Miller

net/can/mscan: drop support for CAN_MODE_{SLEEP|STOP}

The upper layer does not support it yet.
Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0285e7ce
......@@ -487,14 +487,6 @@ static int mscan_do_set_mode(struct net_device *dev, enum can_mode mode)
return -EINVAL;
switch (mode) {
case CAN_MODE_SLEEP:
case CAN_MODE_STOP:
netif_stop_queue(dev);
mscan_set_mode(dev,
(mode ==
CAN_MODE_STOP) ? MSCAN_INIT_MODE :
MSCAN_SLEEP_MODE);
break;
case CAN_MODE_START:
if (priv->can.state <= CAN_STATE_BUS_OFF)
mscan_set_mode(dev, MSCAN_INIT_MODE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册