Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5416912a authored by Aaron Lu's avatar Aaron Lu Committed by Jeff Garzik
Browse files

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: default avatarPhillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: default avatarAaron Lu <aaron.lu@intel.com>
Tested-by: default avatarSzymon Janc <szymon@janc.net.pl>
Tested-by: default avatarDutra Julio <dutra.julio@gmail.com>
Acked-by: default avatarAlan Cox <alan@linux.intel.com>
Cc: <stable@kernel.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent f295be25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment