Re: [PATCH 05/12] pinctrl: airoha: an7581: select force GPIO mode on GPIO requests
From: Zhengping Zhang
Date: Fri Nov 20 2026 - 02:19:47 EST
Hi Mikhail,
Thanks for the suggestion. I agree that selecting GPIO mode by disabling
the relevant functions would be preferable to use the FORCE_GPIO
registers.
I plan to change the implementation as follows:
- Select GPIO mode by disabling the relevant alternate functions,
without setting FORCE_GPIO. Reject requests that conflict with
existing users.
- When selecting a peripheral function, clear FORCE_GPIO overrides
where needed so that the peripheral can control the pad.
Would this approach address your concern? If it looks reasonable, I will
adopt it in v2 and validate.
Best Regards,
Zhengping
On Sun, Nov 15, 2026 at 05:21:15PM +0300, Mikhail Kshevetskiy wrote:
> I think it's better does not play with force gpio registers and just
> disable (if no conflicts) functions that put selected pin to non-gpio mode.