diff options
author | Tejun Heo <htejun@gmail.com> | 2007-08-06 05:36:23 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-12 14:55:30 -0400 |
commit | 936fd7328657884d5a69a55666c74a55aa83ca27 (patch) | |
tree | 83a78a02d2c65ce835fe33882dfe5043d3240bff /drivers/ata/ahci.c | |
parent | f58229f8060055b08b34008ea08f31de1e2f003c (diff) |
libata-link: linkify PHY-related functions
Make the following PHY-related functions to deal with ata_link instead
of ata_port.
* sata_print_link_status()
* sata_down_spd_limit()
* ata_set_sata_spd_limit() and friends
* sata_link_debounce/resume()
* sata_scr_valid/read/write/write_flush()
* ata_link_on/offline()
This patch introduces no behavior change.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r-- | drivers/ata/ahci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index c72fa468a697..6e5f69a3a0c2 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c | |||
@@ -1052,7 +1052,7 @@ static int ahci_do_softreset(struct ata_port *ap, unsigned int *class, | |||
1052 | 1052 | ||
1053 | DPRINTK("ENTER\n"); | 1053 | DPRINTK("ENTER\n"); |
1054 | 1054 | ||
1055 | if (ata_port_offline(ap)) { | 1055 | if (ata_link_offline(&ap->link)) { |
1056 | DPRINTK("PHY reports no device\n"); | 1056 | DPRINTK("PHY reports no device\n"); |
1057 | *class = ATA_DEV_NONE; | 1057 | *class = ATA_DEV_NONE; |
1058 | return 0; | 1058 | return 0; |
@@ -1140,7 +1140,7 @@ static int ahci_hardreset(struct ata_port *ap, unsigned int *class, | |||
1140 | 1140 | ||
1141 | ahci_start_engine(ap); | 1141 | ahci_start_engine(ap); |
1142 | 1142 | ||
1143 | if (rc == 0 && ata_port_online(ap)) | 1143 | if (rc == 0 && ata_link_online(&ap->link)) |
1144 | *class = ahci_dev_classify(ap); | 1144 | *class = ahci_dev_classify(ap); |
1145 | if (*class == ATA_DEV_UNKNOWN) | 1145 | if (*class == ATA_DEV_UNKNOWN) |
1146 | *class = ATA_DEV_NONE; | 1146 | *class = ATA_DEV_NONE; |