* [PATCH 0/6] gpio: remove references to gpio_chip::base from debugfs callbacks
@ 2025-08-26 9:54 Bartosz Golaszewski
2025-08-26 9:54 ` [PATCH 1/6] gpio: stmpe: don't print out global GPIO numbers in " Bartosz Golaszewski
` (7 more replies)
0 siblings, 8 replies; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-08-26 9:54 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Maxime Coquelin,
Alexandre Torgue, Uwe Kleine-König
Cc: linux-gpio, linux-stm32, linux-arm-kernel, linux-kernel, patches,
linux-pwm, Bartosz Golaszewski
We've stopped displaying the global GPIO numbers from core GPIOLIB
debugfs callbacks. Start dropping it from drivers too.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Bartosz Golaszewski (6):
gpio: stmpe: don't print out global GPIO numbers in debugfs callbacks
gpio: nomadik: don't print out global GPIO numbers in debugfs callbacks
gpio: wm831x: don't print out global GPIO numbers in debugfs callbacks
gpio: wm8994: don't print out global GPIO numbers in debugfs callbacks
gpio: mvebu: don't print out global GPIO numbers in debugfs callbacks
gpio: xra1403: don't print out global GPIO numbers in debugfs callbacks
drivers/gpio/gpio-mvebu.c | 2 +-
drivers/gpio/gpio-nomadik.c | 25 ++++++++++++-------------
drivers/gpio/gpio-stmpe.c | 14 ++++++--------
drivers/gpio/gpio-wm831x.c | 5 ++---
drivers/gpio/gpio-wm8994.c | 6 ++----
drivers/gpio/gpio-xra1403.c | 3 +--
drivers/pinctrl/nomadik/pinctrl-nomadik.c | 2 +-
include/linux/gpio/gpio-nomadik.h | 3 +--
8 files changed, 26 insertions(+), 34 deletions(-)
---
base-commit: d0630b758e593506126e8eda6c3d56097d1847c5
change-id: 20250815-gpio-dbg-show-base-a73b8501f9a9
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/6] gpio: stmpe: don't print out global GPIO numbers in debugfs callbacks
2025-08-26 9:54 [PATCH 0/6] gpio: remove references to gpio_chip::base from debugfs callbacks Bartosz Golaszewski
@ 2025-08-26 9:54 ` Bartosz Golaszewski
2025-08-26 9:54 ` [PATCH 2/6] gpio: nomadik: " Bartosz Golaszewski
` (6 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-08-26 9:54 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Maxime Coquelin,
Alexandre Torgue, Uwe Kleine-König
Cc: linux-gpio, linux-stm32, linux-arm-kernel, linux-kernel, patches,
linux-pwm, Bartosz Golaszewski
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
In order to further limit the number of references to the GPIO base
number stored in struct gpio_chip, replace the global GPIO numbers in
the output of debugfs callbacks by hardware offsets.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
drivers/gpio/gpio-stmpe.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/drivers/gpio/gpio-stmpe.c b/drivers/gpio/gpio-stmpe.c
index 7bf270af07fe49e7a778e91134b5bc5e7d0a13a5..6faf30347a36396fe9ab14ab4efb7331f78e95e3 100644
--- a/drivers/gpio/gpio-stmpe.c
+++ b/drivers/gpio/gpio-stmpe.c
@@ -262,9 +262,8 @@ static void stmpe_gpio_irq_unmask(struct irq_data *d)
stmpe_gpio->regs[REG_IE][regoffset] |= mask;
}
-static void stmpe_dbg_show_one(struct seq_file *s,
- struct gpio_chip *gc,
- unsigned offset, unsigned gpio)
+static void stmpe_dbg_show_one(struct seq_file *s, struct gpio_chip *gc,
+ unsigned int offset)
{
struct stmpe_gpio *stmpe_gpio = gpiochip_get_data(gc);
struct stmpe *stmpe = stmpe_gpio->stmpe;
@@ -286,7 +285,7 @@ static void stmpe_dbg_show_one(struct seq_file *s,
if (dir) {
seq_printf(s, " gpio-%-3d (%-20.20s) out %s",
- gpio, label ?: "(none)", str_hi_lo(val));
+ offset, label ?: "(none)", str_hi_lo(val));
} else {
u8 edge_det_reg;
u8 rise_reg;
@@ -354,7 +353,7 @@ static void stmpe_dbg_show_one(struct seq_file *s,
irqen = !!(ret & mask);
seq_printf(s, " gpio-%-3d (%-20.20s) in %s %13s %13s %25s %25s",
- gpio, label ?: "(none)",
+ offset, label ?: "(none)",
str_hi_lo(val),
edge_det_values[edge_det],
irqen ? "IRQ-enabled" : "IRQ-disabled",
@@ -366,10 +365,9 @@ static void stmpe_dbg_show_one(struct seq_file *s,
static void stmpe_dbg_show(struct seq_file *s, struct gpio_chip *gc)
{
unsigned i;
- unsigned gpio = gc->base;
- for (i = 0; i < gc->ngpio; i++, gpio++) {
- stmpe_dbg_show_one(s, gc, i, gpio);
+ for (i = 0; i < gc->ngpio; i++) {
+ stmpe_dbg_show_one(s, gc, i);
seq_putc(s, '\n');
}
}
--
2.48.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/6] gpio: nomadik: don't print out global GPIO numbers in debugfs callbacks
2025-08-26 9:54 [PATCH 0/6] gpio: remove references to gpio_chip::base from debugfs callbacks Bartosz Golaszewski
2025-08-26 9:54 ` [PATCH 1/6] gpio: stmpe: don't print out global GPIO numbers in " Bartosz Golaszewski
@ 2025-08-26 9:54 ` Bartosz Golaszewski
2025-08-26 9:54 ` [PATCH 3/6] gpio: wm831x: " Bartosz Golaszewski
` (5 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-08-26 9:54 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Maxime Coquelin,
Alexandre Torgue, Uwe Kleine-König
Cc: linux-gpio, linux-stm32, linux-arm-kernel, linux-kernel, patches,
linux-pwm, Bartosz Golaszewski
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
In order to further limit the number of references to the GPIO base
number stored in struct gpio_chip, replace the global GPIO numbers in
the output of debugfs callbacks by hardware offsets.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
drivers/gpio/gpio-nomadik.c | 25 ++++++++++++-------------
drivers/pinctrl/nomadik/pinctrl-nomadik.c | 2 +-
include/linux/gpio/gpio-nomadik.h | 3 +--
3 files changed, 14 insertions(+), 16 deletions(-)
diff --git a/drivers/gpio/gpio-nomadik.c b/drivers/gpio/gpio-nomadik.c
index bcf4b07dd4584f884992ae35caa8aa1aaacb619e..fde4b416faa81816ee554f85e5665f16d5defa06 100644
--- a/drivers/gpio/gpio-nomadik.c
+++ b/drivers/gpio/gpio-nomadik.c
@@ -20,6 +20,7 @@
*/
#include <linux/cleanup.h>
#include <linux/clk.h>
+#include <linux/gpio/consumer.h>
#include <linux/gpio/driver.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
@@ -396,10 +397,10 @@ static int nmk_gpio_get_mode(struct nmk_gpio_chip *nmk_chip, int offset)
}
void nmk_gpio_dbg_show_one(struct seq_file *s, struct pinctrl_dev *pctldev,
- struct gpio_chip *chip, unsigned int offset,
- unsigned int gpio)
+ struct gpio_chip *chip, unsigned int offset)
{
struct nmk_gpio_chip *nmk_chip = gpiochip_get_data(chip);
+ struct gpio_desc *desc;
int mode;
bool is_out;
bool data_out;
@@ -425,15 +426,15 @@ void nmk_gpio_dbg_show_one(struct seq_file *s, struct pinctrl_dev *pctldev,
data_out = !!(readl(nmk_chip->addr + NMK_GPIO_DAT) & BIT(offset));
mode = nmk_gpio_get_mode(nmk_chip, offset);
#ifdef CONFIG_PINCTRL_NOMADIK
- if (mode == NMK_GPIO_ALT_C && pctldev)
- mode = nmk_prcm_gpiocr_get_mode(pctldev, gpio);
+ if (mode == NMK_GPIO_ALT_C && pctldev) {
+ desc = gpio_device_get_desc(chip->gpiodev, offset);
+ mode = nmk_prcm_gpiocr_get_mode(pctldev, desc_to_gpio(desc));
+ }
#endif
if (is_out) {
seq_printf(s, " gpio-%-3d (%-20.20s) out %s %s",
- gpio,
- label ?: "(none)",
- str_hi_lo(data_out),
+ offset, label ?: "(none)", str_hi_lo(data_out),
(mode < 0) ? "unknown" : modes[mode]);
} else {
int irq = chip->to_irq(chip, offset);
@@ -445,9 +446,7 @@ void nmk_gpio_dbg_show_one(struct seq_file *s, struct pinctrl_dev *pctldev,
};
seq_printf(s, " gpio-%-3d (%-20.20s) in %s %s",
- gpio,
- label ?: "(none)",
- pulls[pullidx],
+ offset, label ?: "(none)", pulls[pullidx],
(mode < 0) ? "unknown" : modes[mode]);
val = nmk_gpio_get_input(chip, offset);
@@ -479,10 +478,10 @@ void nmk_gpio_dbg_show_one(struct seq_file *s, struct pinctrl_dev *pctldev,
static void nmk_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
{
- unsigned int i, gpio = chip->base;
+ unsigned int i;
- for (i = 0; i < chip->ngpio; i++, gpio++) {
- nmk_gpio_dbg_show_one(s, NULL, chip, i, gpio);
+ for (i = 0; i < chip->ngpio; i++) {
+ nmk_gpio_dbg_show_one(s, NULL, chip, i);
seq_puts(s, "\n");
}
}
diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c
index 8940e04fcf4cc4898cda5a5734574bfed6a175c6..db0311b14132276b9020bf3331fd9bb7a4f73a59 100644
--- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c
+++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c
@@ -584,7 +584,7 @@ static void nmk_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s,
seq_printf(s, "invalid pin offset");
return;
}
- nmk_gpio_dbg_show_one(s, pctldev, chip, offset - chip->base, offset);
+ nmk_gpio_dbg_show_one(s, pctldev, chip, offset - chip->base);
}
static int nmk_dt_add_map_mux(struct pinctrl_map **map, unsigned int *reserved_maps,
diff --git a/include/linux/gpio/gpio-nomadik.h b/include/linux/gpio/gpio-nomadik.h
index b5a84864650d0c228de6e7350a28449537a829d9..7ba53b499e164edf410475cf62d60f399aaaa0c7 100644
--- a/include/linux/gpio/gpio-nomadik.h
+++ b/include/linux/gpio/gpio-nomadik.h
@@ -261,8 +261,7 @@ struct platform_device;
* true.
*/
void nmk_gpio_dbg_show_one(struct seq_file *s, struct pinctrl_dev *pctldev,
- struct gpio_chip *chip, unsigned int offset,
- unsigned int gpio);
+ struct gpio_chip *chip, unsigned int offset);
#else
--
2.48.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/6] gpio: wm831x: don't print out global GPIO numbers in debugfs callbacks
2025-08-26 9:54 [PATCH 0/6] gpio: remove references to gpio_chip::base from debugfs callbacks Bartosz Golaszewski
2025-08-26 9:54 ` [PATCH 1/6] gpio: stmpe: don't print out global GPIO numbers in " Bartosz Golaszewski
2025-08-26 9:54 ` [PATCH 2/6] gpio: nomadik: " Bartosz Golaszewski
@ 2025-08-26 9:54 ` Bartosz Golaszewski
2025-08-26 10:11 ` Charles Keepax
2025-08-26 9:54 ` [PATCH 4/6] gpio: wm8994: " Bartosz Golaszewski
` (4 subsequent siblings)
7 siblings, 1 reply; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-08-26 9:54 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Maxime Coquelin,
Alexandre Torgue, Uwe Kleine-König
Cc: linux-gpio, linux-stm32, linux-arm-kernel, linux-kernel, patches,
linux-pwm, Bartosz Golaszewski
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
In order to further limit the number of references to the GPIO base
number stored in struct gpio_chip, replace the global GPIO numbers in
the output of debugfs callbacks by hardware offsets.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
drivers/gpio/gpio-wm831x.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/gpio/gpio-wm831x.c b/drivers/gpio/gpio-wm831x.c
index f03c0e808fab27349c39f9efc41e5ea420b2d03b..489479d6f32b3a8bcd7592e46ad61ec70794a2ab 100644
--- a/drivers/gpio/gpio-wm831x.c
+++ b/drivers/gpio/gpio-wm831x.c
@@ -159,7 +159,6 @@ static void wm831x_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
int i, tristated;
for (i = 0; i < chip->ngpio; i++) {
- int gpio = i + chip->base;
int reg;
const char *pull, *powerdomain;
@@ -175,13 +174,13 @@ static void wm831x_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
}
seq_printf(s, " gpio-%-3d (%-20.20s) ",
- gpio, label ?: "Unrequested");
+ i, label ?: "Unrequested");
reg = wm831x_reg_read(wm831x, WM831X_GPIO1_CONTROL + i);
if (reg < 0) {
dev_err(wm831x->dev,
"GPIO control %d read failed: %d\n",
- gpio, reg);
+ i, reg);
seq_putc(s, '\n');
continue;
}
--
2.48.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/6] gpio: wm8994: don't print out global GPIO numbers in debugfs callbacks
2025-08-26 9:54 [PATCH 0/6] gpio: remove references to gpio_chip::base from debugfs callbacks Bartosz Golaszewski
` (2 preceding siblings ...)
2025-08-26 9:54 ` [PATCH 3/6] gpio: wm831x: " Bartosz Golaszewski
@ 2025-08-26 9:54 ` Bartosz Golaszewski
2025-08-26 10:12 ` Charles Keepax
2025-08-26 9:54 ` [PATCH 5/6] gpio: mvebu: " Bartosz Golaszewski
` (3 subsequent siblings)
7 siblings, 1 reply; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-08-26 9:54 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Maxime Coquelin,
Alexandre Torgue, Uwe Kleine-König
Cc: linux-gpio, linux-stm32, linux-arm-kernel, linux-kernel, patches,
linux-pwm, Bartosz Golaszewski
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
In order to further limit the number of references to the GPIO base
number stored in struct gpio_chip, replace the global GPIO numbers in
the output of debugfs callbacks by hardware offsets.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
drivers/gpio/gpio-wm8994.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpio/gpio-wm8994.c b/drivers/gpio/gpio-wm8994.c
index df47a27f508d94d53056bbe666a67e887637f516..a0665cf3ff2f45640cef740deca7712606791f47 100644
--- a/drivers/gpio/gpio-wm8994.c
+++ b/drivers/gpio/gpio-wm8994.c
@@ -194,7 +194,6 @@ static void wm8994_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
int i;
for (i = 0; i < chip->ngpio; i++) {
- int gpio = i + chip->base;
int reg;
/* We report the GPIO even if it's not requested since
@@ -208,14 +207,13 @@ static void wm8994_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
continue;
}
- seq_printf(s, " gpio-%-3d (%-20.20s) ", gpio,
+ seq_printf(s, " gpio-%-3d (%-20.20s) ", i,
label ?: "Unrequested");
reg = wm8994_reg_read(wm8994, WM8994_GPIO_1 + i);
if (reg < 0) {
dev_err(wm8994->dev,
- "GPIO control %d read failed: %d\n",
- gpio, reg);
+ "GPIO control %d read failed: %d\n", i, reg);
seq_printf(s, "\n");
continue;
}
--
2.48.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 5/6] gpio: mvebu: don't print out global GPIO numbers in debugfs callbacks
2025-08-26 9:54 [PATCH 0/6] gpio: remove references to gpio_chip::base from debugfs callbacks Bartosz Golaszewski
` (3 preceding siblings ...)
2025-08-26 9:54 ` [PATCH 4/6] gpio: wm8994: " Bartosz Golaszewski
@ 2025-08-26 9:54 ` Bartosz Golaszewski
2025-08-26 9:54 ` [PATCH 6/6] gpio: xra1403: " Bartosz Golaszewski
` (2 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-08-26 9:54 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Maxime Coquelin,
Alexandre Torgue, Uwe Kleine-König
Cc: linux-gpio, linux-stm32, linux-arm-kernel, linux-kernel, patches,
linux-pwm, Bartosz Golaszewski
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
In order to further limit the number of references to the GPIO base
number stored in struct gpio_chip, replace the global GPIO numbers in
the output of debugfs callbacks by hardware offsets.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
drivers/gpio/gpio-mvebu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c
index 261ffd0c614b7189287c361f392f3df6d1b0bc57..ac799fced950e306a967d1965a13f8e1802e77b4 100644
--- a/drivers/gpio/gpio-mvebu.c
+++ b/drivers/gpio/gpio-mvebu.c
@@ -898,7 +898,7 @@ static void mvebu_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
msk = BIT(i);
is_out = !(io_conf & msk);
- seq_printf(s, " gpio-%-3d (%-20.20s)", chip->base + i, label);
+ seq_printf(s, " gpio-%-3d (%-20.20s)", i, label);
if (is_out) {
seq_printf(s, " out %s %s\n",
--
2.48.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 6/6] gpio: xra1403: don't print out global GPIO numbers in debugfs callbacks
2025-08-26 9:54 [PATCH 0/6] gpio: remove references to gpio_chip::base from debugfs callbacks Bartosz Golaszewski
` (4 preceding siblings ...)
2025-08-26 9:54 ` [PATCH 5/6] gpio: mvebu: " Bartosz Golaszewski
@ 2025-08-26 9:54 ` Bartosz Golaszewski
2025-08-28 20:39 ` [PATCH 0/6] gpio: remove references to gpio_chip::base from " Linus Walleij
2025-09-03 7:38 ` Bartosz Golaszewski
7 siblings, 0 replies; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-08-26 9:54 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Maxime Coquelin,
Alexandre Torgue, Uwe Kleine-König
Cc: linux-gpio, linux-stm32, linux-arm-kernel, linux-kernel, patches,
linux-pwm, Bartosz Golaszewski
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
In order to further limit the number of references to the GPIO base
number stored in struct gpio_chip, replace the global GPIO numbers in
the output of debugfs callbacks by hardware offsets.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
drivers/gpio/gpio-xra1403.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpio/gpio-xra1403.c b/drivers/gpio/gpio-xra1403.c
index faadcb4b0b2df0744711b4a8d211adf71ce49a38..7f3c98f9f902013cb4f1c9109dab331609b28997 100644
--- a/drivers/gpio/gpio-xra1403.c
+++ b/drivers/gpio/gpio-xra1403.c
@@ -135,8 +135,7 @@ static void xra1403_dbg_show(struct seq_file *s, struct gpio_chip *chip)
gcr = value[XRA_GCR + 1] << 8 | value[XRA_GCR];
gsr = value[XRA_GSR + 1] << 8 | value[XRA_GSR];
for_each_requested_gpio(chip, i, label) {
- seq_printf(s, " gpio-%-3d (%-12s) %s %s\n",
- chip->base + i, label,
+ seq_printf(s, " gpio-%-3d (%-12s) %s %s\n", i, label,
(gcr & BIT(i)) ? "in" : "out",
str_hi_lo(gsr & BIT(i)));
}
--
2.48.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 3/6] gpio: wm831x: don't print out global GPIO numbers in debugfs callbacks
2025-08-26 9:54 ` [PATCH 3/6] gpio: wm831x: " Bartosz Golaszewski
@ 2025-08-26 10:11 ` Charles Keepax
0 siblings, 0 replies; 11+ messages in thread
From: Charles Keepax @ 2025-08-26 10:11 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Linus Walleij, Maxime Coquelin, Alexandre Torgue,
Uwe Kleine-König, linux-gpio, linux-stm32, linux-arm-kernel,
linux-kernel, patches, linux-pwm, Bartosz Golaszewski
On Tue, Aug 26, 2025 at 11:54:37AM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> In order to further limit the number of references to the GPIO base
> number stored in struct gpio_chip, replace the global GPIO numbers in
> the output of debugfs callbacks by hardware offsets.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> ---
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 4/6] gpio: wm8994: don't print out global GPIO numbers in debugfs callbacks
2025-08-26 9:54 ` [PATCH 4/6] gpio: wm8994: " Bartosz Golaszewski
@ 2025-08-26 10:12 ` Charles Keepax
0 siblings, 0 replies; 11+ messages in thread
From: Charles Keepax @ 2025-08-26 10:12 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Linus Walleij, Maxime Coquelin, Alexandre Torgue,
Uwe Kleine-König, linux-gpio, linux-stm32, linux-arm-kernel,
linux-kernel, patches, linux-pwm, Bartosz Golaszewski
On Tue, Aug 26, 2025 at 11:54:38AM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> In order to further limit the number of references to the GPIO base
> number stored in struct gpio_chip, replace the global GPIO numbers in
> the output of debugfs callbacks by hardware offsets.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> ---
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/6] gpio: remove references to gpio_chip::base from debugfs callbacks
2025-08-26 9:54 [PATCH 0/6] gpio: remove references to gpio_chip::base from debugfs callbacks Bartosz Golaszewski
` (5 preceding siblings ...)
2025-08-26 9:54 ` [PATCH 6/6] gpio: xra1403: " Bartosz Golaszewski
@ 2025-08-28 20:39 ` Linus Walleij
2025-09-03 7:38 ` Bartosz Golaszewski
7 siblings, 0 replies; 11+ messages in thread
From: Linus Walleij @ 2025-08-28 20:39 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Maxime Coquelin, Alexandre Torgue, Uwe Kleine-König,
linux-gpio, linux-stm32, linux-arm-kernel, linux-kernel, patches,
linux-pwm, Bartosz Golaszewski
On Tue, Aug 26, 2025 at 11:54 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> We've stopped displaying the global GPIO numbers from core GPIOLIB
> debugfs callbacks. Start dropping it from drivers too.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
The series looks good!
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/6] gpio: remove references to gpio_chip::base from debugfs callbacks
2025-08-26 9:54 [PATCH 0/6] gpio: remove references to gpio_chip::base from debugfs callbacks Bartosz Golaszewski
` (6 preceding siblings ...)
2025-08-28 20:39 ` [PATCH 0/6] gpio: remove references to gpio_chip::base from " Linus Walleij
@ 2025-09-03 7:38 ` Bartosz Golaszewski
7 siblings, 0 replies; 11+ messages in thread
From: Bartosz Golaszewski @ 2025-09-03 7:38 UTC (permalink / raw)
To: Linus Walleij, Maxime Coquelin, Alexandre Torgue,
Uwe Kleine-König, Bartosz Golaszewski
Cc: Bartosz Golaszewski, linux-gpio, linux-stm32, linux-arm-kernel,
linux-kernel, patches, linux-pwm
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
On Tue, 26 Aug 2025 11:54:34 +0200, Bartosz Golaszewski wrote:
> We've stopped displaying the global GPIO numbers from core GPIOLIB
> debugfs callbacks. Start dropping it from drivers too.
>
>
Applied, thanks!
[1/6] gpio: stmpe: don't print out global GPIO numbers in debugfs callbacks
https://git.kernel.org/brgl/linux/c/246b889c704e3209050eb0aa5a3733564aee1b38
[2/6] gpio: nomadik: don't print out global GPIO numbers in debugfs callbacks
https://git.kernel.org/brgl/linux/c/ddeb66d2cb10f03a43d97a0ff2c3869d1951c87d
[3/6] gpio: wm831x: don't print out global GPIO numbers in debugfs callbacks
https://git.kernel.org/brgl/linux/c/3767426b234f0d7b82ccfa05e53c47c83e0a12c2
[4/6] gpio: wm8994: don't print out global GPIO numbers in debugfs callbacks
https://git.kernel.org/brgl/linux/c/aaa1279b8b5b46cc42b6175c2bcd83d8ac5fd2b3
[5/6] gpio: mvebu: don't print out global GPIO numbers in debugfs callbacks
https://git.kernel.org/brgl/linux/c/2d71156cfea8391625ea146eff32b3d2ef059345
[6/6] gpio: xra1403: don't print out global GPIO numbers in debugfs callbacks
https://git.kernel.org/brgl/linux/c/3be2d43534aab7291b59c4e66526f911854aa3a7
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2025-09-03 7:38 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26 9:54 [PATCH 0/6] gpio: remove references to gpio_chip::base from debugfs callbacks Bartosz Golaszewski
2025-08-26 9:54 ` [PATCH 1/6] gpio: stmpe: don't print out global GPIO numbers in " Bartosz Golaszewski
2025-08-26 9:54 ` [PATCH 2/6] gpio: nomadik: " Bartosz Golaszewski
2025-08-26 9:54 ` [PATCH 3/6] gpio: wm831x: " Bartosz Golaszewski
2025-08-26 10:11 ` Charles Keepax
2025-08-26 9:54 ` [PATCH 4/6] gpio: wm8994: " Bartosz Golaszewski
2025-08-26 10:12 ` Charles Keepax
2025-08-26 9:54 ` [PATCH 5/6] gpio: mvebu: " Bartosz Golaszewski
2025-08-26 9:54 ` [PATCH 6/6] gpio: xra1403: " Bartosz Golaszewski
2025-08-28 20:39 ` [PATCH 0/6] gpio: remove references to gpio_chip::base from " Linus Walleij
2025-09-03 7:38 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).