]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] ipr: PCI unblock config access fix
authorBrian King <brking@linux.vnet.ibm.com>
Thu, 29 Mar 2007 17:43:23 +0000 (12:43 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sun, 1 Apr 2007 16:17:42 +0000 (11:17 -0500)
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>
drivers/scsi/ipr.c

index fc1171c7def40aafc1cb5bd3c1499bb6a52318b2..b502c831cc5e7ba927644d1413a01f7db939eec4 100644 (file)
@@ -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 {