diff options
Diffstat (limited to 'drivers/scsi/libsas/sas_ata.c')
-rw-r--r-- | drivers/scsi/libsas/sas_ata.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c index 2ec255839dcd..e81f2fd8ba8b 100644 --- a/drivers/scsi/libsas/sas_ata.c +++ b/drivers/scsi/libsas/sas_ata.c | |||
@@ -225,6 +225,14 @@ static unsigned int sas_ata_qc_issue(struct ata_queued_cmd *qc) | |||
225 | return 0; | 225 | return 0; |
226 | } | 226 | } |
227 | 227 | ||
228 | static bool sas_ata_qc_fill_rtf(struct ata_queued_cmd *qc) | ||
229 | { | ||
230 | struct domain_device *dev = qc->ap->private_data; | ||
231 | |||
232 | memcpy(&qc->result_tf, &dev->sata_dev.tf, sizeof(qc->result_tf)); | ||
233 | return true; | ||
234 | } | ||
235 | |||
228 | static u8 sas_ata_check_status(struct ata_port *ap) | 236 | static u8 sas_ata_check_status(struct ata_port *ap) |
229 | { | 237 | { |
230 | struct domain_device *dev = ap->private_data; | 238 | struct domain_device *dev = ap->private_data; |
@@ -292,12 +300,6 @@ static void sas_ata_post_internal(struct ata_queued_cmd *qc) | |||
292 | } | 300 | } |
293 | } | 301 | } |
294 | 302 | ||
295 | static void sas_ata_tf_read(struct ata_port *ap, struct ata_taskfile *tf) | ||
296 | { | ||
297 | struct domain_device *dev = ap->private_data; | ||
298 | memcpy(tf, &dev->sata_dev.tf, sizeof (*tf)); | ||
299 | } | ||
300 | |||
301 | static int sas_ata_scr_write(struct ata_port *ap, unsigned int sc_reg_in, | 303 | static int sas_ata_scr_write(struct ata_port *ap, unsigned int sc_reg_in, |
302 | u32 val) | 304 | u32 val) |
303 | { | 305 | { |
@@ -353,10 +355,9 @@ static struct ata_port_operations sas_sata_ops = { | |||
353 | .sff_dev_select = ata_noop_dev_select, | 355 | .sff_dev_select = ata_noop_dev_select, |
354 | .phy_reset = sas_ata_phy_reset, | 356 | .phy_reset = sas_ata_phy_reset, |
355 | .post_internal_cmd = sas_ata_post_internal, | 357 | .post_internal_cmd = sas_ata_post_internal, |
356 | .sff_tf_read = sas_ata_tf_read, | ||
357 | .qc_prep = ata_noop_qc_prep, | 358 | .qc_prep = ata_noop_qc_prep, |
358 | .qc_issue = sas_ata_qc_issue, | 359 | .qc_issue = sas_ata_qc_issue, |
359 | .qc_fill_rtf = ata_sff_qc_fill_rtf, | 360 | .qc_fill_rtf = sas_ata_qc_fill_rtf, |
360 | .port_start = ata_sas_port_start, | 361 | .port_start = ata_sas_port_start, |
361 | .port_stop = ata_sas_port_stop, | 362 | .port_stop = ata_sas_port_stop, |
362 | .scr_read = sas_ata_scr_read, | 363 | .scr_read = sas_ata_scr_read, |