Skip to content
Commit 9e37bc6c authored by Mirza Krak's avatar Mirza Krak Committed by Marc Kleine-Budde
Browse files

can: sja1000: Validate initialization state in start method



When sja1000 is not compiled as module the SJA1000 chip is only
initialized during device registration on kernel boot. Should the chip
get a hardware reset there is no way to reinitialize it without re-
booting the Linux kernel.

This patch adds a check in sja1000_start if the chip is initialized, if
not we initialize it.

Signed-off-by: default avatarMirza Krak <mirza.krak@hostmobility.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 02784f1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment