]> git.baikalelectronics.ru Git - kernel.git/commit
ata: sata_nv: Fix retrieving of active qcs
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 8 May 2020 05:28:19 +0000 (07:28 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Oct 2020 13:58:09 +0000 (07:58 -0600)
commitc5e2107c344d45025333700b86d848baee7eab4a
tree47bb244d15374c342ffe8ede1fcf15b46f08827f
parent400d1fbb8ec3c992a03bbcbd4d56c5178dd8ccc9
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 of 6c0dbe7f6ab2 ("libata: Fix retrieving of
active qcs").

Fixes: 3996a413557e ("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>
drivers/ata/sata_nv.c