pata_hpt366: fix cable detection,
authorTejun Heo <tj@kernel.org>
Tue, 9 Dec 2008 08:13:19 +0000 (17:13 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 16 Dec 2008 10:40:32 +0000 (05:40 -0500)
commitbab5b32a537edc83ff86bff91e46f328339f49f8
treee6a33ecc8968c1e822ce08d9ffe79a72ae239eb1
parentd10d491f842243e2e3bf5a2714020f9d649e1e38
pata_hpt366: fix cable detection,

pata_hpt366 is strange in that its two channels occupy two PCI
functions and both are primary channels and bit1 of PCI configuration
register 0x5A indicates cable for both channels.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_hpt366.c