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>
This commit is contained in:
parent
ca67f10f27
commit
d7f005e839
1 changed files with 5 additions and 0 deletions
|
@ -1010,6 +1010,7 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s,
|
||||||
int irq = gpio_to_irq(gpio);
|
int irq = gpio_to_irq(gpio);
|
||||||
struct irq_desc *desc = irq_to_desc(irq);
|
struct irq_desc *desc = irq_to_desc(irq);
|
||||||
int pullidx = 0;
|
int pullidx = 0;
|
||||||
|
int val;
|
||||||
|
|
||||||
if (pull)
|
if (pull)
|
||||||
pullidx = data_out ? 1 : 2;
|
pullidx = data_out ? 1 : 2;
|
||||||
|
@ -1019,6 +1020,10 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s,
|
||||||
label ?: "(none)",
|
label ?: "(none)",
|
||||||
pulls[pullidx],
|
pulls[pullidx],
|
||||||
(mode < 0) ? "unknown" : modes[mode]);
|
(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(),
|
* This races with request_irq(), set_irq_type(),
|
||||||
* and set_irq_wake() ... but those are "rare".
|
* and set_irq_wake() ... but those are "rare".
|
||||||
|
|
Loading…
Reference in a new issue