aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorSakethram Bommisetti <sakethram.bommisetti@stericsson.com>2010-12-07 12:12:13 +0530
committerJonas ABERG <jonas.aberg@stericsson.com>2010-12-17 08:41:52 +0100
commit22f9ef62510dd4e1d7902dce1fd091f3f8909682 (patch)
tree4b0b88c011017aa897555072bc20571307d537ad /drivers/usb
parent9812fbc6824cb3fcaaa40e7f87ae7fe63728f06e (diff)
USB:musb_gadget:QOS is set to 50% when bus is suspended by PC
When there is a bus suspend from PC side we make the QOS to 50% and when there is a wake up we make it 100% ST-Ericsson ID:ER 279252 Change-Id: Ib65106814fd9e6bf99f0c266527f8e72f7ade07a Signed-off-by: Sakethram Bommisetti <sakethram.bommisetti@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/10533 Reviewed-by: QATOOLS Reviewed-by: Praveena NADAHALLY <praveen.nadahally@stericsson.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/musb/musb_gadget.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index 3b81ee72b23..6c7bf7bf529 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -46,6 +46,7 @@
#include <linux/dma-mapping.h>
#include <asm/cacheflush.h>
#include <linux/slab.h>
+#include <mach/prcmu-fw-api.h>
#include "musb_core.h"
#ifdef CONFIG_ARCH_U8500
@@ -2037,6 +2038,8 @@ EXPORT_SYMBOL(usb_gadget_unregister_driver);
void musb_g_resume(struct musb *musb)
{
musb->is_suspended = 0;
+ prcmu_qos_update_requirement(PRCMU_QOS_APE_OPP,
+ "musb_qos", 100);
switch (musb->xceiv->state) {
case OTG_STATE_B_IDLE:
break;
@@ -2083,6 +2086,8 @@ void musb_g_suspend(struct musb *musb)
WARNING("unhandled SUSPEND transition (%s)\n",
otg_state_string(musb));
}
+ prcmu_qos_update_requirement(PRCMU_QOS_APE_OPP,
+ "musb_qos", 50);
}
/* Called during SRP */