On Wed, Oct 29, 2025 at 12:54 PM Andy Shevchenko <[email protected]> wrote: > > 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/[email protected]/ >
I am aware of this weird ownership transfer in regulator but these changes don't affect it. The layering is still being violated though. This should be fixed and I've looked into it but it's not trivial so it's another big rework for the future. Bart
