From: Mirza Krak Date: Fri, 8 Aug 2014 12:30:50 +0000 (+0200) Subject: can: sja1000: Validate initialization state in start method X-Git-Tag: omap-for-v3.17/fixes-against-rc2~24^2~10^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e37bc6c635a85e0ae3067f19d6f84e1c4516a6c;p=pandora-kernel.git 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 Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed