]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: dw_mmc: Add "disable-wp" device tree property
authorDoug Anderson <dianders@chromium.org>
Fri, 11 Jan 2013 17:03:50 +0000 (17:03 +0000)
committerChris Ball <cjb@laptop.org>
Mon, 11 Feb 2013 18:28:57 +0000 (13:28 -0500)
commit9fbb9048f43a4017727ddf8a781c2589d0b7e234
treea1744e9c87a2437863c707bb9ec043b5a4cebe5a
parent6e13e3ae47b04cbfa90f5cb2cba493dc20b1ec2b
mmc: dw_mmc: Add "disable-wp" device tree property

The "disable-wp" property is used to specify that a given SD card slot
doesn't have a concept of write protect.  This eliminates the need for
special case code for SD slots that should never be write protected
(like a micro SD slot or a dev board).

The dw_mmc driver is special in needing to specify "disable-wp"
because the lack of a "wp-gpios" property means to use the special
purpose write protect line.  On some other mmc devices the lack of
"wp-gpios" means that write protect should be disabled.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Chris Ball <cjb@laptop.org>
Documentation/devicetree/bindings/mmc/synopsis-dw-mshc.txt
drivers/mmc/host/dw_mmc.c
include/linux/mmc/dw_mmc.h