diff options
author | Wesley Cheng <wcheng@codeaurora.org> | 2020-12-30 02:00:37 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-04 18:53:04 +0300 |
commit | a1383b3537a7bea1c213baa7878ccc4ecf4413b5 (patch) | |
tree | 11f4246372a00cb4fa0d87ff87def5f3986ce8ac /net/unix/af_unix.c | |
parent | 718bf42b119de652ebcc93655a1f33a9c0d04b3c (diff) | |
download | linux-a1383b3537a7bea1c213baa7878ccc4ecf4413b5.tar.xz |
usb: dwc3: gadget: Restart DWC3 gadget when enabling pullup
usb_gadget_deactivate/usb_gadget_activate does not execute the UDC start
operation, which may leave EP0 disabled and event IRQs disabled when
re-activating the function. Move the enabling/disabling of USB EP0 and
device event IRQs to be performed in the pullup routine.
Fixes: ae7e86108b12 ("usb: dwc3: Stop active transfers before halting the controller")
Tested-by: Michael Tretter <m.tretter@pengutronix.de>
Cc: stable <stable@vger.kernel.org>
Reported-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Wesley Cheng <wcheng@codeaurora.org>
Link: https://lore.kernel.org/r/1609282837-21666-1-git-send-email-wcheng@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions