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:31 -0400 |
commit | 0260731f0187840e272bfa10d3ba0f3e417976f5 (patch) | |
tree | d39219275e89ce782f3151b5ac47726957a81e24 /drivers/ata/ata_generic.c | |
parent | cc0680a580b5be81a1ca321b58f8e9b80b5c1052 (diff) |
libata-link: linkify config/EH related functions
Make the following functions deal with ata_link instead of ata_port.
* ata_set_mode()
* ata_eh_autopsy() and related functions
* ata_eh_report() and related functions
* suspend/resume related functions
* ata_eh_recover() and related functions
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/ata_generic.c')
-rw-r--r-- | drivers/ata/ata_generic.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ata/ata_generic.c b/drivers/ata/ata_generic.c index 44328a16075c..e390ad47c8ef 100644 --- a/drivers/ata/ata_generic.c +++ b/drivers/ata/ata_generic.c | |||
@@ -34,7 +34,7 @@ | |||
34 | 34 | ||
35 | /** | 35 | /** |
36 | * generic_set_mode - mode setting | 36 | * generic_set_mode - mode setting |
37 | * @ap: interface to set up | 37 | * @link: link to set up |
38 | * @unused: returned device on error | 38 | * @unused: returned device on error |
39 | * | 39 | * |
40 | * Use a non standard set_mode function. We don't want to be tuned. | 40 | * Use a non standard set_mode function. We don't want to be tuned. |
@@ -43,8 +43,9 @@ | |||
43 | * and respect them. | 43 | * and respect them. |
44 | */ | 44 | */ |
45 | 45 | ||
46 | static int generic_set_mode(struct ata_port *ap, struct ata_device **unused) | 46 | static int generic_set_mode(struct ata_link *link, struct ata_device **unused) |
47 | { | 47 | { |
48 | struct ata_port *ap = link->ap; | ||
48 | int dma_enabled = 0; | 49 | int dma_enabled = 0; |
49 | struct ata_device *dev; | 50 | struct ata_device *dev; |
50 | 51 | ||
@@ -52,7 +53,7 @@ static int generic_set_mode(struct ata_port *ap, struct ata_device **unused) | |||
52 | if (ap->ioaddr.bmdma_addr) | 53 | if (ap->ioaddr.bmdma_addr) |
53 | dma_enabled = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); | 54 | dma_enabled = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_STATUS); |
54 | 55 | ||
55 | ata_link_for_each_dev(dev, &ap->link) { | 56 | ata_link_for_each_dev(dev, link) { |
56 | if (ata_dev_enabled(dev)) { | 57 | if (ata_dev_enabled(dev)) { |
57 | /* We don't really care */ | 58 | /* We don't really care */ |
58 | dev->pio_mode = XFER_PIO_0; | 59 | dev->pio_mode = XFER_PIO_0; |