Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libata: set dma_mode to 0xff in reset
ata_device->dma_mode's initial value is zero, which is not a valid dma mode, but ata_dma_enabled will return true for this value. This patch sets dma_mode to 0xff in reset function, so that ata_dma_enabled will not return true for this case, or it will cause problem for pata_acpi. The corrsponding bugzilla page is at: https://bugzilla.kernel.org/show_bug.cgi?id=49151 Reported-by: Phillip Wood <[email protected]> Signed-off-by: Aaron Lu <[email protected]> Tested-by: Szymon Janc <[email protected]> Tested-by: Dutra Julio <[email protected]> Acked-by: Alan Cox <[email protected]> Cc: <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
- Loading branch information