]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: Fix EP TxFIFO number setting
authorMinas Harutyunyan <minas.harutyunyan@synopsys.com>
Thu, 31 Jan 2019 14:28:07 +0000 (18:28 +0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 7 Feb 2019 11:14:51 +0000 (13:14 +0200)
commitd6bc3f38310a3304498f9a9c05a0c7fb2d47e876
treedab14469605fa1f65d4d94a6801f7ab29932dc88
parent87045efe8d38cd38d14ab7d031c9d3a9b11fbea2
usb: dwc2: Fix EP TxFIFO number setting

In case when some EP IN is frequently reused, i.e. enabled/disabled by
function driver. It is required to clear TxFIFO number field in DIEPCTL
register before setting new number. Otherwise there is probability to
have same TxFIFO number for different EP's because of OR operator.

Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c