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