diff options
author | Mirza Krak <mirza.krak@hostmobility.com> | 2014-08-08 14:30:50 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-08-21 10:49:34 +0200 |
commit | 9e37bc6c635a85e0ae3067f19d6f84e1c4516a6c (patch) | |
tree | b2d78309495db7433d427c35f463727e18faf4ab /firmware/bnx2 | |
parent | 02784f1b05b8f241c8180af88869e717e2758593 (diff) | |
download | linux-9e37bc6c635a85e0ae3067f19d6f84e1c4516a6c.tar.bz2 |
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: Mirza Krak <mirza.krak@hostmobility.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'firmware/bnx2')
0 files changed, 0 insertions, 0 deletions