Skip to contentSkip to conversation

can: remove obsolete PCH CAN driver

RFC In review Oliver Hartkopp 3 participants 8 messages Sep 24, 2022 – Oct 5, 2022 CAN network drivers

lore
Share & tools
lore
#0 lore raw

RFC 1/1 can: remove obsolete PCH CAN driver

The PCH CAN driver is a driver for a Bosch C_CAN controller IP core which is attached to the system via PCI. This code has been introduced in 2011 by Oki Semiconductors developers to support the Intel Atom E6xx series I/O Hub (aka EG20T IOH PCH CAN). Since 2012 the driver only has been maintained by the kernel community.

As there is a well maintained and continously tested C_CAN/D_CAN driver which also supports the PCI configuration from the PCH CAN EG20T setup this driver became obsolete.

Cc Jacob Kroon <[email protected]>
Cc Marc Kleine-Budde <[email protected]>
Cc Dario Binacchi <[email protected]>
Cc Wolfgang Grandegger <[email protected]>
---
 drivers/net/can/Kconfig       |    8 -
 drivers/net/can/Makefile      |    1 -
 drivers/net/can/c_can/Kconfig |    3 +-
 drivers/net/can/pch_can.c     | 1249 ---------------------------------
 4 files changed, 2 insertions(+), 1259 deletions(-)
 delete mode 100644 drivers/net/can/pch_can.c
drivers/net/can/Kconfig +0 -8
index 3048ad77edb3..cd34e8dc9394 100644
@@ -196,18 +196,10 @@ config CAN_XILINXCAN
 	depends on COMMON_CLK && HAS_IOMEM
 	help
 	  Xilinx CAN driver. This driver supports both soft AXI CAN IP and
 	  Zynq CANPS IP.
 
-config PCH_CAN
-	tristate "Intel EG20T PCH CAN controller"
-	depends on PCI && (X86_32 || COMPILE_TEST)
-	help
-	  This driver is for PCH CAN of Topcliff (Intel EG20T PCH) which
-	  is an IOH for x86 embedded processor (Intel Atom E6xx series).
-	  This driver can access CAN bus.
-
 source "drivers/net/can/c_can/Kconfig"
 source "drivers/net/can/cc770/Kconfig"
 source "drivers/net/can/ctucanfd/Kconfig"
 source "drivers/net/can/ifi_canfd/Kconfig"
 source "drivers/net/can/m_can/Kconfig"
drivers/net/can/Makefile +0 -1
index 61c75ce9d500..52b0f6e10668 100644
@@ -28,8 +28,7 @@ obj-$(CONFIG_CAN_M_CAN)		+= m_can/
 obj-$(CONFIG_CAN_PEAK_PCIEFD)	+= peak_canfd/
 obj-$(CONFIG_CAN_SJA1000)	+= sja1000/
 obj-$(CONFIG_CAN_SUN4I)		+= sun4i_can.o
 obj-$(CONFIG_CAN_TI_HECC)	+= ti_hecc.o
 obj-$(CONFIG_CAN_XILINXCAN)	+= xilinx_can.o
-obj-$(CONFIG_PCH_CAN)		+= pch_can.o
 
 subdir-ccflags-$(CONFIG_CAN_DEBUG_DEVICES) += -DDEBUG
drivers/net/can/c_can/Kconfig +2 -1
index 962725788b0a..1f0e9acb69ec 100644
@@ -18,7 +18,8 @@ config CAN_C_CAN_PLATFORM
 config CAN_C_CAN_PCI
 	tristate "Generic PCI Bus based C_CAN/D_CAN driver"
 	depends on PCI
 	help
 	  This driver adds support for the C_CAN/D_CAN chips connected
-	  to the PCI bus.
+	  to the PCI bus. E.g. for the C_CAN controller IP inside the
+	  Intel Atom E6xx series IOH (aka EG20T 'PCH CAN').
 endif
drivers/net/can/pch_can.c deleted +0 -1249

1,249 lines not on this page · raw message

Signature · 1 line
2.30.2
#1 lore raw
Quoted 15 lines · Oliver Hartkopp

The PCH CAN driver is a driver for a Bosch C_CAN controller IP core which is attached to the system via PCI. This code has been introduced in 2011 by Oki Semiconductors developers to support the Intel Atom E6xx series I/O Hub (aka EG20T IOH PCH CAN). Since 2012 the driver only has been maintained by the kernel community.

As there is a well maintained and continously tested C_CAN/D_CAN driver which also supports the PCI configuration from the PCH CAN EG20T setup this driver became obsolete.

Cc Jacob Kroon <[email protected]>
Cc Marc Kleine-Budde <[email protected]>
Cc Dario Binacchi <[email protected]>
Cc Wolfgang Grandegger <[email protected]>
Quoted 8 lines
---
  drivers/net/can/Kconfig       |    8 -
  drivers/net/can/Makefile      |    1 -
  drivers/net/can/c_can/Kconfig |    3 +-
  drivers/net/can/pch_can.c     | 1249 ---------------------------------
  4 files changed, 2 insertions(+), 1259 deletions(-)

delete mode 100644 drivers/net/can/pch_can.c

Given that the current PCH driver will lockup on my system I'm all for removing it.

Jacob

#2 lore raw
Quoted 25 lines · Jacob Kroon
Quoted 15 lines · Oliver Hartkopp

The PCH CAN driver is a driver for a Bosch C_CAN controller IP core which is attached to the system via PCI. This code has been introduced in 2011 by Oki Semiconductors developers to support the Intel Atom E6xx series I/O Hub (aka EG20T IOH PCH CAN). Since 2012 the driver only has been maintained by the kernel community.

As there is a well maintained and continously tested C_CAN/D_CAN driver which also supports the PCI configuration from the PCH CAN EG20T setup this driver became obsolete.

Cc Jacob Kroon <[email protected]>
Cc Marc Kleine-Budde <[email protected]>
Cc Dario Binacchi <[email protected]>
Cc Wolfgang Grandegger <[email protected]>
Quoted 8 lines

---
  drivers/net/can/Kconfig       |    8 - drivers/net/can/Makefile      |    1 - drivers/net/can/c_can/Kconfig |    3 +- drivers/net/can/pch_can.c     | 1249 ---------------------------------

  4 files changed, 2 insertions(+), 1259 deletions(-)

  delete mode 100644 drivers/net/can/pch_can.c

Quoted 1 line

Given that the current PCH driver will lockup on my system I'm all for removing it.

:-D

Yes, I'm very grateful that you support the discussion and that you are able to test the 'good' C_CAN/D_CAN driver on the EG20T until it works properly.

Your testing is the missing piece to remove the PCH CAN driver.

Many thanks!

Oliver

#3 lore raw
In reply to Jacob Kroon
Quoted 25 lines · Jacob Kroon
Quoted 15 lines · Oliver Hartkopp

The PCH CAN driver is a driver for a Bosch C_CAN controller IP core which is attached to the system via PCI. This code has been introduced in 2011 by Oki Semiconductors developers to support the Intel Atom E6xx series I/O Hub (aka EG20T IOH PCH CAN). Since 2012 the driver only has been maintained by the kernel community.

As there is a well maintained and continously tested C_CAN/D_CAN driver which also supports the PCI configuration from the PCH CAN EG20T setup this driver became obsolete.

Cc Jacob Kroon <[email protected]>
Cc Marc Kleine-Budde <[email protected]>
Cc Dario Binacchi <[email protected]>
Cc Wolfgang Grandegger <[email protected]>
Quoted 8 lines
---
  drivers/net/can/Kconfig       |    8 -
  drivers/net/can/Makefile      |    1 -
  drivers/net/can/c_can/Kconfig |    3 +-
  drivers/net/can/pch_can.c     | 1249 ---------------------------------
  4 files changed, 2 insertions(+), 1259 deletions(-)

delete mode 100644 drivers/net/can/pch_can.c

Quoted 2 lines

Given that the current PCH driver will lockup on my system I'm all for removing it.

Should I add your Acked-by?

Marc

Signature · 4 lines
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |
#4 lore raw
Quoted 26 lines · Marc Kleine-Budde
Quoted 25 lines · Jacob Kroon
Quoted 23 lines · Oliver Hartkopp

The PCH CAN driver is a driver for a Bosch C_CAN controller IP core which is attached to the system via PCI. This code has been introduced in 2011 by Oki Semiconductors developers to support the Intel Atom E6xx series I/O Hub (aka EG20T IOH PCH CAN). Since 2012 the driver only has been maintained by the kernel community.

As there is a well maintained and continously tested C_CAN/D_CAN driver which also supports the PCI configuration from the PCH CAN EG20T setup this driver became obsolete.

Cc Jacob Kroon <[email protected]>
Cc Marc Kleine-Budde <[email protected]>
Cc Dario Binacchi <[email protected]>
Cc Wolfgang Grandegger <[email protected]>
---
   drivers/net/can/Kconfig       |    8 -
   drivers/net/can/Makefile      |    1 -
   drivers/net/can/c_can/Kconfig |    3 +-
   drivers/net/can/pch_can.c     | 1249 ---------------------------------
   4 files changed, 2 insertions(+), 1259 deletions(-)

delete mode 100644 drivers/net/can/pch_can.c

Quoted 5 lines
Quoted 2 lines

Given that the current PCH driver will lockup on my system I'm all for removing it.

Should I add your Acked-by?

Although I doubt my name carries any weight in this context, yes feel free to do so.

Jacob

#5 lore raw

Hi Marc,

now that net-next is closed for the merge window would you consider this removal for the next can-next phase or is this something that can be still applied after the merge window to 6.1-rc1?

Best regards,
Oliver

Quoted 37 lines · Jacob Kroon
Quoted 27 lines · Marc Kleine-Budde
Quoted 26 lines · Jacob Kroon
Quoted 24 lines · Oliver Hartkopp

The PCH CAN driver is a driver for a Bosch C_CAN controller IP core which is attached to the system via PCI. This code has been introduced in 2011 by Oki Semiconductors developers to support the Intel Atom E6xx series I/O Hub (aka EG20T IOH PCH CAN). Since 2012 the driver only has been maintained by the kernel community.

As there is a well maintained and continously tested C_CAN/D_CAN driver which also supports the PCI configuration from the PCH CAN EG20T setup this driver became obsolete.

Cc Jacob Kroon <[email protected]>
Cc Marc Kleine-Budde <[email protected]>
Cc Dario Binacchi <[email protected]>
Cc Wolfgang Grandegger <[email protected]>

---
   drivers/net/can/Kconfig       |    8 -
   drivers/net/can/Makefile      |    1 -
   drivers/net/can/c_can/Kconfig |    3 +-
   drivers/net/can/pch_can.c     | 1249
---------------------------------

   4 files changed, 2 insertions(+), 1259 deletions(-)

   delete mode 100644 drivers/net/can/pch_can.c

Quoted 5 lines
Quoted 2 lines

Given that the current PCH driver will lockup on my system I'm all for removing it.

Should I add your Acked-by?

Although I doubt my name carries any weight in this context, yes feel free to do so.

Jacob

#6 lore raw
Quoted 5 lines · Oliver Hartkopp

Hi Marc,

now that net-next is closed for the merge window would you consider this removal for the next can-next phase or is this something that can be still applied after the merge window to 6.1-rc1?

This will go into net-next once it's open again. Why do you ask?

regards,
Marc

Signature · 4 lines
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |
#7 lore raw
Quoted 8 lines · Marc Kleine-Budde
Quoted 5 lines · Oliver Hartkopp

Hi Marc,

now that net-next is closed for the merge window would you consider this removal for the next can-next phase or is this something that can be still applied after the merge window to 6.1-rc1?

This will go into net-next once it's open again. Why do you ask?

I just wasn't sure if such simple removals could also be applied in early -rc stages. IIRC I've seen such things on the netdev list one or two times before.

But there is no pressure on this topic so the coming net-next phase would be definitely fine.

Thanks,
Oliver