usb: musb: core: fix TX/RX endpoint order
authorFelipe Balbi <balbi@ti.com>
Mon, 30 Dec 2013 18:33:53 +0000 (12:33 -0600)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 17 May 2015 23:11:58 +0000 (19:11 -0400)
commita7d37b3c148e374c5117ff4e757b82fac2f7be03
tree5cbc0c74e3ded2a671a183708ef491dc7dfd7cbe
parente9db32eeb4142185db52c9992989df1fb7342ead
usb: musb: core: fix TX/RX endpoint order

[ Upstream commit e3c93e1a3f35be4cf1493d3ccfb0c6d9209e4922 ]

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.

Cc: <stable@vger.kernel.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/usb/musb/musb_core.c