diff options
author | Alan <alan@lxorguk.ukuu.org.uk> | 2007-02-20 17:47:37 +0000 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-21 04:58:20 -0500 |
commit | b7939b14d8dd9cb4a3ebfaea1416695e4b6d4a42 (patch) | |
tree | 6f7774fc306fe414243975da61c568c187178a5c /drivers/ata | |
parent | 3ddcc591e3501e49037f9ace9340697a9a414a5e (diff) | |
download | op-kernel-dev-b7939b14d8dd9cb4a3ebfaea1416695e4b6d4a42.zip op-kernel-dev-b7939b14d8dd9cb4a3ebfaea1416695e4b6d4a42.tar.gz |
pata_oldpiix: Call both PIO and DMA setup functions on switch as they are called on set up
Keeps the behaviour consistent and easier to understand.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/pata_oldpiix.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ata/pata_oldpiix.c b/drivers/ata/pata_oldpiix.c index 45215aa..2389107 100644 --- a/drivers/ata/pata_oldpiix.c +++ b/drivers/ata/pata_oldpiix.c @@ -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); } |