mirror of https://github.com/torvalds/linux.git
When unplugging the USB cable or disconnecting a gadget in usb peripheral mode with
echo "" > /sys/kernel/config/usb_gadget/<your_gadget>/UDC,
/sys/class/udc/musb-hdrc.0/state does not change from USB_STATE_CONFIGURED.
Testing on dwc2/3 shows they both update the state to USB_STATE_NOTATTACHED.
Add calls to usb_gadget_set_state in musb_g_disconnect and musb_gadget_stop
to fix both cases.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| cppi_dma.h | ||
| da8xx.c | ||
| jz4740.c | ||
| mediatek.c | ||
| mpfs.c | ||
| musb_core.c | ||
| musb_core.h | ||
| musb_cppi41.c | ||
| musb_debug.h | ||
| musb_debugfs.c | ||
| musb_dma.h | ||
| musb_dsps.c | ||
| musb_gadget.c | ||
| musb_gadget.h | ||
| musb_gadget_ep0.c | ||
| musb_host.c | ||
| musb_host.h | ||
| musb_io.h | ||
| musb_regs.h | ||
| musb_trace.c | ||
| musb_trace.h | ||
| musb_virthub.c | ||
| musbhsdma.c | ||
| omap2430.c | ||
| omap2430.h | ||
| sunxi.c | ||
| tusb6010.c | ||
| tusb6010.h | ||
| tusb6010_omap.c | ||
| ux500.c | ||
| ux500_dma.c | ||