aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-04-02 05:51:53 -0400
committerJeff Garzik <jeff@garzik.org>2006-04-02 10:09:20 -0400
commite8384607d4f395985e3cc5f82d75fc73efc2ecf0 (patch)
treebc6f6e3b8b31734d6ef4f827e85473b5928a500b
parentea1dd4e13010eb9dd5ffb4bfabbb472bc238bebb (diff)
[PATCH] libata: clear ATA_DFLAG_PIO before setting it
ata_dev_set_mode() is now responsible for managing ATA_DFLAG_PIO. Clear it before setting it. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r--drivers/scsi/libata-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 985283cbcbd..007d1888804 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -1949,6 +1949,7 @@ static int ata_dev_set_mode(struct ata_port *ap, struct ata_device *dev)
1949 unsigned int err_mask; 1949 unsigned int err_mask;
1950 int rc; 1950 int rc;
1951 1951
1952 dev->flags &= ~ATA_DFLAG_PIO;
1952 if (dev->xfer_shift == ATA_SHIFT_PIO) 1953 if (dev->xfer_shift == ATA_SHIFT_PIO)
1953 dev->flags |= ATA_DFLAG_PIO; 1954 dev->flags |= ATA_DFLAG_PIO;
1954 1955