From: Sujit Reddy Thumma Date: Mon, 11 Aug 2014 12:40:37 +0000 (+0300) Subject: sd: Avoid sending medium write commands if device is write protected X-Git-Tag: fixes-for-v3.18-merge-window~25^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eefd57b97609949ae40952da2dea338e7d9a125;p=pandora-kernel.git 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-diff-tree failed