From: Rasesh Mody Date: Thu, 14 Apr 2011 08:05:18 +0000 (+0000) Subject: bna: fix for clean fw re-initialization X-Git-Tag: v2.6.39-rc5~40^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79ea6c8966b861f80e77a14b2acf581563f3c83e;p=pandora-kernel.git bna: fix for clean fw re-initialization During a kernel crash, bna control path state machine and firmware do not get a notification and hence are not cleanly shutdown. The registers holding driver/IOC state information are not reset back to valid disabled/parking values. This causes subsequent driver initialization to hang during kdump kernel boot. This patch, during the initialization of first PCI function, resets corresponding register when unclean shutown is detect by reading chip registers. This will make sure that ioc/fw gets clean re-initialization. Signed-off-by: Debashis Dutt Signed-off-by: Rasesh Mody Signed-off-by: David S. Miller --- Reading git-diff-tree failed