phy: rockchip-emmc: Be tolerant to card clock of 0 in power on
authorDouglas Anderson <dianders@chromium.org>
Mon, 27 Jun 2016 17:39:26 +0000 (10:39 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:38:00 +0000 (10:38 +0200)
commit4e2ea670861f2068082da310f25815c7498a41dc
tree43835a03c84a798e585839b68ba67a61d18f22f2
parent6fc09244d74ded1c7210fb493a17e7c29dde2010
phy: rockchip-emmc: Be tolerant to card clock of 0 in power on

It's possible that there are some reasons to turn the PHY on while the
clock is 0.  In this case we just won't wait for the DLL to lock.

This is a bit of a stopgap until we figure out exactly when we're
supposed to wait for the DLL to lock and when we're supposed to power
cycle the PHY.

Note: this patch should help with suspend/resume where the system will
try to turn the PHY back on when the clock is 0.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/phy/phy-rockchip-emmc.c