Skip to content

Commit 8714625

Browse files
committed
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 <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Link: https://lore.kernel.org/2862093f7701dcaf29f37c0b2f9268234168338f.1727711124.git.geert+renesas@glider.be
1 parent 9852d85 commit 8714625

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/pinctrl/renesas/pinctrl-rza2.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/module.h>
1717
#include <linux/mutex.h>
1818
#include <linux/of.h>
19+
#include <linux/pinctrl/consumer.h>
1920
#include <linux/pinctrl/pinmux.h>
2021
#include <linux/platform_device.h>
2122

@@ -229,6 +230,8 @@ static const char * const rza2_gpio_names[] = {
229230
static struct gpio_chip chip = {
230231
.names = rza2_gpio_names,
231232
.base = -1,
233+
.request = pinctrl_gpio_request,
234+
.free = pinctrl_gpio_free,
232235
.get_direction = rza2_chip_get_direction,
233236
.direction_input = rza2_chip_direction_input,
234237
.direction_output = rza2_chip_direction_output,

0 commit comments

Comments
 (0)