]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: twl6040: Fix deferred probe handling for clk32k
authorTony Lindgren <tony@atomide.com>
Fri, 18 Sep 2015 16:29:04 +0000 (09:29 -0700)
committerLee Jones <lee.jones@linaro.org>
Mon, 26 Oct 2015 14:48:56 +0000 (14:48 +0000)
commit78d8f662f3b568b3a0746298d4513b901df389b2
treeb481df4848167a8dee3ed2a503cb8d859552f350
parent128c281218314eb4bf6fce8dec0b95e7e0f0d798
mfd: twl6040: Fix deferred probe handling for clk32k

Commit aec1f7fab055 ("mfd: twl6040: Optional clk32k clock handling")
added clock handling for the 32k clock from palmas-clk. However, that
patch did not consider a typical situation where twl6040 is built-in,
and palmas-clk is a loadable module like we have in omap2plus_defconfig.

If palmas-clk is not loaded before twl6040 probes, we will get a
"clk32k is not handled" warning during booting. This means that any
drivers relying on this clock will mysteriously fail, including
omap5-uevm WLAN and audio.

Note that for WLAN, we probably should also eventually get
the clk32kgaudio for MMC3 directly as that's shared between
audio and WLAN SDIO at least for omap5-uevm. It seems the
WLAN chip cannot get it as otherwise MMC3 won't get properly
probed.

Fixes: aec1f7fab055 ("mfd: twl6040: Optional clk32k clock handling")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/twl6040.c