usb: musb: tusb6010_omap: Do not reset the other direction's packet size
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 17 May 2017 16:23:11 +0000 (11:23 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 15 Sep 2017 17:30:45 +0000 (18:30 +0100)
commit94d4358abb9e6b2c8d8e31c44f449d79502176ad
treee87f3052e14dc097af0ad849b322b608bc17f05a
parent7f67511118f57d574f76118a432979e21c991944
usb: musb: tusb6010_omap: Do not reset the other direction's packet size

commit 6df2b42f7c040d57d9ecb67244e04e905ab87ac6 upstream.

We have one register for each EP to set the maximum packet size for both
TX and RX.
If for example an RX programming would happen before the previous TX
transfer finishes we would reset the TX packet side.

To fix this issue, only modify the TX or RX part of the register.

Fixes: 550a7375fe72 ("USB: Add MUSB and TUSB support")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/musb/tusb6010_omap.c