usb: musb: core: fix TX/RX endpoint order
authorFelipe Balbi <balbi@ti.com>
Mon, 30 Dec 2013 18:33:53 +0000 (12:33 -0600)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Aug 2015 23:32:00 +0000 (00:32 +0100)
commit48a3b3037c59087b07f61c2b981382df479c9902
treec92af61ebf355fec6fae05ff4332ff230e02af1f
parent3e8e73f832aec6c73a61fb3f53816bf4ee37c723
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>
[bwh: Backported to 3.2: adjust context, indentation]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/musb/musb_core.c