From: Ajay Kumar Gupta Date: Fri, 8 Jul 2011 09:36:13 +0000 (+0530) Subject: usb: musb: restore INDEX register in resume path X-Git-Tag: v3.0.1~89 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0f231ea4d4505adfcbe949e6716eb0d02e2c14a5;p=karo-tx-linux.git 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 Signed-off-by: Ajay Kumar Gupta Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index c71b0372786e..dce7182e1dfe 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)