linux/drivers/pinctrl
Claudiu Beznea 0af4c120f5 pinctrl: pinconf-generic: Print unsigned value if a format is registered
Commit 3ba11e684d ("pinctrl: pinconf-generic: print hex value")
unconditionally switched to printing hex values in
pinconf_generic_dump_one(). However, if a dump format is registered for the
dumped pin, the hex value is printed as well. This hex value does not
necessarily correspond 1:1 with the hardware register value (as noted by
commit 3ba11e684d ("pinctrl: pinconf-generic: print hex value")). As a
result, user-facing output may include information like:
output drive strength (0x100 uA).

To address this, check if a dump format is registered for the dumped
property, and print the unsigned value instead when applicable.

Fixes: 3ba11e684d ("pinctrl: pinconf-generic: print hex value")
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://lore.kernel.org/20250205101058.2034860-1-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2025-02-06 10:13:15 +01:00
..
actions
aspeed
bcm pinctrl: Use str_enable_disable-like helpers 2025-01-15 12:52:26 +01:00
berlin
cirrus pinctrl: Use str_enable_disable-like helpers 2025-01-15 12:52:26 +01:00
freescale pinctrl: Use of_property_present() for non-boolean properties 2024-11-08 09:02:15 +01:00
intel module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
mediatek pinctrl: mediatek: Drop mtk_pinconf_bias_set_pd() 2025-01-08 22:52:44 +01:00
meson
mvebu Fix a potential abuse of seq_printf() format string in drivers 2024-11-22 15:31:35 +01:00
nomadik pinctrl: Use str_enable_disable-like helpers 2025-01-15 12:52:26 +01:00
nuvoton
nxp
pxa
qcom pinctrl: Use str_enable_disable-like helpers 2025-01-15 12:52:26 +01:00
realtek
renesas pinctrl: renesas: rzg2l: Fix PFC_MASK for RZ/V2H and RZ/G3E 2025-01-14 09:22:48 +01:00
samsung pinctrl: Use str_enable_disable-like helpers 2025-01-15 12:52:26 +01:00
sophgo This is the bulk of the pin control changes for v6.13: 2024-11-25 17:24:51 -08:00
spacemit
spear
sprd
starfive
stm32 pinctrl: Use str_enable_disable-like helpers 2025-01-15 12:52:26 +01:00
sunplus
sunxi pinctrl: sunxi: add missed lvds pins for a100/a133 2025-01-13 15:29:23 +01:00
tegra
ti
uniphier
visconti
vt8500
core.c pinctrl: Fix the clean up on pinconf_apply_setting failure 2024-12-27 17:07:56 +01:00
core.h
devicetree.c
devicetree.h
Kconfig
Makefile
pinconf-generic.c pinctrl: pinconf-generic: Print unsigned value if a format is registered 2025-02-06 10:13:15 +01:00
pinconf.c
pinconf.h
pinctrl-amd.c pinctrl: Use str_enable_disable-like helpers 2025-01-15 12:52:26 +01:00
pinctrl-amd.h pinctrl: amd: Take suspend type into consideration which pins are non-wake 2025-01-14 14:33:59 +01:00
pinctrl-apple-gpio.c
pinctrl-artpec6.c
pinctrl-as3722.c
pinctrl-at91-pio4.c
pinctrl-at91.c
pinctrl-at91.h
pinctrl-aw9523.c
pinctrl-axp209.c
pinctrl-bm1880.c
pinctrl-cy8c95x0.c pinctrl: cy8c95x0: Respect IRQ trigger settings from firmware 2025-02-03 21:51:35 +01:00
pinctrl-da850-pupd.c
pinctrl-da9062.c
pinctrl-digicolor.c
pinctrl-ep93xx.c
pinctrl-equilibrium.c
pinctrl-equilibrium.h
pinctrl-eyeq5.c
pinctrl-falcon.c
pinctrl-gemini.c pinctrl: Use str_enable_disable-like helpers 2025-01-15 12:52:26 +01:00
pinctrl-ingenic.c pinctrl: ingenic: Replace seq_printf() by seq_puts() 2024-12-17 15:05:43 +01:00
pinctrl-k210.c pinctrl: k210: Undef K210_PC_DEFAULT 2024-11-18 23:51:05 +01:00
pinctrl-k230.c
pinctrl-keembay.c
pinctrl-lantiq.c
pinctrl-lantiq.h
pinctrl-loongson2.c
pinctrl-lpc18xx.c
pinctrl-max77620.c
pinctrl-mcp23s08_i2c.c
pinctrl-mcp23s08_spi.c
pinctrl-mcp23s08.c pinctrl: mcp23s08: Fix sleeping in atomic context due to regmap locking 2024-12-17 15:10:32 +01:00
pinctrl-mcp23s08.h
pinctrl-microchip-sgpio.c
pinctrl-mlxbf3.c
pinctrl-ocelot.c pinctrl: ocelot: Constify some structures 2024-12-20 13:48:31 +01:00
pinctrl-palmas.c
pinctrl-pef2256.c
pinctrl-pic32.c
pinctrl-pic32.h
pinctrl-pistachio.c
pinctrl-rk805.c
pinctrl-rockchip.c pinctrl: rockchip: add rk3562 support 2024-12-27 17:12:09 +01:00
pinctrl-rockchip.h pinctrl: rockchip: add rk3562 support 2024-12-27 17:12:09 +01:00
pinctrl-scmi.c
pinctrl-single.c pinctrl: single: add marvell,pxa1908-padconf compatible 2024-11-08 09:32:21 +01:00
pinctrl-st.c
pinctrl-stmfx.c pinctrl: Use str_enable_disable-like helpers 2025-01-15 12:52:26 +01:00
pinctrl-sx150x.c Driver core changes for 6.13-rc1 2024-11-29 11:43:29 -08:00
pinctrl-tb10x.c
pinctrl-th1520.c
pinctrl-tps6594.c
pinctrl-utils.c
pinctrl-utils.h
pinctrl-xway.c pinctrl: Use of_property_present() for non-boolean properties 2024-11-08 09:02:15 +01:00
pinctrl-zynq.c
pinctrl-zynqmp.c
pinmux.c
pinmux.h