diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-05-11 14:51:04 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-05-11 16:10:43 -0400 |
commit | 4e5b6260cc9ba84ec127f948173ff7d87581f029 (patch) | |
tree | 07b766f1a1164c347ef59ca14bed3e4b4d65b410 /drivers/ata/libahci.c | |
parent | 5ac40790b4708e4cb1a64ba2cb77320939bc5240 (diff) |
libata: convert core and drivers to ->hw_tag usage
Anything that goes to the hardware should use ->hw_tag, anything
related to internal lookup should be using ->tag.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/libahci.c')
-rw-r--r-- | drivers/ata/libahci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 7adcf3caabd0..d043597295fa 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c | |||
@@ -1645,7 +1645,7 @@ static void ahci_qc_prep(struct ata_queued_cmd *qc) | |||
1645 | * Fill in command table information. First, the header, | 1645 | * Fill in command table information. First, the header, |
1646 | * a SATA Register - Host to Device command FIS. | 1646 | * a SATA Register - Host to Device command FIS. |
1647 | */ | 1647 | */ |
1648 | cmd_tbl = pp->cmd_tbl + qc->tag * AHCI_CMD_TBL_SZ; | 1648 | cmd_tbl = pp->cmd_tbl + qc->hw_tag * AHCI_CMD_TBL_SZ; |
1649 | 1649 | ||
1650 | ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, cmd_tbl); | 1650 | ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, cmd_tbl); |
1651 | if (is_atapi) { | 1651 | if (is_atapi) { |
@@ -1666,7 +1666,7 @@ static void ahci_qc_prep(struct ata_queued_cmd *qc) | |||
1666 | if (is_atapi) | 1666 | if (is_atapi) |
1667 | opts |= AHCI_CMD_ATAPI | AHCI_CMD_PREFETCH; | 1667 | opts |= AHCI_CMD_ATAPI | AHCI_CMD_PREFETCH; |
1668 | 1668 | ||
1669 | ahci_fill_cmd_slot(pp, qc->tag, opts); | 1669 | ahci_fill_cmd_slot(pp, qc->hw_tag, opts); |
1670 | } | 1670 | } |
1671 | 1671 | ||
1672 | static void ahci_fbs_dec_intr(struct ata_port *ap) | 1672 | static void ahci_fbs_dec_intr(struct ata_port *ap) |
@@ -2002,7 +2002,7 @@ unsigned int ahci_qc_issue(struct ata_queued_cmd *qc) | |||
2002 | pp->active_link = qc->dev->link; | 2002 | pp->active_link = qc->dev->link; |
2003 | 2003 | ||
2004 | if (ata_is_ncq(qc->tf.protocol)) | 2004 | if (ata_is_ncq(qc->tf.protocol)) |
2005 | writel(1 << qc->tag, port_mmio + PORT_SCR_ACT); | 2005 | writel(1 << qc->hw_tag, port_mmio + PORT_SCR_ACT); |
2006 | 2006 | ||
2007 | if (pp->fbs_enabled && pp->fbs_last_dev != qc->dev->link->pmp) { | 2007 | if (pp->fbs_enabled && pp->fbs_last_dev != qc->dev->link->pmp) { |
2008 | u32 fbs = readl(port_mmio + PORT_FBS); | 2008 | u32 fbs = readl(port_mmio + PORT_FBS); |
@@ -2012,7 +2012,7 @@ unsigned int ahci_qc_issue(struct ata_queued_cmd *qc) | |||
2012 | pp->fbs_last_dev = qc->dev->link->pmp; | 2012 | pp->fbs_last_dev = qc->dev->link->pmp; |
2013 | } | 2013 | } |
2014 | 2014 | ||
2015 | writel(1 << qc->tag, port_mmio + PORT_CMD_ISSUE); | 2015 | writel(1 << qc->hw_tag, port_mmio + PORT_CMD_ISSUE); |
2016 | 2016 | ||
2017 | ahci_sw_activity(qc->dev->link); | 2017 | ahci_sw_activity(qc->dev->link); |
2018 | 2018 | ||