提交 a93f5cae 编写于 作者: D Dong Aisheng 提交者: Marc Kleine-Budde

can: m_can: fix incorrect error messages

Fix a few error messages.
Signed-off-by: NDong Aisheng <b29396@freescale.com>
Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
上级 7660f633
...@@ -608,14 +608,14 @@ static int m_can_handle_state_errors(struct net_device *dev, u32 psr) ...@@ -608,14 +608,14 @@ static int m_can_handle_state_errors(struct net_device *dev, u32 psr)
if ((psr & PSR_EP) && if ((psr & PSR_EP) &&
(priv->can.state != CAN_STATE_ERROR_PASSIVE)) { (priv->can.state != CAN_STATE_ERROR_PASSIVE)) {
netdev_dbg(dev, "entered error warning state\n"); netdev_dbg(dev, "entered error passive state\n");
work_done += m_can_handle_state_change(dev, work_done += m_can_handle_state_change(dev,
CAN_STATE_ERROR_PASSIVE); CAN_STATE_ERROR_PASSIVE);
} }
if ((psr & PSR_BO) && if ((psr & PSR_BO) &&
(priv->can.state != CAN_STATE_BUS_OFF)) { (priv->can.state != CAN_STATE_BUS_OFF)) {
netdev_dbg(dev, "entered error warning state\n"); netdev_dbg(dev, "entered error bus off state\n");
work_done += m_can_handle_state_change(dev, work_done += m_can_handle_state_change(dev,
CAN_STATE_BUS_OFF); CAN_STATE_BUS_OFF);
} }
...@@ -627,7 +627,7 @@ static void m_can_handle_other_err(struct net_device *dev, u32 irqstatus) ...@@ -627,7 +627,7 @@ static void m_can_handle_other_err(struct net_device *dev, u32 irqstatus)
{ {
if (irqstatus & IR_WDI) if (irqstatus & IR_WDI)
netdev_err(dev, "Message RAM Watchdog event due to missing READY\n"); netdev_err(dev, "Message RAM Watchdog event due to missing READY\n");
if (irqstatus & IR_BEU) if (irqstatus & IR_ELO)
netdev_err(dev, "Error Logging Overflow\n"); netdev_err(dev, "Error Logging Overflow\n");
if (irqstatus & IR_BEU) if (irqstatus & IR_BEU)
netdev_err(dev, "Bit Error Uncorrected\n"); netdev_err(dev, "Bit Error Uncorrected\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册