summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorYang Siyuan <hsyysy@163.com>2026-11-17 19:08:12 +0800
committerPhilipp Zabel <p.zabel@pengutronix.de>2026-11-17 14:27:15 +0100
commit586a87701101ba11477c8b5cdc1528413318ab77 (patch)
treed74cd8d7c930c7e2c67a789d79af3d0b2fca3ea4 /tools/perf/scripts/python/bin
parentd1f583c1eab5e4432c7ad48a8abd27cffbc8a549 (diff)
reset: core: honour optional resets when the GPIO fallback returns -ENOENT
__fwnode_reset_control_get() honours RESET_CONTROL_FLAGS_BIT_OPTIONAL by returning NULL when the requested reset is not described in the device tree. The reset-gpio fallback breaks this: when __reset_add_reset_gpio_device() fails with -ENOENT, the error is returned even for an optional reset. This is reachable on Allwinner SoCs, whose pinctrl uses three-cell GPIO specifiers. The reset-gpio fallback only supports two cells, so it returns -ENOENT and a consumer asking for an optional reset fails to probe instead of falling back to its own GPIO handling. mmc-pwrseq-simple on the Anbernic RG35XX family hits this: its wifi_pwrseq node has reset-gpios but no resets, so the SDIO WiFi adapter never probes. Return NULL only for -ENOENT when the reset was requested as optional. A reset that is described but cannot be used is still an error, so -EPROBE_DEFER and all other failures are propagated. Signed-off-by: Yang Siyuan <hsyysy@163.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions