mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 20:46:48 +02:00
pinctrl: renesas: rza2: Mark GPIOs as used
GPIOs showed up as unclaimed in debugfs, so they could be muxed to something else even though they were in use. Mark GPIOs as claimed when in use to avoid that. Reported-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/2862093f7701dcaf29f37c0b2f9268234168338f.1727711124.git.geert+renesas@glider.be
This commit is contained in:
parent
9852d85ec9
commit
87146254f8
|
|
@ -16,6 +16,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/pinctrl/consumer.h>
|
||||
#include <linux/pinctrl/pinmux.h>
|
||||
#include <linux/platform_device.h>
|
||||
|
||||
|
|
@ -229,6 +230,8 @@ static const char * const rza2_gpio_names[] = {
|
|||
static struct gpio_chip chip = {
|
||||
.names = rza2_gpio_names,
|
||||
.base = -1,
|
||||
.request = pinctrl_gpio_request,
|
||||
.free = pinctrl_gpio_free,
|
||||
.get_direction = rza2_chip_get_direction,
|
||||
.direction_input = rza2_chip_direction_input,
|
||||
.direction_output = rza2_chip_direction_output,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user