Skip to contentSkip to conversation

bus: ts-nbus: drop unneeded dependency on OF_GPIO

PATCH Applied Bartosz Golaszewski 3 participants 7 messages May 6 – Jun 8

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 bus: ts-nbus: drop unneeded dependency on OF_GPIO

OF_GPIO is selected automatically on all OF systems. Any symbols it controls also provide stubs and are private to GPIOLIB anyway so there's really no reason to select it explicitly.

---
Changes in v3:
- Send the bus patch separately so that it can be picked up for v7.2
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- Make gpio-watchdog depend on OF && GPIOLIB
- Drop picked up patches
- Link to v1: https://patch.msgid.link/[email protected]

 drivers/bus/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/Kconfig +1 -1
index 3181d8aa32a3..e4b1db809187 100644
@@ -216,7 +216,7 @@ config TI_SYSC
 config TS_NBUS
 	tristate "Technologic Systems NBUS Driver"
 	depends on SOC_IMX28
-	depends on OF_GPIO && PWM
+	depends on PWM
 	help
 	  Driver for the Technologic Systems NBUS which is used to interface
 	  with the peripherals in the FPGA of the TS-4600 SoM.
Signature · 1 line
2.47.3
Reviewed-by on v3 1/1
#1 lore raw
Quoted 3 lines · Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it controls also provide stubs and are private to GPIOLIB anyway so there's really no reason to select it explicitly.

Is the plan to hide it from the user eventually?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
Quoted 8 lines · Andy Shevchenko
Quoted 3 lines · Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it controls also provide stubs and are private to GPIOLIB anyway so there's really no reason to select it explicitly.

Is the plan to hide it from the user eventually?

Yes, that's what I'm trying to do, but I need to remove all these dependencies tree-wide first.

Bartosz

Quoted 2 lines
#3 lore raw
In reply to Bartosz Golaszewski
Quoted 33 lines · Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it controls also provide stubs and are private to GPIOLIB anyway so there's really no reason to select it explicitly.

---
Changes in v3:
- Send the bus patch separately so that it can be picked up for v7.2
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- Make gpio-watchdog depend on OF && GPIOLIB
- Drop picked up patches
- Link to v1: https://patch.msgid.link/[email protected]

 drivers/bus/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bus/Kconfig +1 -2
index 3181d8aa32a3..e4b1db809187 100644
@@ -216,7 +216,7 @@ config TI_SYSC
 config TS_NBUS
        tristate "Technologic Systems NBUS Driver"
        depends on SOC_IMX28
-       depends on OF_GPIO && PWM
+       depends on PWM
        help
          Driver for the Technologic Systems NBUS which is used to interface
          with the peripherals in the FPGA of the TS-4600 SoM.
--
Quoted 2 lines

2.47.3

Gentle ping.

Bart

#4 lore raw
Quoted 10 lines · Bartosz Golaszewski
Quoted 7 lines · Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it controls also provide stubs and are private to GPIOLIB anyway so there's really no reason to select it explicitly.

---

...

Quoted 4 lines

Gentle ping.

Bart

There are no responses. If there are no objections, I will queue this through the GPIO tree for v7.2 in the following days.

Bartosz

Reviewed-by
#5 lore raw
Quoted 7 lines · Bartosz Golaszewski
Quoted 6 lines · Bartosz Golaszewski
Quoted 4 lines · Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it controls also provide stubs and are private to GPIOLIB anyway so there's really no reason to select it explicitly.

...

Quoted 5 lines
Quoted 2 lines

Gentle ping.

There are no responses. If there are no objections, I will queue this through the GPIO tree for v7.2 in the following days.

This is right thing to do, so

whatever tree it goes through.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
author Applied
#6 lore raw
In reply to Bartosz Golaszewski
Quoted 5 lines · Bartosz Golaszewski

OF_GPIO is selected automatically on all OF systems. Any symbols it controls also provide stubs and are private to GPIOLIB anyway so there's really no reason to select it explicitly.

Applied, thanks!

[1/1] bus: ts-nbus: drop unneeded dependency on OF_GPIO

      https://git.kernel.org/brgl/c/c698cfec79eb71588b512e790fbf9e10a39c3179

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>