diff options
| author | Wesley Cheng <[email protected]> | 2022-01-11 06:48:50 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-01-26 12:57:59 +0000 |
| commit | d6dd18efd01fc64bc3d1df0d18ad67f854e6e137 (patch) | |
| tree | 01ea3f567f3bbd8c97b8554690518f8b2b416e28 /drivers/usb/cdns3/cdnsp-debug.h | |
| parent | usb: gadget: tegra-xudc: Do not program SPARAM (diff) | |
| download | kernel-d6dd18efd01fc64bc3d1df0d18ad67f854e6e137.tar.gz kernel-d6dd18efd01fc64bc3d1df0d18ad67f854e6e137.zip | |
usb: gadget: f_serial: Ensure gserial disconnected during unbind
Some UDCs may return an error during pullup disable as part of the
unbind path for a USB configuration. This will lead to a scenario
where the disable() callback is skipped, whereas the unbind() still
occurs. If this happens, the u_serial driver will continue to fail
subsequent binds, due to an already existing entry in the ports array.
Ensure that gserial_disconnect() is called during the f_serial unbind,
so the ports entry is properly cleared.
Signed-off-by: Wesley Cheng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdnsp-debug.h')
0 files changed, 0 insertions, 0 deletions
