pata_radisys: fix checking of DMA state
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 12 Oct 2021 06:27:49 +0000 (08:27 +0200)
committerDamien Le Moal <damien.lemoal@wdc.com>
Tue, 12 Oct 2021 08:47:02 +0000 (17:47 +0900)
commit1af5f7af2484004e71d384d8b88c221fc62cd6b5
tree28e4ef1cd856f26251fa38e8c68fb823db3431e1
parent492402ce70777b2f83dd61613c8e341a36ba3cd1
pata_radisys: 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.
Change based on code review, not tested due to lack of hardware.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
drivers/ata/pata_radisys.c