mmc: mxs-mmc: add broken-cd property
commit1d53196a0d604fcf636203fac21e944b6a9cf275
authorHector Palacios <hector.palacios@digi.com>
Wed, 10 Apr 2013 09:13:45 +0000 (10 11:13 +0200)
committerChris Ball <cjb@laptop.org>
Fri, 12 Apr 2013 18:17:55 +0000 (12 14:17 -0400)
tree280c73673e05c91965564bb4b693c1d063b7bf68
parent5086e5f41fd107539911edf62f2d202753ed1980
mmc: mxs-mmc: add broken-cd property

According to bindings documentation for mmc, the property 'broken-cd'
can be used to indicate card-detection is not available and polling
must be used instead. This patch retrieves this property
and sets a custom flag. On the get_cd() hook, it returns 1 if
the flag is set, to always assume the card is present.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/mxs-mmc.c