Re: [PATCH 2/5] usb: dwc2: Use regulator_set_enable_if_allowed

2023-08-12 Thread Marek Vasut
On 8/11/23 21:53, Jonas Karlman wrote: On 2023-08-11 20:59, Marek Vasut wrote: On 7/19/23 23:20, Jonas Karlman wrote: With the commit 4fcba5d556b4 ("regulator: implement basic reference counter") the return value of regulator_set_enable may be EALREADY or EBUSY for fixed/gpio regulators.

Re: [PATCH 2/5] usb: dwc2: Use regulator_set_enable_if_allowed

2023-08-11 Thread Jonas Karlman
On 2023-08-11 20:59, Marek Vasut wrote: > On 7/19/23 23:20, Jonas Karlman wrote: >> With the commit 4fcba5d556b4 ("regulator: implement basic reference >> counter") the return value of regulator_set_enable may be EALREADY or >> EBUSY for fixed/gpio regulators. >> >> Change to use the more relaxed

Re: [PATCH 2/5] usb: dwc2: Use regulator_set_enable_if_allowed

2023-08-11 Thread Marek Vasut
On 7/19/23 23:20, Jonas Karlman wrote: With the commit 4fcba5d556b4 ("regulator: implement basic reference counter") the return value of regulator_set_enable may be EALREADY or EBUSY for fixed/gpio regulators. Change to use the more relaxed regulator_set_enable_if_allowed to continue if

Re: [PATCH 2/5] usb: dwc2: Use regulator_set_enable_if_allowed

2023-07-26 Thread Simon Glass
On Wed, 19 Jul 2023 at 15:21, Jonas Karlman wrote: > > With the commit 4fcba5d556b4 ("regulator: implement basic reference > counter") the return value of regulator_set_enable may be EALREADY or > EBUSY for fixed/gpio regulators. > > Change to use the more relaxed regulator_set_enable_if_allowed

[PATCH 2/5] usb: dwc2: Use regulator_set_enable_if_allowed

2023-07-19 Thread Jonas Karlman
With the commit 4fcba5d556b4 ("regulator: implement basic reference counter") the return value of regulator_set_enable may be EALREADY or EBUSY for fixed/gpio regulators. Change to use the more relaxed regulator_set_enable_if_allowed to continue if regulator already was enabled or disabled.