summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBrian King <brking@linux.vnet.ibm.com>2007-03-29 19:43:23 +0200
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-04-01 18:17:42 +0200
commita9aedb098437655b7b78d66e0e28405830cbdbef (patch)
tree63bc6ce9f75ecf3c535b97f72f623b2b13ca861e /drivers
parent[SCSI] ipr: Fix for oops following SATA request sense (diff)
downloadlinux-a9aedb098437655b7b78d66e0e28405830cbdbef.tar.xz
linux-a9aedb098437655b7b78d66e0e28405830cbdbef.zip
[SCSI] ipr: PCI unblock config access fix
Fix to make sure user config accesses get re-enabled if the PCI config write to start BIST fails. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/ipr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index fc1171c7def4..b502c831cc5e 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -6390,6 +6390,7 @@ static int ipr_reset_start_bist(struct ipr_cmnd *ipr_cmd)
rc = pci_write_config_byte(ioa_cfg->pdev, PCI_BIST, PCI_BIST_START);
if (rc != PCIBIOS_SUCCESSFUL) {
+ pci_unblock_user_cfg_access(ipr_cmd->ioa_cfg->pdev);
ipr_cmd->ioasa.ioasc = cpu_to_be32(IPR_IOASC_PCI_ACCESS_ERROR);
rc = IPR_RC_JOB_CONTINUE;
} else {