linux-stable/drivers/usb/fotg210
Aaro Koskinen 30d09b3131 usb: gadget: udc: do not clear gadget driver.bus
Before the commit fc274c1e99 ("USB: gadget: Add a new bus for gadgets")
gadget driver.bus was unused. For whatever reason, many UDC drivers set
this field explicitly to NULL in udc_start(). With the newly added gadget
bus, doing this will crash the driver during the attach.

The problem was first reported, fixed and tested with OMAP UDC and g_ether.
Other drivers are changed based on code analysis only.

Fixes: fc274c1e99 ("USB: gadget: Add a new bus for gadgets")
Cc: stable <stable@kernel.org>
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20230201220125.GD2415@darkstar.musicnaut.iki.fi
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-02 09:41:17 +01:00
..
fotg210-core.c usb: fotg210: fix OTG-only build 2022-12-28 11:23:53 +01:00
fotg210-hcd.c
fotg210-hcd.h
fotg210-udc.c usb: gadget: udc: do not clear gadget driver.bus 2023-02-02 09:41:17 +01:00
fotg210-udc.h fotg210-udc: Handle PCLK 2022-11-22 17:25:23 +01:00
fotg210.h
Kconfig usb: USB_FOTG210 should depend on ARCH_GEMINI 2022-11-22 17:25:06 +01:00
Makefile