Thread (2 messages) 2 messages, 2 authors, 2025-08-18

Re: [PATCH] pinctrl: single: fix bias pull up/down handling in pin_config_set

From: Linus Walleij <hidden>
Date: 2025-08-18 17:32:19

On Thu, Aug 7, 2025 at 8:42 AM Chi Zhang [off-list ref] wrote:
In the pin_config_set function, when handling PIN_CONFIG_BIAS_PULL_DOWN or
PIN_CONFIG_BIAS_PULL_UP, the function calls pcs_pinconf_clear_bias()
which writes the register. However, the subsequent operations continue
using the stale 'data' value from before the register write, effectively
causing the bias clear operation to be overwritten and not take effect.

Fix this by reading the 'data' value from the register after calling
pcs_pinconf_clear_bias().

This bug seems to have existed when this code was first merged in commit
9dddb4df90d1 ("pinctrl: single: support generic pinconf").

Signed-off-by: Chi Zhang <redacted>
No replies from maintainers so patch applied!

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help