diff options
author | Tejun Heo <htejun@gmail.com> | 2006-04-02 05:51:53 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-04-02 10:09:19 -0400 |
commit | ea1dd4e13010eb9dd5ffb4bfabbb472bc238bebb (patch) | |
tree | 2c55fb5671c1dab0c99d84d46c09fd03ebdc5f53 /include/linux/libata.h | |
parent | 198e0fed9e59461fc1890dd8b75ec72d14638873 (diff) |
[PATCH] libata: clear only affected flags during ata_dev_configure()
ata_dev_configure() should not clear dynamic device flags determined
elsewhere. Lower eight bits are reserved for feature flags, define
ATA_DFLAG_CFG_MASK and clear only those bits before configuring
device. Without this patch, ATA_DFLAG_PIO gets turned off during
revalidation making PIO mode unuseable.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 890262f44d0a..cbbc821fe22c 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -122,6 +122,7 @@ enum { | |||
122 | /* struct ata_device stuff */ | 122 | /* struct ata_device stuff */ |
123 | ATA_DFLAG_LBA = (1 << 0), /* device supports LBA */ | 123 | ATA_DFLAG_LBA = (1 << 0), /* device supports LBA */ |
124 | ATA_DFLAG_LBA48 = (1 << 1), /* device supports LBA48 */ | 124 | ATA_DFLAG_LBA48 = (1 << 1), /* device supports LBA48 */ |
125 | ATA_DFLAG_CFG_MASK = (1 << 8) - 1, | ||
125 | 126 | ||
126 | ATA_DFLAG_PIO = (1 << 8), /* device currently in PIO mode */ | 127 | ATA_DFLAG_PIO = (1 << 8), /* device currently in PIO mode */ |
127 | 128 | ||