> This works as well:
> 
>                       /*
>                        * The MSCAN on the MPC5200 does recover from bus-off
>                        * automatically. To avoid that we stop the chip.
>                        */
>   #if 0
>                       mscan_stop(dev);
>                       priv->can.state = CAN_STATE_BUS_OFF;
>   #else
>                       /* Light way stop */
>                       out_8(&regs->cantier, 0);
>                       out_8(&regs->canrier, 0);
>                       out_8(&regs->canctl0, in_8(&regs->canctl0) |

Don't we need CAN_STATE_BUS_OFF here, too?

>                             MSCAN_SLPRQ | MSCAN_INITRQ);
>   #endif
> 
> Wolfgang.

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Socketcan-core mailing list
Socketcan-core@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/socketcan-core

Reply via email to