projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c567b7
)
[PATCH] ahci: hardreset classification fix
author
Tejun Heo
<htejun@gmail.com>
Mon, 15 May 2006 11:57:25 +0000
(20:57 +0900)
committer
Tejun Heo
<htejun@gmail.com>
Mon, 15 May 2006 11:57:25 +0000
(20:57 +0900)
AHCI calls ata_dev_classify() even when no device is attached which
results in false class code. Fix it.
Signed-off-by: Tejun Heo <htejun@gmail.com>
drivers/scsi/ahci.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/ahci.c
b/drivers/scsi/ahci.c
index d23f00230a76ae858c431bcc4023d790bfc4faa7..c33255404ee5d0d309a46fca429a76d75a657aab 100644
(file)
--- a/
drivers/scsi/ahci.c
+++ b/
drivers/scsi/ahci.c
@@
-670,7
+670,7
@@
static int ahci_hardreset(struct ata_port *ap, unsigned int *class)
rc = sata_std_hardreset(ap, class);
ahci_start_engine(ap);
- if (rc == 0)
+ if (rc == 0
&& sata_dev_present(ap)
)
*class = ahci_dev_classify(ap);
if (*class == ATA_DEV_UNKNOWN)
*class = ATA_DEV_NONE;