]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP3 PM: enable hardware SAR for USBHOST, USBTLL modules
authorPaul Walmsley <paul@pwsan.com>
Thu, 26 Jun 2008 00:09:41 +0000 (18:09 -0600)
committerTony Lindgren <tony@atomide.com>
Thu, 26 Jun 2008 13:41:56 +0000 (16:41 +0300)
Enable hardware save-and-restore for the CORE and USBHOST powerdomains
during PM layer initialization.  On OMAP3, this only affects the
USBTLL and USBHOST modules.

There is probably a sleep and wakeup latency penalty with these
enabled.  No one seems to have quantified it yet.  If the added
latency is measurable, an alternate approach would be to only enable
hardware save-and-restore if there are USB devices attached.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pm34xx.c

index c7493f5828e311751eb4d0afc1554823b08dec97..202c269568a3b045126f4045c0fdd8f76d1340be 100644 (file)
@@ -357,6 +357,10 @@ static int __init pwrdms_setup(struct powerdomain *pwrdm)
        pwrst->pwrdm = pwrdm;
        pwrst->next_state = PWRDM_POWER_RET;
        list_add(&pwrst->node, &pwrst_list);
+
+       if (pwrdm_has_hdwr_sar(pwrdm))
+               pwrdm_enable_hdwr_sar(pwrdm);
+
        return set_pwrdm_state(pwrst->pwrdm, pwrst->next_state);
 }