linux/drivers/phy/rockchip
Peter Geis f340ed8664 phy: rockchip-inno-usb2: Return zero after otg sync
The otg sync state patch reuses the ret variable, but fails to set it to
zero after use. This leads to a situation when the otg port is in
peripheral mode where the otg phy aborts halfway through setup.  It also
fails to account for a failure to register the extcon notifier. Fix this
by using our own variable and skipping otg sync in case of failure.

Fixes: 8dc60f8da2 ("phy: rockchip-inno-usb2: Sync initial otg state")
Reported-by: Markus Reichl <m.reichl@fivetechno.de>
Reported-by: Michael Riesch <michael.riesch@wolfvision.net>
Signed-off-by: Peter Geis <pgwipeout@gmail.com>
Tested-by: Michael Riesch <michael.riesch@wolfvision.net>
Tested-by: Markus Reichl <m.reichl@fivetechno.de>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20220902184543.1234835-1-pgwipeout@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2022-09-04 20:53:40 +05:30
..
Kconfig phy: rockchip: Support PCIe v3 2022-09-04 20:35:48 +05:30
Makefile phy: rockchip: Support PCIe v3 2022-09-04 20:35:48 +05:30
phy-rockchip-dp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 178 2019-05-30 11:29:19 -07:00
phy-rockchip-dphy-rx0.c phy/rockchip: Use of_device_get_match_data() 2022-04-13 15:23:23 +05:30
phy-rockchip-emmc.c phy: rockchip: emmc, add vendor prefix to dts properties 2021-01-13 17:28:24 +05:30
phy-rockchip-inno-csidphy.c phy: rockchip: add support for the rk356x variant to rockchip-inno-csidphy 2022-09-02 23:00:47 +05:30
phy-rockchip-inno-dsidphy.c phy: dphy: Correct clk_pre parameter 2022-02-02 10:33:04 +05:30
phy-rockchip-inno-hdmi.c phy: rockchip: remove redundant initialization of pointer cfg 2021-06-21 09:22:37 +05:30
phy-rockchip-inno-usb2.c phy: rockchip-inno-usb2: Return zero after otg sync 2022-09-04 20:53:40 +05:30
phy-rockchip-naneng-combphy.c phy: rockchip: add naneng combo phy for RK3568 2022-02-24 20:13:52 +05:30
phy-rockchip-pcie.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 235 2019-06-19 17:09:07 +02:00
phy-rockchip-snps-pcie3.c phy: rockchip: Support PCIe v3 2022-09-04 20:35:48 +05:30
phy-rockchip-typec.c phy/rockchip: Use of_device_get_match_data() 2022-04-13 15:23:23 +05:30
phy-rockchip-usb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 235 2019-06-19 17:09:07 +02:00