]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] hpsa: do not skip disabled devices
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Tue, 1 May 2012 16:42:14 +0000 (11:42 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 10 May 2012 08:09:20 +0000 (09:09 +0100)
commit477aa7b8b8575f209acf75bfaf4476fa7ad5ceef
tree5c0a5fb348bf3dc9a5a7fd7fd1d0ad39dbedf92e
parent0d5f448daf88caaf598dfea1d445b801c51aa153
[SCSI] hpsa: do not skip disabled devices

There was code to skip "disabled" devices which was intended to
skip devices disabled in the BIOS, but it really just checks to
see if the device can write to host memory, which this is disabled
by pci_disable_device on driver unload, so this check has the effect
of preventing subsequent load of the driver.  And devices disabled in
the BIOS don't show up at all anyway, so this check never made any
sense to begin with, and should be removed.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/hpsa.c