aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2011-02-15 16:33:08 -0500
committerJames Bottomley <James.Bottomley@suse.de>2011-02-18 13:34:14 -0500
commitba95e2ac6bfeb9af92153058a353fc47e1addc02 (patch)
treeabe7c935b0da778d17d2c9ec86ab6b1a594c4b78 /drivers
parent960a30e7a73affcc441b9ceaff3b1b9e73e99c1f (diff)
[SCSI] hpsa: Do not attempt kdump if we detect resetting controller failed.
We can get completions left over from before the attempted reset which will interfere with the kdump. Better to just not make the attempt in that case. Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/hpsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index a778cb1fd8bc..eb6938fe77b0 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -3264,13 +3264,13 @@ static __devinit int hpsa_kdump_hard_reset_controller(struct pci_dev *pdev)
3264 * It means we're on one of those controllers which doesn't support 3264 * It means we're on one of those controllers which doesn't support
3265 * the doorbell reset method and on which the PCI power management reset 3265 * the doorbell reset method and on which the PCI power management reset
3266 * method doesn't work (P800, for example.) 3266 * method doesn't work (P800, for example.)
3267 * In those cases, pretend the reset worked and hope for the best. 3267 * In those cases, don't try to proceed, as it generally doesn't work.
3268 */ 3268 */
3269 active_transport = readl(&cfgtable->TransportActive); 3269 active_transport = readl(&cfgtable->TransportActive);
3270 if (active_transport & PERFORMANT_MODE) { 3270 if (active_transport & PERFORMANT_MODE) {
3271 dev_warn(&pdev->dev, "Unable to successfully reset controller," 3271 dev_warn(&pdev->dev, "Unable to successfully reset controller,"
3272 " proceeding anyway.\n"); 3272 " Ignoring controller.\n");
3273 rc = -ENOTSUPP; 3273 rc = -ENODEV;
3274 } 3274 }
3275 3275
3276unmap_cfgtable: 3276unmap_cfgtable: