diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2015-08-11 15:11:29 (GMT) |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-08-11 15:12:57 (GMT) |
commit | d7f005e8392e41014864b717e00a0777ebcfc64e (patch) | |
tree | e5e61c8fb75d64703b067ccf32699ddaa6a041ef /drivers/pinctrl | |
parent | ca67f10f27b6aace4a87713f038577994ec578af (diff) | |
download | linux-d7f005e8392e41014864b717e00a0777ebcfc64e.tar.xz |
pinctrl: nomadik: reflect current input value
Let us see the current value on the input line in debugfs.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/nomadik/pinctrl-nomadik.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c index 181fa54..352ede1 100644 --- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c +++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c @@ -1010,6 +1010,7 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s, int irq = gpio_to_irq(gpio); struct irq_desc *desc = irq_to_desc(irq); int pullidx = 0; + int val; if (pull) pullidx = data_out ? 1 : 2; @@ -1019,6 +1020,10 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s, label ?: "(none)", pulls[pullidx], (mode < 0) ? "unknown" : modes[mode]); + + val = nmk_gpio_get_input(chip, offset); + seq_printf(s, " VAL %d", val); + /* * This races with request_irq(), set_irq_type(), * and set_irq_wake() ... but those are "rare". |