Re: [PATCH 2/3] regulator: qcom_usb_vbus: Add support for PMI8998 VBUS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 2/12/25 15:37, Mark Brown wrote:
On Wed, Feb 12, 2025 at 03:29:54PM +0000, Caleb Connolly wrote:

I would suggest implementing a proper .is_enabled op to poll the status
register for OTG_STATE_ENABLED and configuring

No, that would be buggy.  Implement a get_status() operation if the
device can report status.  is_enabled() should report what the driver
asked for.

Ahh yep, that's right. it should implement .get_status() (as per the polling code in _regulator_do_enable()).

--
Caleb (they/them)





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux