]> Pileus Git - ~andy/linux/commitdiff
ARM: OMAP4+: hwmod: fix issue causing IPs not going back to Smart-Standby
authorDjamil Elaidi <d-elaidi@ti.com>
Sun, 17 Jun 2012 17:57:51 +0000 (11:57 -0600)
committerPaul Walmsley <paul@pwsan.com>
Fri, 22 Jun 2012 00:08:46 +0000 (18:08 -0600)
If an IP is configured in Smart-Standby-Wakeup, when disabling wakeup feature the
IP will not go back to Smart-Standby, but will remain in Smart-Standby-Wakeup.

Signed-off-by: Djamil Elaidi <d-elaidi@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c

index bf86f7e8f91f5837869cb1b799f2b59ab4a81395..773193670ea265cefa67f938fa780e938400dbce 100644 (file)
@@ -530,7 +530,7 @@ static int _disable_wakeup(struct omap_hwmod *oh, u32 *v)
        if (oh->class->sysc->idlemodes & SIDLE_SMART_WKUP)
                _set_slave_idlemode(oh, HWMOD_IDLEMODE_SMART, v);
        if (oh->class->sysc->idlemodes & MSTANDBY_SMART_WKUP)
-               _set_master_standbymode(oh, HWMOD_IDLEMODE_SMART_WKUP, v);
+               _set_master_standbymode(oh, HWMOD_IDLEMODE_SMART, v);
 
        /* XXX test pwrdm_get_wken for this hwmod's subsystem */