mirror of
https://github.com/armbian/build.git
synced 2025-12-18 15:51:24 +01:00
46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
From: Russell King <rmk+kernel@arm.linux.org.uk>
|
|
Subject: [PATCH 66/84] gpio: report all gpios in debugfs
|
|
MIME-Version: 1.0
|
|
Content-Disposition: inline
|
|
Content-Transfer-Encoding: 8bit
|
|
Content-Type: text/plain; charset="utf-8"
|
|
|
|
---
|
|
drivers/gpio/gpio-mvebu.c | 4 ++--
|
|
drivers/gpio/gpiolib.c | 4 ++--
|
|
2 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c
|
|
index df418b81456d..055b983129c6 100644
|
|
--- a/drivers/gpio/gpio-mvebu.c
|
|
+++ b/drivers/gpio/gpio-mvebu.c
|
|
@@ -524,8 +524,8 @@ static void mvebu_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
|
|
bool is_out;
|
|
|
|
label = gpiochip_is_requested(chip, i);
|
|
- if (!label)
|
|
- continue;
|
|
+// if (!label)
|
|
+// continue;
|
|
|
|
msk = 1 << i;
|
|
is_out = !(io_conf & msk);
|
|
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
|
|
index 5db3445552b1..5fc58c7cbbbf 100644
|
|
--- a/drivers/gpio/gpiolib.c
|
|
+++ b/drivers/gpio/gpiolib.c
|
|
@@ -2309,8 +2309,8 @@ static void gpiolib_dbg_show(struct seq_file *s, struct gpio_chip *chip)
|
|
int is_irq;
|
|
|
|
for (i = 0; i < chip->ngpio; i++, gpio++, gdesc++) {
|
|
- if (!test_bit(FLAG_REQUESTED, &gdesc->flags))
|
|
- continue;
|
|
+// if (!test_bit(FLAG_REQUESTED, &gdesc->flags))
|
|
+// continue;
|
|
|
|
gpiod_get_direction(gdesc);
|
|
is_out = test_bit(FLAG_IS_OUT, &gdesc->flags);
|
|
--
|
|
2.1.0
|
|
|