From: Johannes Berg Date: Tue, 19 Apr 2011 14:38:23 +0000 (-0700) Subject: iwlagn: avoid hangs when restarting device X-Git-Tag: v3.0-rc1~377^2~161^2^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d39e5bad76a8830a8fa0c03cadc1e36ce2ec2ef;p=pandora-kernel.git iwlagn: avoid hangs when restarting device If a device error happens while the uCode is being loaded or initialised, we will attempt to restart the device (which will likely fail again, but that's not the issue here). During this new restart, we turn off the device, but as the uCode failed to initialise it already is turned off. As a consequence, grabbing NIC access will fail and cause excessive messages and hangs. To fix this issue, introduce a new status bit and only attempt to reprogram the device when it isn't already disabled. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy --- Reading git-diff-tree failed