mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
8ff05989b4
Until now after a bcm2835 pin was freed its pinmux was set to GPIO_IN. So in case it was configured as GPIO_OUT before the configured output level also get lost. As long as GPIO sysfs was used this wasn't actually a problem because the pins and their possible output level were kept by sysfs. Since more and more Raspberry Pi users start using libgpiod they are confused about this behavior. So make the pin freeing behavior of GPIO_OUT configurable via module parameter. In case pinctrl-bcm2835.persist_gpio_outputs is set to 1, the output level is kept. This patch based on the downstream work of Phil Elwell. Link: https://github.com/raspberrypi/linux/pull/6117 Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Message-ID: <20240503062745.11298-1-wahrenst@gmx.net> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
pinctrl-bcm63xx.c | ||
pinctrl-bcm63xx.h | ||
pinctrl-bcm281xx.c | ||
pinctrl-bcm2835.c | ||
pinctrl-bcm4908.c | ||
pinctrl-bcm6318.c | ||
pinctrl-bcm6328.c | ||
pinctrl-bcm6358.c | ||
pinctrl-bcm6362.c | ||
pinctrl-bcm6368.c | ||
pinctrl-bcm63268.c | ||
pinctrl-cygnus-mux.c | ||
pinctrl-iproc-gpio.c | ||
pinctrl-ns2-mux.c | ||
pinctrl-ns.c | ||
pinctrl-nsp-gpio.c | ||
pinctrl-nsp-mux.c |