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/sata_inic162x.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/sata_inic162x.c')
-rw-r--r-- | drivers/ata/sata_inic162x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/sata_inic162x.c b/drivers/ata/sata_inic162x.c index 3c0ef7a2f2fe..f2b1bea934bc 100644 --- a/drivers/ata/sata_inic162x.c +++ b/drivers/ata/sata_inic162x.c | |||
@@ -435,7 +435,7 @@ static int inic_hardreset(struct ata_port *ap, unsigned int *class, | |||
435 | msleep(1); | 435 | msleep(1); |
436 | writew(val & ~IDMA_CTL_RST_ATA, idma_ctl); | 436 | writew(val & ~IDMA_CTL_RST_ATA, idma_ctl); |
437 | 437 | ||
438 | rc = sata_phy_resume(ap, timing, deadline); | 438 | rc = sata_link_resume(&ap->link, timing, deadline); |
439 | if (rc) { | 439 | if (rc) { |
440 | ata_port_printk(ap, KERN_WARNING, "failed to resume " | 440 | ata_port_printk(ap, KERN_WARNING, "failed to resume " |
441 | "link after reset (errno=%d)\n", rc); | 441 | "link after reset (errno=%d)\n", rc); |
@@ -443,7 +443,7 @@ static int inic_hardreset(struct ata_port *ap, unsigned int *class, | |||
443 | } | 443 | } |
444 | 444 | ||
445 | *class = ATA_DEV_NONE; | 445 | *class = ATA_DEV_NONE; |
446 | if (ata_port_online(ap)) { | 446 | if (ata_link_online(&ap->link)) { |
447 | struct ata_taskfile tf; | 447 | struct ata_taskfile tf; |
448 | 448 | ||
449 | /* wait a while before checking status */ | 449 | /* wait a while before checking status */ |