From: Daniel Mack Date: Mon, 26 May 2014 12:52:39 +0000 (+0200) Subject: usb: musb/cppi41: call musb_ep_select() before accessing an endpoint's CSR X-Git-Tag: omap-for-v3.17/fixes-against-rc2~164^2~18^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f50e67853b363b96336718597823ed7a7e8652de;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed