]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb/cppi41: call musb_ep_select() before accessing an endpoint's CSR
authorDaniel Mack <zonque@gmail.com>
Mon, 26 May 2014 12:52:39 +0000 (14:52 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 30 Jun 2014 19:26:25 +0000 (14:26 -0500)
commit0d4c8366e9e8acc32738e6d2628ee88b5f725ed4
tree994c988398d3206c48d789b83c20e3c611404b92
parent55d82f89b836787f2c4d9ebbf058cc8e1a2204b6
usb: musb/cppi41: call musb_ep_select() before accessing an endpoint's CSR

Before accessing any of an endpoint's CSR registers, make sure the
correct endpoint is selected. Otherwise, data read from or written to
the registers is likely to affect the wrong endpoint as long as the
connected device has more than one endpoint.

This, of course, leads to all sorts of strange effects such as stream
starvation and driver internal state machine confusion due to spurious
interrupts.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_cppi41.c