usb: musb: core: fix TX/RX endpoint order
authorFelipe Balbi <balbi@ti.com>
Mon, 30 Dec 2013 18:33:53 +0000 (12:33 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:01:49 +0000 (22:01 +0200)
commit7e83678dcf4b7840c00183349128f52ca615657a
tree76d17b68e56ac04a2ba66b2e364163ef163fe515
parente4f3adf88ba5237adbff176ed08b1607f1a9fc24
usb: musb: core: fix TX/RX endpoint order

commit e3c93e1a3f35be4cf1493d3ccfb0c6d9209e4922 upstream.

As per Mentor Graphics' documentation, we should
always handle TX endpoints before RX endpoints.

This patch fixes that error while also updating
some hard-to-read comments which were scattered
around musb_interrupt().

This patch should be backported as far back as
possible since this error has been in the driver
since it's conception.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c