[PATCH] [32/50] usb: musb: restore INDEX register in resume path

From: Andi Kleen
Date: Thu Jul 28 2011 - 19:44:50 EST


2.6.35-longterm review patch. If anyone has any objections, please let me know.

------------------
From: Ajay Kumar Gupta <ajay.gupta@xxxxxx>

[ 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@xxxxxxxxxx
Acked-by: Anand Gadiyar <gadiyar@xxxxxx>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@xxxxxx>
Signed-off-by: Felipe Balbi <balbi@xxxxxx>
Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>

Index: linux-2.6.35.y/drivers/usb/musb/musb_core.c
===================================================================
--- linux-2.6.35.y.orig/drivers/usb/musb/musb_core.c
+++ linux-2.6.35.y/drivers/usb/musb/musb_core.c
@@ -1697,6 +1697,7 @@ void musb_dma_completion(struct musb *mu
}
}
}
+ musb_writeb(musb_base, MUSB_INDEX, musb->context.index);
}

#else
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/