summaryrefslogtreecommitdiffstats
path: root/drivers/ata/ata_piix.c
diff options
context:
space:
mode:
authorTejun Heo2006-08-20 10:56:38 +0200
committerJeff Garzik2006-08-22 12:07:48 +0200
commitf1a58ecae527fc67c87ce4dcb9e73894f64aadfe (patch)
treee89e6440350a6990023b77fd5a0d7e9f5f9c4b28 /drivers/ata/ata_piix.c
parentMerge branch 'master' into upstream-fixes (diff)
downloadkernel-qcow2-linux-f1a58ecae527fc67c87ce4dcb9e73894f64aadfe.tar.gz
kernel-qcow2-linux-f1a58ecae527fc67c87ce4dcb9e73894f64aadfe.tar.xz
kernel-qcow2-linux-f1a58ecae527fc67c87ce4dcb9e73894f64aadfe.zip
[PATCH] ata_piix: fix ghost device probing by honoring PCS present bits
Move out PCS handling from piix_sata_prereset() into piix_sata_present_mask() and use it from newly implemented piix_sata_softreset(). Class codes for devices which are indicated to be absent by PCS are cleared to ATA_DEV_NONE. This fixes ghost device problem reported on ICH6 and 7. This patch moves PCS handling from prereset to softreset, which makes two behavior changes. * perform softreset even when PCS indicates no device * PCS handling is repeated before retrying softresets due to reset failures. Both behavior changes are intended and more consistent with how other drivers behave. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/ata_piix.c')
0 files changed, 0 insertions, 0 deletions