aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAjay Kumar Gupta <ajay.gupta@ti.com>2011-07-08 15:06:13 +0530
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-08 10:23:09 -0700
commit262e2d9d559334e09bc80516132ea99d82f97b8c (patch)
treee5586c6c2afc841b77c3cf60d5bb1c8847b07920 /drivers
parent6691c4c32de7046a36cd94b2f904507dcfb86de7 (diff)
downloadlinux-linaro-stable-262e2d9d559334e09bc80516132ea99d82f97b8c.tar.gz
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>
Diffstat (limited to 'drivers')
-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 24212bed2d2a..b9afd6a26a31 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -1634,6 +1634,7 @@ void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit)
}
}
}
+ musb_writeb(musb_base, MUSB_INDEX, musb->context.index);
}
#else