14254212b4
commit 8e21a620c7e6e00347ade1a6ed4967b359eada5a upstream.
Currently if we bootup a device without cable connected, then
usb-conn-gpio won't call set_role() because last_role is same
as current role. This happens since last_role gets initialised
to zero during the probe.
To avoid this, add a new flag initial_detection into struct
usb_conn_info, which prevents bailing out during initial
detection.
Cc: <stable@vger.kernel.org> # 5.4
Fixes:
|
||
---|---|---|
.. | ||
common.c | ||
common.h | ||
debug.c | ||
Kconfig | ||
led.c | ||
Makefile | ||
ulpi.c | ||
usb-conn-gpio.c | ||
usb-otg-fsm.c |