From 80d6ff9e6f7dd3732024f68b7b4ce566ff3058ac Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Mon, 22 Sep 2008 06:36:45 +0000 Subject: [PATCH] IDE busmanager did not honor the user's failsafe startup item disable IDE DMA. Now it does. This reveals another error in the busmanager: PIO mode doesn't work on my systems: can't find boot volume. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27684 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/bus_managers/ide/dma.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/add-ons/kernel/bus_managers/ide/dma.c b/src/add-ons/kernel/bus_managers/ide/dma.c index 862e7a7740..9358be305d 100644 --- a/src/add-ons/kernel/bus_managers/ide/dma.c +++ b/src/add-ons/kernel/bus_managers/ide/dma.c @@ -57,10 +57,11 @@ get_device_dma_mode(ide_device_info *device) bool configure_dma(ide_device_info *device) { - device->DMA_enabled = device->DMA_supported = device->bus->can_DMA - && get_device_dma_mode(device) != -1; + if ((device->DMA_enabled = device->DMA_supported = device->bus->can_DMA) + && get_device_dma_mode(device) != -1) + return true; - return true; + return false; }