diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 16:39:30 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 16:39:30 -0400 |
commit | 1a4e4d4d2cceb72be70526a485914abd638c7de1 (patch) | |
tree | 6877599bc12aab8a67068a837ab87fc96cb78cbb /include/linux/ide.h | |
parent | 942dcd85bf8edf38cdc3745306ca250684d99a61 (diff) |
ide: check only for CACHE FLUSH command support in ide_id_has_flush_cache()
All devices supporting CACHE FLUSH EXT command should also support
CACHE FLUSH command so it is sufficient to check only for CACHE FLUSH
in ide_id_has_flush_cache().
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 87b5b5d39539..6e22cd20dd8b 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1453,8 +1453,8 @@ extern struct mutex ide_cfg_mtx; | |||
1453 | extern struct bus_type ide_bus_type; | 1453 | extern struct bus_type ide_bus_type; |
1454 | extern struct class *ide_port_class; | 1454 | extern struct class *ide_port_class; |
1455 | 1455 | ||
1456 | /* check if CACHE FLUSH (EXT) command is supported (bits defined in ATA-6) */ | 1456 | /* check if CACHE FLUSH command is supported (as defined in ATA-6) */ |
1457 | #define ide_id_has_flush_cache(id) ((id)[ATA_ID_CFS_ENABLE_2] & 0x3000) | 1457 | #define ide_id_has_flush_cache(id) ((id)[ATA_ID_CFS_ENABLE_2] & 0x1000) |
1458 | 1458 | ||
1459 | /* some Maxtor disks have bit 13 defined incorrectly so check bit 10 too */ | 1459 | /* some Maxtor disks have bit 13 defined incorrectly so check bit 10 too */ |
1460 | #define ide_id_has_flush_cache_ext(id) \ | 1460 | #define ide_id_has_flush_cache_ext(id) \ |