[libata] sata_mv: support ->cable_detect
authorJeff Garzik <jeff@garzik.org>
Fri, 9 Mar 2007 14:46:47 +0000 (09:46 -0500)
committerJeff Garzik <jeff@garzik.org>
Sat, 28 Apr 2007 18:15:58 +0000 (14:15 -0400)
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_mv.c

index 2580beb70539b31609e5c547f38ae88182e53118..10cad5d9a76d56cfc1126db9b24f2edbf4fa9a80 100644 (file)
@@ -402,6 +402,7 @@ static const struct ata_port_operations mv5_ops = {
        .dev_select             = ata_std_dev_select,
 
        .phy_reset              = mv_phy_reset,
+       .cable_detect           = ata_cable_sata,
 
        .qc_prep                = mv_qc_prep,
        .qc_issue               = mv_qc_issue,
@@ -431,6 +432,7 @@ static const struct ata_port_operations mv6_ops = {
        .dev_select             = ata_std_dev_select,
 
        .phy_reset              = mv_phy_reset,
+       .cable_detect           = ata_cable_sata,
 
        .qc_prep                = mv_qc_prep,
        .qc_issue               = mv_qc_issue,
@@ -460,6 +462,7 @@ static const struct ata_port_operations mv_iie_ops = {
        .dev_select             = ata_std_dev_select,
 
        .phy_reset              = mv_phy_reset,
+       .cable_detect           = ata_cable_sata,
 
        .qc_prep                = mv_qc_prep_iie,
        .qc_issue               = mv_qc_issue,
@@ -1972,7 +1975,6 @@ comreset_retry:
                ata_port_disable(ap);
                return;
        }
-       ap->cbl = ATA_CBL_SATA;
 
        /* even after SStatus reflects that device is ready,
         * it seems to take a while for link to be fully