diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-06-19 12:12:50 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-06-19 12:30:27 -0400 |
commit | d3543b4d1b48afd931ed4afb6f861e6122657b6f (patch) | |
tree | 058779ccd6dd3d12e8785ea41f1e98a0d68be6ac | |
parent | 258c4e5c65b21bdbe9735f49ea584b3059c810e4 (diff) |
sata_fsl: convert to command iterator
We need to iterate all commands, including the internal one,
for ATAPI error handling.
Fixes: 28361c403683 ("libata: add extra internal command")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r-- | drivers/ata/sata_fsl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index b8d9cfc60374..bb5ec5f71e73 100644 --- a/drivers/ata/sata_fsl.c +++ b/drivers/ata/sata_fsl.c | |||
@@ -1229,8 +1229,7 @@ static void sata_fsl_host_intr(struct ata_port *ap) | |||
1229 | 1229 | ||
1230 | /* Workaround for data length mismatch errata */ | 1230 | /* Workaround for data length mismatch errata */ |
1231 | if (unlikely(hstatus & INT_ON_DATA_LENGTH_MISMATCH)) { | 1231 | if (unlikely(hstatus & INT_ON_DATA_LENGTH_MISMATCH)) { |
1232 | for (tag = 0; tag < ATA_MAX_QUEUE; tag++) { | 1232 | ata_qc_for_each_with_internal(ap, qc, tag) { |
1233 | qc = ata_qc_from_tag(ap, tag); | ||
1234 | if (qc && ata_is_atapi(qc->tf.protocol)) { | 1233 | if (qc && ata_is_atapi(qc->tf.protocol)) { |
1235 | u32 hcontrol; | 1234 | u32 hcontrol; |
1236 | /* Set HControl[27] to clear error registers */ | 1235 | /* Set HControl[27] to clear error registers */ |