]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: sunxi: Honour non-removable property in DT
authorAndre Przywara <andre.przywara@arm.com>
Sat, 19 Jan 2019 01:30:53 +0000 (01:30 +0000)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 29 Jan 2019 18:19:41 +0000 (23:49 +0530)
commit4233698dd37536f2595ec773ca841360195cd310
treec63db674070879872cc44aa3a66d56117d3f83ea
parenta7ae159978a5e6de5587389fc099efbe8c238771
mmc: sunxi: Honour non-removable property in DT

If a board DT describes a cd-gpios property, but also marks the storage
as non-removable, we must ignore the GPIO (as Linux does).

Teach the DM_MMC part of the Allwinner MMC driver about the
non-removable DT property, to fix DM_MMC access on the SoPine and
Pine64-LTS board.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Jagan Teki <jagan@openedev.com>
drivers/mmc/sunxi_mmc.c