[PATCH v3 10/10] regulator: make the subsystem aware of shared GPIOs

Andy Shevchenko andriy.shevchenko at intel.com
Wed Oct 29 04:54:04 PDT 2025


On Wed, Oct 29, 2025 at 12:20:46PM +0100, Bartosz Golaszewski wrote:
> 
> GPIOLIB is now aware of shared GPIOs and - for platforms where access to
> such pins is managed internally - we don't need to keep track of the
> enable count.
> 
> Once all users in the kernel switch to using the new mechanism, we'll be
> able to drop the internal counting of users from the regulator code.

I am wondering if you took into account the layering violation (or others
put it as "transferring of ownership") in the regulator core for the platform
based GPIO regulators? This popped up during the discussion of
https://lore.kernel.org/platform-driver-x86/20251024050537.92440-1-qiuwenbo@gnome.org/

-- 
With Best Regards,
Andy Shevchenko





More information about the linux-arm-kernel mailing list