]> git.baikalelectronics.ru Git - kernel.git/commit
pata_optidma: fix checking of DMA state
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 12 Oct 2021 06:27:48 +0000 (08:27 +0200)
committerDamien Le Moal <damien.lemoal@wdc.com>
Tue, 12 Oct 2021 08:46:59 +0000 (17:46 +0900)
commit17bebcd6793974a995bcc1512f4ba139442f7ed4
tree11e54f6554be836daa7c549218ff7105344ce032
parent67e161d7cef2541e0b33db0ec08b7f4aa60eecc9
pata_optidma: 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_optidma.c