From: Lars-Peter Clausen Date: Wed, 6 May 2015 18:31:19 +0000 (+0200) Subject: mmc: Add support for disabling write-protect detection X-Git-Tag: omap-for-v4.2/fixes-rc1^2~161^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f6e0bff2afb52a4c29f5ca8a4db01810357974e;p=pandora-kernel.git mmc: Add support for disabling write-protect detection It is not uncommon to see systems where there is no physical write-protect signal (e.g. when using eMMC or microSD card slots). For some controllers, which have a dedicated write-protection detection logic (like SDHCI controllers), the get_ro() callback can return bogus data in such a case. Instead of handling this on a per controller basis this patch adds a new capability flag to the MMC core that can be set to specify that the result of get_ro() is invalid. When the flag is set the core will not call get_ro() and assume that the card is always read-write. Signed-off-by: Lars-Peter Clausen Signed-off-by: Ulf Hansson --- Reading git-diff-tree failed