mmc: sunxi: support cd-inverted
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 1 Feb 2018 22:39:19 +0000 (23:39 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 13 Mar 2018 14:42:31 +0000 (20:12 +0530)
commit8be4e61d01c5c66c888c600ef10cc4d7d465f7b1
tree1488e3ce7aaeb8dea6f6d909b2f47e660ff8e70d
parent1bcfba537e7f59ce997094139a1f69a598e0c618
mmc: sunxi: support cd-inverted

With CONFIG_DM_MMC the BananaPi does not detect SD cards.

The sunxi device trees use the cd-inverted property to indicate that
the card detect is inverted.

This property is documented in Linux kernel devicetree/bindings/mmc/mmc.txt
The property is not marked as deprecated.

A similar patch was posted by Tuomas but is in status "Changes Requested".
https://patchwork.ozlabs.org/patch/850377/

This patch is a stripped down version of his patch.

Suggested-by: Tuomas Tynkkynen <tuomas@tuxera.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/mmc/sunxi_mmc.c