diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-10-30 19:52:26 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-10-31 15:22:18 +0200 |
commit | b18d26f6ad8f00ea5f7c6a12ea52627ca3c3c6e2 (patch) | |
tree | 651526d8d433418664bcee887f6d1a60ee7946f7 /drivers/usb/musb/musb_host.c | |
parent | af5ec14d40e0da1de17fcca2b41c76fae5c2cb9d (diff) | |
download | talos-op-linux-b18d26f6ad8f00ea5f7c6a12ea52627ca3c3c6e2.tar.gz talos-op-linux-b18d26f6ad8f00ea5f7c6a12ea52627ca3c3c6e2.zip |
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>
Diffstat (limited to 'drivers/usb/musb/musb_host.c')
-rw-r--r-- | drivers/usb/musb/musb_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 3df6a76b851d..e9f0fd9ddd2d 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c @@ -740,7 +740,7 @@ static void musb_ep_program(struct musb *musb, u8 epnum, csr = musb_readw(epio, MUSB_TXCSR); /* disable interrupt in case we flush */ - int_txe = musb_readw(mbase, MUSB_INTRTXE); + int_txe = musb->intrtxe; musb_writew(mbase, MUSB_INTRTXE, int_txe & ~(1 << epnum)); /* general endpoint setup */ |