projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eea9dc
)
[SCSI] stex: add value check in hard reset routine
author
Ed Lin
<ed.lin@promise.com>
Tue, 5 Dec 2006 01:49:31 +0000
(17:49 -0800)
committer
James Bottomley
<jejb@mulgrave.il.steeleye.com>
Tue, 5 Dec 2006 17:32:30 +0000
(11:32 -0600)
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>
drivers/scsi/stex.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/stex.c
b/drivers/scsi/stex.c
index
ea0d824
..
92dbac0
100644
(file)
--- 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);
}