pata_oldpiix: Call both PIO and DMA setup functions on switch as they are called...
authorAlan <alan@lxorguk.ukuu.org.uk>
Tue, 20 Feb 2007 17:47:37 +0000 (17:47 +0000)
committerJeff Garzik <jeff@garzik.org>
Wed, 21 Feb 2007 09:58:20 +0000 (04:58 -0500)
Keeps the behaviour consistent and easier to understand.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_oldpiix.c

index 45215aa05e72b92a8b2b7d3c7be6804d5e2cbd0c..2389107a20062728bf6011fa9202c685ec9c1db7 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/ata.h>
 
 #define DRV_NAME       "pata_oldpiix"
-#define DRV_VERSION    "0.5.3"
+#define DRV_VERSION    "0.5.4"
 
 /**
  *     oldpiix_pre_reset               -       probe begin
@@ -209,10 +209,9 @@ static unsigned int oldpiix_qc_issue_prot(struct ata_queued_cmd *qc)
        struct ata_device *adev = qc->dev;
 
        if (adev != ap->private_data) {
+               oldpiix_set_piomode(ap, adev);
                if (adev->dma_mode)
                        oldpiix_set_dmamode(ap, adev);
-               else if (adev->pio_mode)
-                       oldpiix_set_piomode(ap, adev);
        }
        return ata_qc_issue_prot(qc);
 }