From 2eefd57b97609949ae40952da2dea338e7d9a125 Mon Sep 17 00:00:00 2001 From: Sujit Reddy Thumma Date: Mon, 11 Aug 2014 15:40:37 +0300 Subject: [PATCH] sd: Avoid sending medium write commands if device is write protected The SYNCHRONIZE_CACHE command is a medium write command and hence can fail when the device is write protected. Avoid sending such commands by making sure that write-cache-enable is disabled even though the device claim to support it. Signed-off-by: Sujit Reddy Thumma Signed-off-by: Dolev Raviv Reviewed-by: Martin K. Petersen Reviewed-by: Venkatesh Srinivas Signed-off-by: Christoph Hellwig --- Reading git-format-patch failed