[PATCH] phy: usbphyc: use regulator_set_enable_if_allowed for disabling vbus supply

2022-09-20 Thread Patrick Delaunay
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 supp

Re: [PATCH] phy: usbphyc: use regulator_set_enable_if_allowed for disabling vbus supply

2022-09-26 Thread Patrice CHOTARD
Hi Patrick On 9/20/22 13:39, Patrick Delaunay wrote: > 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-DK

Re: [PATCH] phy: usbphyc: use regulator_set_enable_if_allowed for disabling vbus supply

2022-10-26 Thread Patrick DELAUNAY
Hi Marek, On 9/20/22 13:39, Patrick Delaunay wrote: 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 w

Re: [PATCH] phy: usbphyc: use regulator_set_enable_if_allowed for disabling vbus supply

2022-10-26 Thread Marek Vasut
On 10/26/22 15:09, Patrick DELAUNAY wrote: Hi Marek, On 9/20/22 13:39, Patrick Delaunay wrote: 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. Thi

Re: [Uboot-stm32] [PATCH] phy: usbphyc: use regulator_set_enable_if_allowed for disabling vbus supply

2022-12-12 Thread Patrice CHOTARD
Hi Patrick On 9/26/22 09:07, Patrice CHOTARD wrote: > Hi Patrick > > On 9/20/22 13:39, Patrick Delaunay wrote: >> 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 re