linux-3.0.x for AP-SH4A-0A Board
Revision | 0f231ea4d4505adfcbe949e6716eb0d02e2c14a5 (tree) |
---|---|
Time | 2011-08-05 13:58:32 |
Author | Ajay Kumar Gupta <ajay.gupta@ti.c...> |
Commiter | Greg Kroah-Hartman |
usb: musb: restore INDEX register in resume path
commit 3c5fec75e121b21a2eb35e5a6b44291509abba6f upstream.
Restoring the missing INDEX register value in musb_restore_context().
Without this suspend resume functionality is broken with offmode
enabled.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
@@ -2329,6 +2329,7 @@ static void musb_restore_context(struct musb *musb) | ||
2329 | 2329 | musb->context.index_regs[i].rxhubport); |
2330 | 2330 | } |
2331 | 2331 | } |
2332 | + musb_writeb(musb_base, MUSB_INDEX, musb->context.index); | |
2332 | 2333 | } |
2333 | 2334 | |
2334 | 2335 | static int musb_suspend(struct device *dev) |