Skip to contentSkip to conversation

gpio: remove the gpio-tn48m driver

PATCH Applied Randy Dunlap 5 participants 9 messages Jan 12 – Jan 13

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: remove the gpio-tn48m driver

The gpio-tn48m driver is useless without the simple-mfd parent, which is not present in the kernel tree, so delete it and all references to it. Also delete references to the (missing) mfd driver.

Fixes b3dcb5de6209 ("gpio: Add Delta TN48M CPLD GPIO driver")

---
Based on v6.19-rc4.

Cc Robert Marko <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Bartosz Golaszewski <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Rob Herring <[email protected]>
Cc Krzysztof Kozlowski <[email protected]>
Cc Conor Dooley <[email protected]>
 .../devicetree/bindings/gpio/delta,tn48m-gpio.yaml |  39 --------
 .../devicetree/bindings/mfd/delta,tn48m-cpld.yaml  |  90 -------------------
 MAINTAINERS                                        |   9 --
 drivers/gpio/Kconfig                               |  12 ---
 drivers/gpio/Makefile                              |   1 -
 drivers/gpio/gpio-tn48m.c                          | 100 ---------------------
 6 files changed, 251 deletions(-)
Documentation/devicetree/bindings/gpio/delta,tn48m-gpio.yaml deleted +0 -39
deleted file mode 100644
index e3e668a12091..000000000000
@@ -1,39 +0,0 @@
-# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
-%YAML 1.2
----
-$id: http://devicetree.org/schemas/gpio/delta,tn48m-gpio.yaml#
-$schema: http://devicetree.org/meta-schemas/core.yaml#
-
-title: Delta Networks TN48M CPLD GPIO controller
-
-maintainers:
-  - Robert Marko <[email protected]>
-
-description: |
-  This module is part of the Delta TN48M multi-function device. For more
-  details see ../mfd/delta,tn48m-cpld.yaml.
-
-  Delta TN48M has an onboard Lattice CPLD that is used as an GPIO expander.
-  It provides 12 pins in total, they are input-only or ouput-only type.
-
-properties:
-  compatible:
-    enum:
-      - delta,tn48m-gpo
-      - delta,tn48m-gpi
-
-  reg:
-    maxItems: 1
-
-  "#gpio-cells":
-    const: 2
-
-  gpio-controller: true
-
-required:
-  - compatible
-  - reg
-  - "#gpio-cells"
-  - gpio-controller
-
-additionalProperties: false
Documentation/devicetree/bindings/mfd/delta,tn48m-cpld.yaml deleted +0 -90

90 lines not on this page · raw message

MAINTAINERS +0 -9
index 765ad2daa218..7d3c0d2375c8 100644
@@ -7107,15 +7107,6 @@ S:	Maintained
 F:	Documentation/hwmon/dps920ab.rst
 F:	drivers/hwmon/pmbus/dps920ab.c
 
-DELTA NETWORKS TN48M CPLD DRIVERS
-M:	Robert Marko <[email protected]>
-S:	Maintained
-F:	Documentation/devicetree/bindings/gpio/delta,tn48m-gpio.yaml
-F:	Documentation/devicetree/bindings/mfd/delta,tn48m-cpld.yaml
-F:	Documentation/devicetree/bindings/reset/delta,tn48m-reset.yaml
-F:	drivers/gpio/gpio-tn48m.c
-F:	include/dt-bindings/reset/delta,tn48m-reset.h
-
 DELTA ST MEDIA DRIVER
 M:	Hugues Fruchet <[email protected]>
 L:	[email protected]
drivers/gpio/Kconfig +0 -12
index bd185482a7fd..d1d3f98b87f6 100644
@@ -1619,18 +1619,6 @@ config GPIO_TIMBERDALE
 	help
 	Add support for the GPIO IP in the timberdale FPGA.
 
-config GPIO_TN48M_CPLD
-	tristate "Delta Networks TN48M switch CPLD GPIO driver"
-	depends on MFD_TN48M_CPLD || COMPILE_TEST
-	select GPIO_REGMAP
-	help
-	  This enables support for the GPIOs found on the Delta
-	  Networks TN48M switch Lattice CPLD. It provides 12 pins in total,
-	  they are input-only or output-only type.
-
-	  This driver can also be built as a module. If so, the
-	  module will be called gpio-tn48m.
-
 config GPIO_TPS65086
 	tristate "TI TPS65086 GPO"
 	depends on MFD_TPS65086
drivers/gpio/Makefile +0 -1
index 2421a8fd3733..c3ee30133c24 100644
@@ -181,7 +181,6 @@ obj-$(CONFIG_GPIO_TEGRA186)		+= gpio-tegra186.o
 obj-$(CONFIG_GPIO_TEGRA)		+= gpio-tegra.o
 obj-$(CONFIG_GPIO_THUNDERX)		+= gpio-thunderx.o
 obj-$(CONFIG_GPIO_TIMBERDALE)		+= gpio-timberdale.o
-obj-$(CONFIG_GPIO_TN48M_CPLD)		+= gpio-tn48m.o
 obj-$(CONFIG_GPIO_TPIC2810)		+= gpio-tpic2810.o
 obj-$(CONFIG_GPIO_TPS65086)		+= gpio-tps65086.o
 obj-$(CONFIG_GPIO_TPS65218)		+= gpio-tps65218.o
drivers/gpio/gpio-tn48m.c deleted +0 -100

100 lines not on this page · raw message

#1 lore raw
Quoted 2 lines · Randy Dunlap

The gpio-tn48m driver is useless without the simple-mfd parent, which is not present in the kernel tree, so delete it and all references to it.

Same comment, simple-mfd exists in the kernel, so driver is perfectly usable based on above sentence...

Best regards,
Krzysztof

maintainer
#2 lore raw
Quoted 7 lines · Krzysztof Kozlowski
Quoted 2 lines · Randy Dunlap

The gpio-tn48m driver is useless without the simple-mfd parent, which is not present in the kernel tree, so delete it and all references to it.

Same comment, simple-mfd exists in the kernel, so driver is perfectly usable based on above sentence...

My reply from the reset driver is valid here as well [1].

[1] https://lore.kernel.org/linux-devicetree/CA+HBbNGT+7x0Bs9p5=bNVUSHt66vd38RuFdjm_GxPWX6C6XDNA@mail.gmail.com/T/#t

Quoted 3 lines

Best regards,
Krzysztof

Signature · 7 lines
Robert Marko
Staff Embedded Linux Engineer
Sartura d.d.
Lendavska ulica 16a
10000 Zagreb, Croatia
Email: [email protected]
Web: www.sartura.hr
maintainer
#3 lore raw
In reply to Randy Dunlap
Quoted 8 lines · Randy Dunlap

The gpio-tn48m driver is useless without the simple-mfd parent, which is not present in the kernel tree, so delete it and all references to it. Also delete references to the (missing) mfd driver.

Fixes b3dcb5de6209 ("gpio: Add Delta TN48M CPLD GPIO driver")

---
Based on v6.19-rc4.

Cc ing this to Roberts new mail address.

Linus Walleij

maintainer
#4 lore raw
In reply to Randy Dunlap
Quoted 6 lines · Randy Dunlap

The gpio-tn48m driver is useless without the simple-mfd parent, which is not present in the kernel tree, so delete it and all references to it. Also delete references to the (missing) mfd driver.

Fixes b3dcb5de6209 ("gpio: Add Delta TN48M CPLD GPIO driver")

Is an equally fine solution to get a rebased version of this patch:
https://lore.kernel.org/all/[email protected]/

to Lee, given that Robert indicates the driver has users?

AFAICT it was just reverted out because of process, not because of any problem wit the driver/subdrivers themselves.

Lee might have something to add though.

Yours,
Linus Walleij

maintainer
#5 lore raw
Quoted 10 lines · Linus Walleij
Quoted 6 lines · Randy Dunlap

The gpio-tn48m driver is useless without the simple-mfd parent, which is not present in the kernel tree, so delete it and all references to it. Also delete references to the (missing) mfd driver.

Fixes b3dcb5de6209 ("gpio: Add Delta TN48M CPLD GPIO driver")
Quoted 7 lines

Is an equally fine solution to get a rebased version of this patch:
https://lore.kernel.org/all/[email protected]/

to Lee, given that Robert indicates the driver has users?

AFAICT it was just reverted out because of process, not because of any problem wit the driver/subdrivers themselves.

It would be awesome to see it in the tree again, as the drivers themselves work just fine
and allow SFP-s to work on the TN48M and I have patches for TN4810M (Which is a SFP only version).

I still have both switches and there are some in the wild being actually used as L3 switches so
it would be great to have the required CPLD drivers be compileable.

Regards,
Robert

Quoted 5 lines

Lee might have something to add though.

Yours,
Linus Walleij

Signature · 7 lines
Robert Marko
Staff Embedded Linux Engineer
Sartura d.d.
Lendavska ulica 16a
10000 Zagreb, Croatia
Email: [email protected]
Web: www.sartura.hr
maintainer
#6 lore raw
Quoted 4 lines · Robert Marko

It would be awesome to see it in the tree again, as the drivers themselves work just fine
and allow SFP-s to work on the TN48M and I have patches for TN4810M (Which is a SFP only version).

I sent a rebased version of the old patch as v11 of that series so Lee can pick it up and we sort out this.

Yours,
Linus Walleij

#7 lore raw
Quoted 7 lines · Linus Walleij
Quoted 4 lines · Robert Marko

It would be awesome to see it in the tree again, as the drivers themselves work just fine
and allow SFP-s to work on the TN48M and I have patches for TN4810M (Which is a SFP only version).

Quoted 5 lines

I sent a rebased version of the old patch as v11 of that series so Lee can pick it up and we sort out this.

Yours,
Linus Walleij

Thanks. Sounds good.

Signature · 1 line
~Randy
maintainer Applied
#8 lore raw
In reply to Linus Walleij
Quoted 9 lines · Linus Walleij
Quoted 4 lines · Robert Marko

It would be awesome to see it in the tree again, as the drivers themselves work just fine
and allow SFP-s to work on the TN48M and I have patches for TN4810M (Which is a SFP only version).

I sent a rebased version of the old patch as v11 of that series so Lee can pick it up and we sort out this.

Applied.

Signature · 1 line
Lee Jones [李琼斯]