diff options
author | Ed Lin <ed.lin@promise.com> | 2006-12-04 20:49:31 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-12-05 12:32:30 -0500 |
commit | 47c4f997c7bd9ab142c65950317232728b921aa0 (patch) | |
tree | bc71a435c62f3d6d4038cff313dae5f8fd199b15 | |
parent | 4eea9dc45fa7feb42e6dce32d94ea9ea4d64e40b (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.c | 2 |
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 | } |