]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: host: omap_hsmmc: Fix MMC for omap3 legacy booting
authorTony Lindgren <tony@atomide.com>
Wed, 7 Oct 2015 13:22:25 +0000 (06:22 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 8 Oct 2015 07:36:13 +0000 (09:36 +0200)
commit5c08e9e6b6889ee9edf1a24ae15cb8f94cfc3c44
tree59a7351a200c53ca55668ea83006531c2054b751
parentb3ae7361c9e421c0d2248549600c77ea4bf2592d
mmc: host: omap_hsmmc: Fix MMC for omap3 legacy booting

Starting with commit 7968b831b031 ("mmc: host: omap_hsmmc: use
devm_regulator_get_optional() for vmmc") MMC on omap3 stopped working
for legacy booting.

This is because legacy booting sets up some of the resource in the
platform init code, and for optional regulators always seem to
return -EPROBE_DEFER for the legacy booting.

Let's fix the issue by checking for device tree based booting for
now. Then when omap3 boots in device tree only mode, this patch
can be just reverted.

Fixes: 7968b831b031 ("mmc: host: omap_hsmmc: use
devm_regulator_get_optional() for vmmc")
Cc: Felipe Balbi <balbi@ti.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Tested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/omap_hsmmc.c