commit | 2dfb579c7da171f6153cd58e8fbf7dcfe684778d | [log] [tgz] |
---|---|---|
author | Wolfram Sang <w.sang@pengutronix.de> | Fri Oct 15 12:21:01 2010 +0200 |
committer | Chris Ball <cjb@laptop.org> | Sat Oct 23 21:11:21 2010 +0800 |
tree | e54663068118de6dcd2d48fe6894d37c0a02bdbc | |
parent | d3b993dcc11cd291e6908ed02b9db99970220952 [diff] |
mmc: sdhci: introduce get_ro private write-protect hook Some controllers handle their write-protection differently. Introduce a callback to be able to handle it, ensuring the same locking takes place for it. Rename the status variable to make it more obvious why the read from the registers needs to be inverted. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Tested-by: Eric BĂ©nard <eric@eukrea.com> Signed-off-by: Chris Ball <cjb@laptop.org>