mirror of https://gitee.com/openkylin/linux.git
pinctrl: print pin range in GPIO range debugs
Show the mapped pin range corresponding to the GPIO range in debugfs for pin controllers. Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
3c739ad0df
commit
75d6642a3e
|
@ -394,8 +394,11 @@ static int pinctrl_gpioranges_show(struct seq_file *s, void *what)
|
||||||
/* Loop over the ranges */
|
/* Loop over the ranges */
|
||||||
mutex_lock(&pctldev->gpio_ranges_lock);
|
mutex_lock(&pctldev->gpio_ranges_lock);
|
||||||
list_for_each_entry(range, &pctldev->gpio_ranges, node) {
|
list_for_each_entry(range, &pctldev->gpio_ranges, node) {
|
||||||
seq_printf(s, "%u: %s [%u - %u]\n", range->id, range->name,
|
seq_printf(s, "%u: %s GPIOS [%u - %u] PINS [%u - %u]\n",
|
||||||
range->base, (range->base + range->npins - 1));
|
range->id, range->name,
|
||||||
|
range->base, (range->base + range->npins - 1),
|
||||||
|
range->pin_base,
|
||||||
|
(range->pin_base + range->npins - 1));
|
||||||
}
|
}
|
||||||
mutex_unlock(&pctldev->gpio_ranges_lock);
|
mutex_unlock(&pctldev->gpio_ranges_lock);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue