diff options
author | Tejun Heo <htejun@gmail.com> | 2006-06-23 12:49:52 +0800 |
---|---|---|
committer | Chris Wright <chrisw@sous-sol.org> | 2006-06-29 17:17:16 -0700 |
commit | f92b235f72be34e66357df72794f2baa0221524d (patch) | |
tree | 21b7438ea27994b35afcf412a1e73df315e30b48 /drivers | |
parent | 4f75bf81d40d4c5b459343ef34d05478b8bed47d (diff) | |
download | lwn-f92b235f72be34e66357df72794f2baa0221524d.tar.gz lwn-f92b235f72be34e66357df72794f2baa0221524d.zip |
[PATCH] libata: minor patch for ATA_DFLAG_PIO
Problem:
- With 2.6.17 libata, some PIO-only devices are given DMA commands.
Changes:
- Do not clear the ATA_DFLAG_PIO flag in ata_dev_configure().
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index b046ffa22101..6cd197d4474f 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c @@ -1229,7 +1229,7 @@ static int ata_dev_configure(struct ata_port *ap, struct ata_device *dev, id[84], id[85], id[86], id[87], id[88]); /* initialize to-be-configured parameters */ - dev->flags = 0; + dev->flags &= ~ATA_DFLAG_CFG_MASK; dev->max_sectors = 0; dev->cdb_len = 0; dev->n_sectors = 0; |