aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Lin <ed.lin@promise.com>2006-12-04 20:49:31 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-12-05 12:32:30 -0500
commit47c4f997c7bd9ab142c65950317232728b921aa0 (patch)
treebc71a435c62f3d6d4038cff313dae5f8fd199b15
parent4eea9dc45fa7feb42e6dce32d94ea9ea4d64e40b (diff)
[SCSI] stex: add value check in hard reset routine
During hard reset, an all-1 value from PCI_COMMAND should be invalid. Signed-off-by: Ed Lin <ed.lin@promise.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r--drivers/scsi/stex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index ea0d82461317..92dbac03c2e5 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -1041,7 +1041,7 @@ static void stex_hard_reset(struct st_hba *hba)
1041 1041
1042 for (i = 0; i < MU_MAX_DELAY_TIME; i++) { 1042 for (i = 0; i < MU_MAX_DELAY_TIME; i++) {
1043 pci_read_config_word(hba->pdev, PCI_COMMAND, &pci_cmd); 1043 pci_read_config_word(hba->pdev, PCI_COMMAND, &pci_cmd);
1044 if (pci_cmd & PCI_COMMAND_MASTER) 1044 if (pci_cmd != 0xffff && (pci_cmd & PCI_COMMAND_MASTER))
1045 break; 1045 break;
1046 msleep(1); 1046 msleep(1);
1047 } 1047 }