]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 13:21:17 +0000 (15:21 +0200)
commitfb9c7b9abd6b78502b42315cf77b99318f3332c4
treebea40a7d415c2b01b89a0ede3d9e99defd91a0b8
parent1ce46b488afcdcf1235f9f9cd5b55bbd70c64d99
usb: musb: tusb6010_omap: Do not reset the other direction's packet size

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: bad749d1064b ("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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/tusb6010_omap.c