mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-26 20:44:32 +08:00
c721f189e8
Devices sharing a reset GPIO could use the reset framework for coordinated handling of that shared GPIO line. We have several cases of such needs, at least for Devicetree-based platforms. If Devicetree-based device requests a reset line, while "resets" Devicetree property is missing but there is a "reset-gpios" one, instantiate a new "reset-gpio" platform device which will handle such reset line. This allows seamless handling of such shared reset-gpios without need of changing Devicetree binding [1]. To avoid creating multiple "reset-gpio" platform devices, store the Devicetree "reset-gpios" GPIO specifiers used for new devices on a linked list. Later such Devicetree GPIO specifier (phandle to GPIO controller, GPIO number and GPIO flags) is used to check if reset controller for given GPIO was already registered. If two devices have conflicting "reset-gpios" property, e.g. with different ACTIVE_xxx flags, this would allow to spawn two separate "reset-gpio" devices, where the second would fail probing on busy GPIO request. Link: https://lore.kernel.org/all/YXi5CUCEi7YmNxXM@robh.at.kernel.org/ [1] Cc: Bartosz Golaszewski <brgl@bgdev.pl> Cc: Chris Packham <chris.packham@alliedtelesis.co.nz> Cc: Sean Anderson <sean.anderson@seco.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20240129115216.96479-5-krzysztof.kozlowski@linaro.org Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> |
||
---|---|---|
.. | ||
hisilicon | ||
starfive | ||
sti | ||
tegra | ||
core.c | ||
Kconfig | ||
Makefile | ||
reset-a10sr.c | ||
reset-ath79.c | ||
reset-axs10x.c | ||
reset-bcm6345.c | ||
reset-berlin.c | ||
reset-brcmstb-rescal.c | ||
reset-brcmstb.c | ||
reset-gpio.c | ||
reset-hsdk.c | ||
reset-imx7.c | ||
reset-intel-gw.c | ||
reset-k210.c | ||
reset-lantiq.c | ||
reset-lpc18xx.c | ||
reset-ma35d1.c | ||
reset-meson-audio-arb.c | ||
reset-meson.c | ||
reset-microchip-sparx5.c | ||
reset-mpfs.c | ||
reset-npcm.c | ||
reset-pistachio.c | ||
reset-qcom-aoss.c | ||
reset-qcom-pdc.c | ||
reset-raspberrypi.c | ||
reset-rzg2l-usbphy-ctrl.c | ||
reset-scmi.c | ||
reset-simple.c | ||
reset-socfpga.c | ||
reset-sunplus.c | ||
reset-sunxi.c | ||
reset-ti-sci.c | ||
reset-ti-syscon.c | ||
reset-tn48m.c | ||
reset-tps380x.c | ||
reset-uniphier-glue.c | ||
reset-uniphier.c | ||
reset-zynq.c | ||
reset-zynqmp.c |