summary refs log tree commit diff
path: root/drivers/md
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2021-10-12 08:27:44 +0200
committerDamien Le Moal <damien.lemoal@wdc.com>2021-10-12 17:46:43 +0900
commitf971a85439bd25dc7b4d597cf5e4e8dc7ffc884b (patch)
treeb461011ef3dfe5739f36bc81e4d9f78bd7a86426 /drivers/md
parent8c0ff6af6823d3e90314a45c6725c6e8d491cd16 (diff)
downloadlinux-f971a85439bd25dc7b4d597cf5e4e8dc7ffc884b.tar.gz
libata: fix checking of DMA state
Checking if DMA is enabled should be done via the
ata_dma_enabled helper function, since the init state
0xff indicates disabled.
This meant that ATA_CMD_READ_LOG_DMA_EXT was used and probed
for before DMA was enabled, which caused hangs for some combinations
of controllers and devices.
It might also have caused it to be incorrectly disabled as broken,
but there have been no reports of that.

Cc: stable@vger.kernel.org
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=195895
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Tested-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions