Skip to contentSkip to conversation

LAN966x PCIe endpoint cleanups

PATCH Superseded Geert Uytterhoeven 4 participants 10 messages Jan 17, 2025 – Jan 20, 2025

Subsystems (4)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover LAN966x PCIe endpoint cleanups

Hi all,

This patch series contains various cleanups related to the recent addition of LAN966x PCIe endpoint support. They can be applied independently.

Changes compared to v1[1]:
- Drop dependency on SOC_LAN966, as the OIC is used only in LAN966x PCI endpoint mode,
- Replace MFD_LAN966X_PCI by MCHP_LAN966X_PCI, as the latter is the symbol that ended upstream.
- New patches [1/3] and [3/3],

Thanks for your comments!

[1] "[PATCH] irqchip: LAN966X_OIC should depend on SOC_LAN966 || MFD_LAN966X_PCI"

    https://lore.kernel.org/578dafcbdf8287e73dd30e96e23814b8c029ea96.1721719060.git.geert+renesas@glider.be

Geert Uytterhoeven (3):
dt-bindings: interrupt-controller: microchip,lan966x-oic: Clarify
endpoint use
irqchip: LAN966X_OIC should depend on MFD_LAN966X_PCI
phy: PHY_LAN966X_SERDES should depend on SOC_LAN966 ||

    MCHP_LAN966X_PCI
 .../bindings/interrupt-controller/microchip,lan966x-oic.yaml | 5 ++---
 drivers/irqchip/Kconfig                                      | 1 +
 drivers/phy/microchip/Kconfig                                | 1 +
 3 files changed, 4 insertions(+), 3 deletions(-)
Signature · 12 lines
2.43.0

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds
#1 lore raw

PATCH v2 1/3 dt-bindings: interrupt-controller: microchip,lan966x-oic: Clarify endpoint use

Reword the description, to make it clear that the LAN966x Outbound Interrupt Controller is used only in PCI endpoint mode.

---
v2:
- New.

---
 .../bindings/interrupt-controller/microchip,lan966x-oic.yaml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/interrupt-controller/microchip,lan966x-oic.yaml +2 -3
index b2adc71741770940..dca16e202da992cd 100644
@@ -14,9 +14,8 @@ allOf:
 
 description: |
   The Microchip LAN966x outband interrupt controller (OIC) maps the internal
-  interrupt sources of the LAN966x device to an external interrupt.
-  When the LAN966x device is used as a PCI device, the external interrupt is
-  routed to the PCI interrupt.
+  interrupt sources of the LAN966x device to a PCI interrupt when the LAN966x
+  device is used as a PCI device.
 
 properties:
   compatible:
Signature · 1 line
2.43.0
maintainer Acked-by on v2 1/3
#3 lore raw

Re: [PATCH v2 1/3] dt-bindings: interrupt-controller: microchip,lan966x-oic: Clarify endpoint use

In reply to Geert Uytterhoeven

Hi Geert,

Quoted 11 lines · On Fri, 17 Jan 2025 14:04:36 +0100 Geert Uytterhoeven…

Reword the description, to make it clear that the LAN966x Outbound Interrupt Controller is used only in PCI endpoint mode.

---
v2:
- New.

---
 .../bindings/interrupt-controller/microchip,lan966x-oic.yaml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Best regards,
Hervé

#4 lore raw

PATCH v2 2/3 irqchip: LAN966X_OIC should depend on MFD_LAN966X_PCI

In reply to Geert Uytterhoeven

The Microchip LAN966x outband interrupt controller is only present on Microchip LAN966x SoCs, and only used in PCI endpoint mode. Hence add a dependency on MCHP_LAN966X_PCI, to prevent asking the user about this driver when configuring a kernel without Microchip LAN966x PCIe support.

Fixes 3e3a7b35332924c8 ("irqchip: Add support for LAN966x OIC")

---
v2:
- Drop dependency on SOC_LAN966, as the OIC is used only in LAN966x PCI endpoint mode,
- Replace MFD_LAN966X_PCI by MCHP_LAN966X_PCI, as the latter is the symbol that ended upstream.

---
 drivers/irqchip/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/irqchip/Kconfig +1 -0
index 22f5fbd41f65d97e..cf713b6e9cc9346f 100644
@@ -169,6 +169,7 @@ config IXP4XX_IRQ
 
 config LAN966X_OIC
 	tristate "Microchip LAN966x OIC Support"
+	depends on MCHP_LAN966X_PCI || COMPILE_TEST
 	select GENERIC_IRQ_CHIP
 	select IRQ_DOMAIN
 	help
Signature · 1 line
2.43.0
maintainer Acked-by on v2 2/3
#5 lore raw

Re: [PATCH v2 2/3] irqchip: LAN966X_OIC should depend on MFD_LAN966X_PCI

Hi Geert,

Quoted 13 lines · On Fri, 17 Jan 2025 14:04:37 +0100 Geert Uytterhoeven…

The Microchip LAN966x outband interrupt controller is only present on Microchip LAN966x SoCs, and only used in PCI endpoint mode. Hence add a dependency on MCHP_LAN966X_PCI, to prevent asking the user about this driver when configuring a kernel without Microchip LAN966x PCIe support.

Fixes 3e3a7b35332924c8 ("irqchip: Add support for LAN966x OIC")

---
v2:
- Drop dependency on SOC_LAN966, as the OIC is used only in LAN966x PCI endpoint mode,
- Replace MFD_LAN966X_PCI by MCHP_LAN966X_PCI, as the latter is the symbol that ended upstream.

Quoted 4 lines
---
 drivers/irqchip/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Thanks for this patch!

Best regards,
Hervé

Signature · 3 lines
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy
#6 lore raw

Re: [PATCH v2 2/3] irqchip: LAN966X_OIC should depend on MFD_LAN966X_PCI

In reply to Geert Uytterhoeven
Quoted 5 lines · Geert Uytterhoeven

The Microchip LAN966x outband interrupt controller is only present on Microchip LAN966x SoCs, and only used in PCI endpoint mode. Hence add a dependency on MCHP_LAN966X_PCI, to prevent asking the user about this driver when configuring a kernel without Microchip LAN966x PCIe support.

Quoted 8 lines
Fixes 3e3a7b35332924c8 ("irqchip: Add support for LAN966x OIC")

---
v2:
- Drop dependency on SOC_LAN966, as the OIC is used only in LAN966x PCI endpoint mode,
- Replace MFD_LAN966X_PCI by MCHP_LAN966X_PCI, as the latter is the symbol that ended upstream.

Bummer, I messed up the subject here as well...

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
#7 lore raw

PATCH v2 3/3 phy: PHY_LAN966X_SERDES should depend on SOC_LAN966 || MCHP_LAN966X_PCI

In reply to Geert Uytterhoeven

The Microchip LAN966X SerDes PHY is only present on Microchip LAN966x SoCs. However, when used as a PCI endpoint, all peripherals of the LAN966x SoC can be accessed by the PCI host. Hence add dependencies on SOC_LAN966 and MFD_LAN966X_PCI, to prevent asking the user about this driver when configuring a kernel without Microchip LAN966x SoC and PCIe support.

---
v2:
- New.

---
 drivers/phy/microchip/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/phy/microchip/Kconfig +1 -0
index 38039ed0754c6548..2f0045e874ac81ad 100644
@@ -15,6 +15,7 @@ config PHY_SPARX5_SERDES
 config PHY_LAN966X_SERDES
 	tristate "SerDes PHY driver for Microchip LAN966X"
 	select GENERIC_PHY
+	depends on SOC_LAN966 || MCHP_LAN966X_PCI || COMPILE_TEST
 	depends on OF
 	depends on MFD_SYSCON
 	help
Signature · 7 lines
2.43.0


-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy
maintainer Acked-by on v2 3/3
#8 lore raw

Re: [PATCH v2 3/3] phy: PHY_LAN966X_SERDES should depend on SOC_LAN966 || MCHP_LAN966X_PCI

Hi Geert,

Quoted 3 lines · On Fri, 17 Jan 2025 14:04:38 +0100 Geert Uytterhoeven…

The Microchip LAN966X SerDes PHY is only present on Microchip LAN966x SoCs. However, when used as a PCI endpoint, all peripherals of the LAN966x SoC can be accessed by the PCI host. Hence add dependencies on

^^ Two spaces

Quoted 1 line

SOC_LAN966 and MFD_LAN966X_PCI, to prevent asking the user about this

s/MFD_LAN966X_PCI/MCHP_LAN966X_PCI/

Quoted 4 lines

driver when configuring a kernel without Microchip LAN966x SoC and PCIe support.

With those minor things fixed,

Best regards,
Hervé

#9 lore raw

Re: [PATCH v2 3/3] phy: PHY_LAN966X_SERDES should depend on SOC_LAN966 || MCHP_LAN966X_PCI

Hi Hervé,

Quoted 6 lines · Herve Codina
Quoted 3 lines · On Fri, 17 Jan 2025 14:04:38 +0100 Geert Uytterhoeven…

The Microchip LAN966X SerDes PHY is only present on Microchip LAN966x SoCs. However, when used as a PCI endpoint, all peripherals of the LAN966x SoC can be accessed by the PCI host. Hence add dependencies on

^^ Two spaces

That's intentional: more space after a period terminating a sentence...

Quoted 3 lines
Quoted 1 line

SOC_LAN966 and MFD_LAN966X_PCI, to prevent asking the user about this

s/MFD_LAN966X_PCI/MCHP_LAN966X_PCI/

Bummer, how did I miss that?

Quoted 8 lines
Quoted 4 lines

driver when configuring a kernel without Microchip LAN966x SoC and PCIe support.

With those minor things fixed,

Thanks!

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds