mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-19 05:24:11 +00:00
ata: sata_nv: Fix retrieving of active qcs
ata_qc_complete_multiple() has to be called with the tags physically active, that is the hw tag is at bit 0. ap->qc_active has the same tag at bit ATA_TAG_INTERNAL instead, so call ata_qc_get_active() to fix that up. This is done in the vein of8385d756e1
("libata: Fix retrieving of active qcs"). Fixes:28361c4036
("libata: add extra internal command") Tested-by: Pali Rohár <pali@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
94bd5719e4
commit
8e4c309f9f
1 changed files with 1 additions and 1 deletions
|
@ -2100,7 +2100,7 @@ static int nv_swncq_sdbfis(struct ata_port *ap)
|
||||||
pp->dhfis_bits &= ~done_mask;
|
pp->dhfis_bits &= ~done_mask;
|
||||||
pp->dmafis_bits &= ~done_mask;
|
pp->dmafis_bits &= ~done_mask;
|
||||||
pp->sdbfis_bits |= done_mask;
|
pp->sdbfis_bits |= done_mask;
|
||||||
ata_qc_complete_multiple(ap, ap->qc_active ^ done_mask);
|
ata_qc_complete_multiple(ap, ata_qc_get_active(ap) ^ done_mask);
|
||||||
|
|
||||||
if (!ap->qc_active) {
|
if (!ap->qc_active) {
|
||||||
DPRINTK("over\n");
|
DPRINTK("over\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue