mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
sata_fsl: convert to command iterator
We need to iterate all commands, including the internal one,
for ATAPI error handling.
Fixes: 28361c4036 ("libata: add extra internal command")
Signed-off-by: Jens Axboe <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
This commit is contained in:
parent
258c4e5c65
commit
d3543b4d1b
1 changed files with 1 additions and 2 deletions
|
|
@ -1229,8 +1229,7 @@ static void sata_fsl_host_intr(struct ata_port *ap)
|
|||
|
||||
/* Workaround for data length mismatch errata */
|
||||
if (unlikely(hstatus & INT_ON_DATA_LENGTH_MISMATCH)) {
|
||||
for (tag = 0; tag < ATA_MAX_QUEUE; tag++) {
|
||||
qc = ata_qc_from_tag(ap, tag);
|
||||
ata_qc_for_each_with_internal(ap, qc, tag) {
|
||||
if (qc && ata_is_atapi(qc->tf.protocol)) {
|
||||
u32 hcontrol;
|
||||
/* Set HControl[27] to clear error registers */
|
||||
|
|
|
|||
Loading…
Reference in a new issue