From: Oliver Hartkopp Date: Wed, 15 Feb 2012 16:51:56 +0000 (+0100) Subject: can: sja1000: fix isr hang when hw is unplugged under load X-Git-Tag: v3.2.9~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bda01cc81b40639565e63223d7c5413bb15b99a;p=pandora-kernel.git can: sja1000: fix isr hang when hw is unplugged under load commit a7762b10c12a70c5dbf2253142764b728ac88c3a upstream. In the case of hotplug enabled devices (PCMCIA/PCIeC) the removal of the hardware can cause an infinite loop in the common sja1000 isr. Use the already retrieved status register to indicate a possible hardware removal and double check by reading the mode register in sja1000_is_absent. Signed-off-by: Oliver Hartkopp Acked-by: Wolfgang Grandegger Signed-off-by: Marc Kleine-Budde Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed