diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2017-05-17 11:23:11 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-25 14:30:12 +0200 |
commit | 1beae7405705688bb9b93e0440fc2b1fabe34428 (patch) | |
tree | 5631825e43c7e48232821d43c85779c7b11386b0 /drivers/usb/musb/musb_gadget_ep0.c | |
parent | 5cbfae4ad3604154efd9e14f3ceddf462b916d84 (diff) |
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>
Diffstat (limited to 'drivers/usb/musb/musb_gadget_ep0.c')
0 files changed, 0 insertions, 0 deletions