libata: add missing call to ->cable_detect() in new EH path
PATCH 1/1 libata: add missing call to ->cable_detect() in new EH path
->cable_detect() used to be called on by the old ata_bus_probe() path. Add invocation to ata_eh_revalidate_and_attach() right after IDENTIFYs are done.
Signed-off-by Tejun Heo <[email protected]>
Cc Alan Cox <[email protected]>
--- drivers/ata/libata-eh.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/ata/libata-eh.c +4 -0
@@ -1810,6 +1810,10 @@ static int ata_eh_revalidate_and_attach(struct ata_port *ap, } } +/* PDIAG- should have been released, ask cable type if post-reset */ +if ((ehc->i.flags &ATA_EHI_DID_RESET ) && ap->ops->cable_detect) + ap->cbl = ap->ops->cable_detect (ap); +/* Configure new devices forward such that user doesn't see * device detection messages backwards. */
Signature · 1 line
1.5.0.3
Quoted 6 lines · On Mon, 23 Apr 2007 02:05:53 +0900 Tejun Heo <[email protected]> wrote:
->cable_detect() used to be called on by the old
ata_bus_probe()path. Add invocation toata_eh_revalidate_and_attach()right after IDENTIFYs are done.Signed-off-by Tejun Heo <[email protected]>Cc Alan Cox <[email protected]>
Acked-by Alan Cox <[email protected]>
I need to push the "if the drive is SATA the cable is SATA " patch once all this has settled too.
Jeff Garzik
AppliedQuoted 9 lines · Tejun Heo
->cable_detect() used to be called on by the old
ata_bus_probe()path. Add invocation toata_eh_revalidate_and_attach()right after IDENTIFYs are done.Signed-off-by Tejun Heo <[email protected]>Cc Alan Cox <[email protected]>--- drivers/ata/libata-eh.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
applied