summaryrefslogtreecommitdiff
path: root/lib/btree.c
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-02-20 06:17:54 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-02-23 05:31:19 +0300
commit1d6736c3e162061dc811c76e605f35ef3234bffa (patch)
tree98d1dac5fac933e858c88a51b59d787a63ffb94a /lib/btree.c
parentaa028141ab0bc62c44a84d42f09db35d82df82a2 (diff)
downloadlinux-1d6736c3e162061dc811c76e605f35ef3234bffa.tar.xz
scsi: pm8001: Fix NCQ NON DATA command completion handling
NCQ NON DATA is an NCQ command with the DMA_NONE DMA direction and so a register-device-to-host-FIS response is expected for it. However, for an IO_SUCCESS case, mpi_sata_completion() expects a set-device-bits-FIS for any ata task with an use_ncq field true, which includes NCQ NON DATA commands. Fix this to correctly treat NCQ NON DATA commands as non-data by also testing for the DMA_NONE DMA direction. Link: https://lore.kernel.org/r/20220220031810.738362-16-damien.lemoal@opensource.wdc.com Fixes: dbf9bfe61571 ("[SCSI] pm8001: add SAS/SATA HBA driver") Reviewed-by: Jack Wang <jinpu.wang@ionos.com> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'lib/btree.c')
0 files changed, 0 insertions, 0 deletions