]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/mfd/twl-core.c
mfd: twl-core: Fix idle mode signaling for omaps when booted with device tree
authorTony Lindgren <tony@atomide.com>
Thu, 10 Apr 2014 23:47:18 +0000 (16:47 -0700)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Apr 2014 14:31:05 +0000 (15:31 +0100)
commita613b739b8c08eab811e677810045cc0522fc3e6
treec3d8142c39c53333af788264ef38019fa304334d
parent455c6fdbd219161bd09b1165f11699d6d73de11c
mfd: twl-core: Fix idle mode signaling for omaps when booted with device tree

I noticed a regression where the omap sys_clkreq signal will never
trigger for omap3 when booted with device tree while it triggers
when booted in legacy mode. This means voltage scaling does not
do anything when booted with device tree.

Turns out the reason is we fail to initialize the SmartReflex
enable bit in twl4030 with the following error:

twl: not initialized

And that happens because we are wrongly tinkering with the twl4030
registers in arch/arm/mach-omap2/omap_twl.c before the driver is
initialized. Looking at the the SmartReflex bit enable code in
omap_twl.c, we need to always set it.

So let's fix the issue by always enabling the twl4030 SmartReflex
bit in the drivers/mfd/twl-core.c probe, and drop the related
code in omap_twl.c.

Note that we still have some twl4030 tinkering left in omap_twl.c
for the twl6030 case, but that's a different patch.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
arch/arm/mach-omap2/omap_twl.c
drivers/mfd/twl-core.c