From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Date: Fri, 10 Oct 2008 20:39:30 +0000 (+0200)
Subject: ide: check only for CACHE FLUSH command support in ide_id_has_flush_cache()
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1a4e4d4d2cceb72be70526a485914abd638c7de1;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

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>
---

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;
 extern struct bus_type ide_bus_type;
 extern struct class *ide_port_class;
 
-/* check if CACHE FLUSH (EXT) command is supported (bits defined in ATA-6) */
-#define ide_id_has_flush_cache(id)	((id)[ATA_ID_CFS_ENABLE_2] & 0x3000)
+/* check if CACHE FLUSH command is supported (as defined in ATA-6) */
+#define ide_id_has_flush_cache(id)	((id)[ATA_ID_CFS_ENABLE_2] & 0x1000)
 
 /* some Maxtor disks have bit 13 defined incorrectly so check bit 10 too */
 #define ide_id_has_flush_cache_ext(id)	\