projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a74463
)
pata_hpt3x2n: fix cable detection
author
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Thu, 19 Nov 2009 17:38:11 +0000
(18:38 +0100)
committer
Jeff Garzik
<jgarzik@redhat.com>
Thu, 3 Dec 2009 07:46:35 +0000
(
02:46
-0500)
The detection was reversed between primary and secondary ports.
Fix it to match hpt366 and the vendor driver.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_hpt3x2n.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/pata_hpt3x2n.c
b/drivers/ata/pata_hpt3x2n.c
index 3d59fe0a408d66e5859d508fcc759b65c5091edf..2ab9fd6c597f076580f7309a977bc0b0a1d9594b 100644
(file)
--- a/
drivers/ata/pata_hpt3x2n.c
+++ b/
drivers/ata/pata_hpt3x2n.c
@@
-133,7
+133,7
@@
static int hpt3x2n_cable_detect(struct ata_port *ap)
/* Restore state */
pci_write_config_byte(pdev, 0x5B, scr2);
- if (ata66 & (
1 <<
ap->port_no))
+ if (ata66 & (
2 >>
ap->port_no))
return ATA_CBL_PATA40;
else
return ATA_CBL_PATA80;