usb: musb: Perform only write access on MUSB_INTRTXE
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 30 Oct 2012 18:52:26 +0000 (19:52 +0100)
committerFelipe Balbi <balbi@ti.com>
Wed, 31 Oct 2012 13:22:18 +0000 (15:22 +0200)
commitb18d26f6ad8f00ea5f7c6a12ea52627ca3c3c6e2
tree651526d8d433418664bcee887f6d1a60ee7946f7
parentaf5ec14d40e0da1de17fcca2b41c76fae5c2cb9d
usb: musb: Perform only write access on MUSB_INTRTXE

This is part of the workaround for AM35x advisory Advisory 1.1.20.
The advisory says that the IPSS bridge can't handle 8 & 16 bit read
access. An 16bit read access to MUSB_INTRTXE results in an 32bit read
access which also reads INTRRX and therefore may lose interrupts.
This patch uses a shadow register of MUSB_INTRTXE so we only perform
write access to it.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h
drivers/usb/musb/musb_gadget.c
drivers/usb/musb/musb_host.c