diff options
| author | Lee Jones <lee@kernel.org> | 2026-11-03 21:29:12 +0000 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-11-08 15:25:02 +0100 |
| commit | 92f95b6e4815026a9957c37c4021876696b4152b (patch) | |
| tree | ba4f69c1128ee66782d3bd6f20ab423c05b3f8a0 /scripts/Makefile.thinlto | |
| parent | 4b768208a7948f409c5ddcbff99566acc8fdc25a (diff) | |
| download | linux-next-92f95b6e4815026a9957c37c4021876696b4152b.tar.gz linux-next-92f95b6e4815026a9957c37c4021876696b4152b.zip | |
pinctrl: realtek: Initialise omitted offset fields to NA in config macros
The Realtek pinctrl driver uses NA (0xffffffff) as the sentinel for
unsupported pin configuration features. However, RTK_PIN_CONFIG omits
input_volt_offset, slew_rate_offset, and hvil_offset, and
RTK_PIN_CONFIG_V2 omits slew_rate_offset and hvil_offset. Because C99
designated initialisers zero-initialise omitted members, those fields
default to 0 instead of NA, causing rtd_pconf_parse_conf() to treat
unsupported features as valid at bit offset base_bit + 0 and corrupt
adjacent register bits.
Explicitly initialise the omitted offset fields to NA in RTK_PIN_CONFIG
and RTK_PIN_CONFIG_V2.
Fixes: e99ce78030db ("pinctrl: realtek: Add common pinctrl driver for Realtek DHC RTD SoCs")
Fixes: e309dbd523b8 ("pinctrl: realtek: add rtd1625 pinctrl driver")
Closes: https://sashiko.dev/#/bug/linux-fbd0bf54-6dba-4652-9418-270b11fb6d8b
Cc: stable@vger.kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
Reviewed-by: Yu-Chun Lin <eleanor.lin@realtek.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
