Files
linux/drivers
Frank Wang 9cce7d5ac8 phy: rockchip: inno-usb2: fix incorrect perip_connected
The U2PHY sent "peripheral connected" extcon message to DWC3 even if
there is no USB cable pluuged when the otg_sm_work is scheduled first
time, this would be resumed DWC3 unexpectedly and cause the DWC3 gadget
to incorrect state. So initialize the perip_connected to false before
send the extcon message to fix it.

This can fix the ADB can not be enumerated when plug the USB cable
in the first time after the system boot up and the below messages
may find in the Kernel log on RK3562-EVB2 board.

[    7.218101] read descriptors
[    7.218191] read strings
[    7.306784] dwc3 fe500000.usb: failed to enable ep0out

Fixes: 00168bb5b5 ("phy: rockchip: inno-usb2: fix otg port with vbus always on")
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I90209f15605d16ca746dd6c44fbaf6d9c1684eaa
2023-02-08 18:04:08 +08:00
..
2022-07-22 16:14:12 +08:00
2022-12-16 10:15:56 +08:00
2022-05-21 17:43:58 +08:00
2021-11-18 14:03:51 +01:00
2023-02-08 11:51:59 +08:00
2023-02-07 20:30:52 +08:00