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 | cc0680a580b5be81a1ca321b58f8e9b80b5c1052 (patch) | |
tree | 57454cdfdc9890f4e8d9f532e9cd240c7361951f /drivers/scsi/ipr.c | |
parent | 955e57dfde4ff75e4d7329ac7a3d645b16015309 (diff) |
libata-link: linkify reset
Make reset methods and related functions deal with ata_link instead of
ata_port.
* ata_do_reset()
* ata_eh_reset()
* all prereset/reset/postreset methods and related functions
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/scsi/ipr.c')
-rw-r--r-- | drivers/scsi/ipr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index affd77aafb23..9350fbf39f77 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c | |||
@@ -3829,18 +3829,18 @@ static int ipr_device_reset(struct ipr_ioa_cfg *ioa_cfg, | |||
3829 | 3829 | ||
3830 | /** | 3830 | /** |
3831 | * ipr_sata_reset - Reset the SATA port | 3831 | * ipr_sata_reset - Reset the SATA port |
3832 | * @ap: SATA port to reset | 3832 | * @link: SATA link to reset |
3833 | * @classes: class of the attached device | 3833 | * @classes: class of the attached device |
3834 | * | 3834 | * |
3835 | * This function issues a SATA phy reset to the affected ATA port. | 3835 | * This function issues a SATA phy reset to the affected ATA link. |
3836 | * | 3836 | * |
3837 | * Return value: | 3837 | * Return value: |
3838 | * 0 on success / non-zero on failure | 3838 | * 0 on success / non-zero on failure |
3839 | **/ | 3839 | **/ |
3840 | static int ipr_sata_reset(struct ata_port *ap, unsigned int *classes, | 3840 | static int ipr_sata_reset(struct ata_link *link, unsigned int *classes, |
3841 | unsigned long deadline) | 3841 | unsigned long deadline) |
3842 | { | 3842 | { |
3843 | struct ipr_sata_port *sata_port = ap->private_data; | 3843 | struct ipr_sata_port *sata_port = link->ap->private_data; |
3844 | struct ipr_ioa_cfg *ioa_cfg = sata_port->ioa_cfg; | 3844 | struct ipr_ioa_cfg *ioa_cfg = sata_port->ioa_cfg; |
3845 | struct ipr_resource_entry *res; | 3845 | struct ipr_resource_entry *res; |
3846 | unsigned long lock_flags = 0; | 3846 | unsigned long lock_flags = 0; |