[PATCH v3 2/3] usb: ehci: mxs: Use regulator_set_enable_if_allowed()

2023-10-16 Thread sbabic
> From: Fabio Estevam > Since commit 4fcba5d556b4 ("regulator: implement basic reference > counter") the return value of regulator_set_enable() may be EALREADY or > EBUSY for fixed/GPIO regulators. > Switch to using the more relaxed regulator_set_enable_if_allowed() to > continue if regulator alre

[PATCH v3 2/3] usb: ehci: mxs: Use regulator_set_enable_if_allowed()

2023-10-09 Thread Fabio Estevam
From: Fabio Estevam Since commit 4fcba5d556b4 ("regulator: implement basic reference counter") the return value of regulator_set_enable() may be EALREADY or EBUSY for fixed/GPIO regulators. Switch to using the more relaxed regulator_set_enable_if_allowed() to continue if regulator already was en