On Tue, Feb 18, 2025 at 06:35:58PM +1000, James Calligeros wrote: > From: Hector Martin <marcan@xxxxxxxxx> > > Multiple amps can be connected to the same SDZ GPIO. Using raw GPIOs for > this breaks, as there is no concept of refcounting/sharing. In order to > model these platforms, introduce support for an SDZ "regulator". This > allows us to represent the SDZ GPIO as a simple regulator-fixed, and > then the regulator core takes care of refcounting so that all codecs are > only powered down once all the driver instances are in the suspend > state. Same issue with the use of the regulator API winding up as ABI here as with the earlier patch - I get why you're doing this pragmatically and we should just have a general helper for refcounted GPIO enables.
Attachment:
signature.asc
Description: PGP signature