mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[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 <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
4eea9dc45f
commit
47c4f997c7
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue