]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
usb: dwc3: otg: don't clear event buffers when changing to Host mode from Device...
authorAnurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Wed, 7 Mar 2018 11:32:17 +0000 (17:02 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 9 Mar 2018 08:09:50 +0000 (09:09 +0100)
commite66802e25d294a7c1c35cf8e0133697791c5d59c
tree28f8bdacb628f6dc5f295dbb9b62cb5606a22318
parentfacf8a8163f19f38e4b59b80aa0967b8d4b6ecea
usb: dwc3: otg: don't clear event buffers when changing to Host mode from Device mode

Clearing event buffers when changing from Device mode -> Host mode
may require allocating event buffers again during role swap from
Host mode -> Device mode. Changing the event buffers at runtime are
not triggering events in device mode and also the role swap can happen
at any time. So, better not to clear the event buffers during role
swap instead reuse the previously allocated event buffers.
This patch does the same.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/usb/dwc3/otg.c