]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
usb: musb: restore INDEX register in resume path
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Fri, 8 Jul 2011 09:36:13 +0000 (15:06 +0530)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:55:02 +0000 (13:55 -0700)
[ upstream commit 3c5fec75e121b21a2eb35e5a6b44291509abba6f ]

Restoring the missing INDEX register value in musb_restore_context().
Without this suspend resume functionality is broken with offmode
enabled.

Cc: stable@kernel.org
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: Andi Kleen <ak@linux.intel.com>
drivers/usb/musb/musb_core.c

index 006eaac791f4d687d3d64d759293388713c0963c..809fed3f1c3eceae7aa68769e4fc3f00a9da9725 100644 (file)
@@ -1697,6 +1697,7 @@ void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit)
                        }
                }
        }
+       musb_writeb(musb_base, MUSB_INDEX, musb->context.index);
 }
 
 #else