> 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(®s->cantier, 0); > out_8(®s->canrier, 0); > out_8(®s->canctl0, in_8(®s->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/ |
signature.asc
Description: Digital signature
_______________________________________________ Socketcan-core mailing list Socketcan-core@lists.berlios.de https://lists.berlios.de/mailman/listinfo/socketcan-core