summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThirupathi Chippakurthy <thirupathi.chippakurthy@stericsson.com>2011-10-21 09:36:25 +0530
committerSrinidhi KASAGAR <srinidhi.kasagar@stericsson.com>2011-10-21 08:17:11 +0200
commitf5a7d59c31e8624e2441cd8cfbcfed4046ef781f (patch)
treedb70e88e2d353dd58539a91142ea5389a0cd9a8f
parente405869e707f7fda778cb114a582cbec6448a8f5 (diff)
usb: musb: restore INDEX register in resume path
Restoring the missing INDEX register value in musb_restore_context(). Without this suspend resume functionality is broken with offmode enabled. ST-Ericsson ID: AP 369118 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: NA Signed-off-by: Thirupathi <thirupathi.chippakurthy@stericsson.com> Acked-by: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com> Change-Id: I0ad6758c0a92eb88bce8f75dd86b7029c7d4e7e1 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34787 Reviewed-by: QABUILD Reviewed-by: Praveena NADAHALLY <praveen.nadahally@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
-rw-r--r--drivers/usb/musb/musb_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index f882a2a47fd..67ee65ad637 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -2329,6 +2329,7 @@ static void musb_restore_context(struct musb *musb)
musb->context.index_regs[i].rxhubport);
}
}
+ musb_writeb(musb_base, MUSB_INDEX, musb->context.index);
}
static int musb_suspend(struct device *dev)