Skip to contentSkip to conversation

LAN966x PCIe endpoint cleanups

PATCH Applied Geert Uytterhoeven 2 participants 5 messages Jan 20, 2025 – Feb 14, 2025

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

v3 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 v2[1]:
- Add Acked-by,
- Fix references to bogus MFD_LAN966X_PCI symbol.

Changes compared to v1[2]:
- 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 v2 0/3] LAN966x PCIe endpoint cleanups"

    https://lore.kernel.org/[email protected]

[2] "[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 MCHP_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 · 17 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

-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy
#1 lore raw

PATCH v3 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.

---
v3:
- Add Acked-by,

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
#2 lore raw

PATCH v3 2/3 irqchip: LAN966X_OIC should depend on MCHP_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")

---
v3:
- Fix symbol name in one-line summary,
- Add Acked-by,

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 · 7 lines
2.43.0


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

PATCH v3 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 MCHP_LAN966X_PCI, to prevent asking the user about this driver when configuring a kernel without Microchip LAN966x SoC and PCIe support.

---
v3:
- Fix symbol name in description,
- Add Acked-by,

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 Applied
#4 lore raw

Re: (subset) [PATCH v3 0/3] LAN966x PCIe endpoint cleanups

In reply to Geert Uytterhoeven
Quoted 11 lines · Geert Uytterhoeven

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 v2[1]:
- Add Acked-by,
- Fix references to bogus MFD_LAN966X_PCI symbol.

[...]

Applied, thanks!

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

      commit: 7dff18535b93ea1ce6dbaf36b7ae670f04113d08

Best regards,

Signature · 1 line
~Vinod