summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/stex.c
diff options
context:
space:
mode:
authorEd Lin <ed.lin@promise.com>2006-12-04 17:49:31 -0800
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-12-05 11:32:30 -0600
commit47c4f997c7bd9ab142c65950317232728b921aa0 (patch)
treebc71a435c62f3d6d4038cff313dae5f8fd199b15 /drivers/scsi/stex.c
parent4eea9dc45fa7feb42e6dce32d94ea9ea4d64e40b (diff)
downloadlinux-47c4f997c7bd9ab142c65950317232728b921aa0.tar.bz2
[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>
Diffstat (limited to 'drivers/scsi/stex.c')
-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)
for (i = 0; i < MU_MAX_DELAY_TIME; i++) {
pci_read_config_word(hba->pdev, PCI_COMMAND, &pci_cmd);
- if (pci_cmd & PCI_COMMAND_MASTER)
+ if (pci_cmd != 0xffff && (pci_cmd & PCI_COMMAND_MASTER))
break;
msleep(1);
}