diff options
author | Benoit Goby <benoit@android.com> | 2012-05-02 15:14:39 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2012-06-07 10:14:26 +0800 |
commit | d33e0b36867adbe9816b98358e3dec2e408edc29 (patch) | |
tree | 2980d19e5f17852510cb6e996ef91b70fb82acc8 /drivers/usb | |
parent | 22b154c50fcccf6e867466ddb08a6482afa66c9d (diff) | |
download | panda-d33e0b36867adbe9816b98358e3dec2e408edc29.tar.gz |
usb: host: omap: add tput constrain on bus_resume
OPP50 for CORE is not supported when EHCI is active. Add a constrain to
force OPP100 when EHCI bus is resumed.
Change-Id: I1b4227993962cc26d4d72b56aba2c396d4d3e6f5
Signed-off-by: Benoit Goby <benoit@android.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/ehci-omap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index 00880a76cae..7faf6a5ff76 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -43,6 +43,7 @@ #include <linux/regulator/consumer.h> #include <linux/pm_runtime.h> #include <linux/gpio.h> +#include <plat/omap-pm.h> /* EHCI Register Set */ #define EHCI_INSNREG04 (0xA0) @@ -357,6 +358,9 @@ static int ehci_omap_bus_suspend(struct usb_hcd *hcd) pm_runtime_put(dev); + omap_pm_set_min_bus_tput(dev, + OCP_INITIATOR_AGENT, + -1); return ret; } @@ -369,6 +373,10 @@ static int ehci_omap_bus_resume(struct usb_hcd *hcd) if (pm_runtime_suspended(dev)) pm_runtime_get_sync(dev); + omap_pm_set_min_bus_tput(dev, + OCP_INITIATOR_AGENT, + (200*1000*4)); + return ehci_bus_resume(hcd); } |