u-boot/drivers/phy
Patrick Delaunay 91dae6d0a1 phy: usbphyc: use regulator_set_enable_if_allowed for disabling vbus supply
Use regulator_set_enable_if_allowed() api instead of regulator_set_enable()
while disabling vbus supply. This way the driver doesn't see an error
when it disable an always-on regulator for VBUS.

This patch is needed for STM32MP157C-DK2 board when the regulator
v3v3: buck4 used as the phy vbus supply in kernel device tree
is always on with the next hack for low power use-case:

&usbphyc_port0 {
        ...
	/*
	 * Hack to keep hub active until all connected devices are suspended
	 * otherwise the hub will be powered off as soon as the v3v3 is disabled
	 * and it can disturb connected devices.
	 */
	connector {
		compatible = "usb-a-connector";
		vbus-supply = <&v3v3>;
	};
};

Without this patch and the previous update in DT the command
"usb stop" failed and the next command "usb start" cause a crash.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Marek Vasut <marex@denx.de>
2022-12-12 11:25:19 +01:00
..
allwinner phy: sun4i-usb: Add D1 variant 2022-07-18 23:48:37 +01:00
cadence phy: cadence: Sierra: Move the link operations from serdes phy to link device 2022-03-14 12:44:51 -04:00
marvell usb: ehci: ehci-marvell: Update compatible string to official DT bindings 2022-02-17 14:17:07 +01:00
qcom phy: Add support for drivers to enable USB on QCS404 SoC 2022-08-26 10:55:45 -04:00
rockchip common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
socionext phy: socionext: Add UniPhier PCIe PHY driver 2021-07-14 16:48:07 -04:00
ti phy: ti: j721e-wiz: add j784s4-wiz-10g module support 2022-10-18 09:48:22 -04:00
bcm6318-usbh-phy.c phy: bcm63xx: Don't check clk_free 2022-03-30 13:02:55 -04:00
bcm6348-usbh-phy.c phy: bcm63xx: Don't check clk_free 2022-03-30 13:02:55 -04:00
bcm6358-usbh-phy.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
bcm6368-usbh-phy.c phy: bcm63xx: Don't check clk_free 2022-03-30 13:02:55 -04:00
Kconfig phy: Move qcom SoCs specific phy drivers to qcom folder 2022-08-26 10:55:45 -04:00
keystone-usb-phy.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
Makefile phy: Move qcom SoCs specific phy drivers to qcom folder 2022-08-26 10:55:45 -04:00
meson-axg-mipi-dphy.c phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto" 2021-07-27 10:32:09 +02:00
meson-axg-mipi-pcie-analog.c phy: meson-axg-mipi: Access parent ofnode through dev_ofnode() 2021-07-27 10:32:09 +02:00
meson-g12a-usb2.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
meson-g12a-usb3-pcie.c phy: meson-g12a-usb3-pcie: add support for PCIe ops 2021-04-19 16:59:33 +02:00
meson-gxbb-usb2.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
meson-gxl-usb2.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mt76x8-usb-phy.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mt7620-usb-phy.c phy: add USB PHY driver for MediaTek MT7620 SoC 2021-01-24 21:39:26 +01:00
nop-phy.c phy: nop-phy: Fix phy reset if no reset-gpio defined 2022-03-01 00:21:11 +01:00
omap-usb2-phy.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
phy-ab8500-usb.c phy: Add driver for ST-Ericsson AB8500 USB PHY 2021-07-14 16:48:15 -04:00
phy-bcm-sr-pcie.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
phy-core-mipi-dphy.c phy: dphy: Add configuration helpers 2021-02-10 10:00:51 +01:00
phy-da8xx-usb.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
phy-imx8mq-usb.c phy: phy-imx8mq-usb: Add support for i.MX8MP USB PHY 2022-04-12 17:33:56 +02:00
phy-mtk-tphy.c clk: Rename clk_get_optional_nodev 2022-02-24 23:58:13 -05:00
phy-npcm-usb.c phy: nuvoton: add NPCM7xx phy control driver 2022-07-06 14:30:51 -04:00
phy-rcar-gen2.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
phy-rcar-gen3.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
phy-stm32-usbphyc.c phy: usbphyc: use regulator_set_enable_if_allowed for disabling vbus supply 2022-12-12 11:25:19 +01:00
phy-ti-am654.c dm: core: Access device ofnode through functions 2021-01-05 12:24:41 -07:00
phy-uclass.c phy: Add generic_{setup,shutdown}_phy() helpers 2022-10-10 18:08:18 +02:00
phy-zynqmp.c phy: zynqmp: Increase timeout value to 10ms 2022-05-18 13:17:54 +02:00
sandbox-phy.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
sti_usb_phy.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ti-pipe3-phy.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00