armbian_build/patch/kernel/archive/mvebu-4.19/0044-gpio-report-all-gpios-in-debugfs.patch
Igor Pečovnik 0cdffb29b0
Renaming DEV branch to EDGE (#2704)
* Change DEV to EDGE
* Renaming patches dev folder to edge
* Move patches into subdir where they will be archived.
* Relink patch directories properly
2021-03-24 19:01:53 +01:00

43 lines
1.2 KiB
Diff

From d737953ac85dde91eeb0340b5ac999eb48b73b04 Mon Sep 17 00:00:00 2001
From: Russell King <rmk+kernel@arm.linux.org.uk>
Date: Mon, 28 Dec 2015 13:55:13 +0100
Subject: [PATCH] gpio: report all gpios in debugfs
---
drivers/gpio/gpio-mvebu.c | 4 ++--
drivers/gpio/gpiolib.c | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
--- a/drivers/gpio/gpio-mvebu.c
+++ b/drivers/gpio/gpio-mvebu.c
@@ -855,8 +855,8 @@ static void mvebu_gpio_dbg_show(struct s
bool is_out;
label = gpiochip_is_requested(chip, i);
- if (!label)
- continue;
+// if (!label)
+// continue;
msk = BIT(i);
is_out = !(io_conf & msk);
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -4357,14 +4357,14 @@ static void gpiolib_dbg_show(struct seq_
int is_irq;
for (i = 0; i < gdev->ngpio; i++, gpio++, gdesc++) {
- if (!test_bit(FLAG_REQUESTED, &gdesc->flags)) {
+/* if (!test_bit(FLAG_REQUESTED, &gdesc->flags)) {
if (gdesc->name) {
seq_printf(s, " gpio-%-3d (%-20.20s)\n",
gpio, gdesc->name);
}
continue;
}
-
+*/
gpiod_get_direction(gdesc);
is_out = test_bit(FLAG_IS_OUT, &gdesc->flags);
is_irq = test_bit(FLAG_USED_AS_IRQ, &gdesc->flags);