]>
Commit | Line | Data |
---|---|---|
e2cab6c9 GKH |
1 | From 3c5fec75e121b21a2eb35e5a6b44291509abba6f Mon Sep 17 00:00:00 2001 |
2 | From: Ajay Kumar Gupta <ajay.gupta@ti.com> | |
3 | Date: Fri, 8 Jul 2011 15:06:13 +0530 | |
4 | Subject: usb: musb: restore INDEX register in resume path | |
5 | ||
6 | From: Ajay Kumar Gupta <ajay.gupta@ti.com> | |
7 | ||
8 | commit 3c5fec75e121b21a2eb35e5a6b44291509abba6f upstream. | |
9 | ||
10 | Restoring the missing INDEX register value in musb_restore_context(). | |
11 | Without this suspend resume functionality is broken with offmode | |
12 | enabled. | |
13 | ||
14 | Acked-by: Anand Gadiyar <gadiyar@ti.com> | |
15 | Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com> | |
16 | Signed-off-by: Felipe Balbi <balbi@ti.com> | |
17 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | |
18 | ||
19 | --- | |
20 | drivers/usb/musb/musb_core.c | 1 + | |
21 | 1 file changed, 1 insertion(+) | |
22 | ||
23 | --- a/drivers/usb/musb/musb_core.c | |
24 | +++ b/drivers/usb/musb/musb_core.c | |
25 | @@ -2329,6 +2329,7 @@ static void musb_restore_context(struct | |
26 | musb->context.index_regs[i].rxhubport); | |
27 | } | |
28 | } | |
29 | + musb_writeb(musb_base, MUSB_INDEX, musb->context.index); | |
30 | } | |
31 | ||
32 | static int musb_suspend(struct device *dev) |