Commit 725ad028 authored by Huacai Chen's avatar Huacai Chen Committed by Niklas Cassel
Browse files

ata: libata: Improve return value of atapi_check_dma()



atapi_check_dma() allows a LLD to filter ATAPI commands, returning a
status indicating whether or not it is OK to use DMA for the supplied
ATAPI command.

Change atapi_check_dma() to return -EOPNOTSUPP instead of 1 for an
ATAPI command that is not allowed to use DMA.

Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
Link: https://lore.kernel.org/r/20250312133954.6666-1-chenhuacai@loongson.cn


[cassel: improve commit log]
Signed-off-by: default avatarNiklas Cassel <cassel@kernel.org>
parent 885251dc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment