diff options
author | Ed Lin <ed.lin@promise.com> | 2006-12-05 02:49:31 +0100 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-12-05 18:32:30 +0100 |
commit | 47c4f997c7bd9ab142c65950317232728b921aa0 (patch) | |
tree | bc71a435c62f3d6d4038cff313dae5f8fd199b15 /drivers/scsi | |
parent | [SCSI] stex: fix controller_info command handling (diff) | |
download | linux-47c4f997c7bd9ab142c65950317232728b921aa0.tar.xz linux-47c4f997c7bd9ab142c65950317232728b921aa0.zip |
[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')
-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); } |