Skip to content

Commit

Permalink
pata_oldpiix: Call both PIO and DMA setup functions on switch as they…
Browse files Browse the repository at this point in the history
… are called on set up

Keeps the behaviour consistent and easier to understand.

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
Alan-Cox authored and Jeff Garzik committed Feb 21, 2007
1 parent 3ddcc59 commit b7939b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/ata/pata_oldpiix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit b7939b1

Please sign in to comment.