LAN966x PCIe endpoint cleanups
Subsystems (4)
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 TorvaldsPATCH 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
@@ -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
PATCH v2 3/3 phy: PHY_LAN966X_SERDES should depend on SOC_LAN966 || MCHP_LAN966X_PCI
In reply to Geert UytterhoevenThe 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
@@ -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
PATCH v2 2/3 irqchip: LAN966X_OIC should depend on MFD_LAN966X_PCI
In reply to Geert UytterhoevenThe 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.
---
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
@@ -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
Re: [PATCH v2 1/3] dt-bindings: interrupt-controller: microchip,lan966x-oic: Clarify endpoint use
In reply to Geert UytterhoevenQuoted 6 lines · Geert Uytterhoeven
Reword the description, to make it clear that the LAN966x Outbound Interrupt Controller is used only in PCI endpoint mode.
Signed-off-by Geert Uytterhoeven <[email protected]>---
v2:
Best regards,
Krzysztof
Re: [PATCH v2 1/3] dt-bindings: interrupt-controller: microchip,lan966x-oic: Clarify endpoint use
In reply to Geert UytterhoevenHi 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.
Signed-off-by Geert Uytterhoeven <[email protected]>---
v2:
- New.--- .../bindings/interrupt-controller/microchip,lan966x-oic.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
Best regards,
Hervé
Re: [PATCH v2 2/3] irqchip: LAN966X_OIC should depend on MFD_LAN966X_PCI
In reply to Geert UytterhoevenHi 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")Signed-off-by Geert Uytterhoeven <[email protected]>---
v2:
- Drop dependency onSOC_LAN966, as the OIC is used only in LAN966x PCI endpoint mode,
- ReplaceMFD_LAN966X_PCIbyMCHP_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
Re: [PATCH v2 3/3] phy: PHY_LAN966X_SERDES should depend on SOC_LAN966 || MCHP_LAN966X_PCI
In reply to Geert UytterhoevenHi 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_LAN966andMFD_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.
Signed-off-by Geert Uytterhoeven <[email protected]>
With those minor things fixed,
Best regards,
Hervé
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_LAN966andMFD_LAN966X_PCI, to prevent asking the user about thiss/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.
Signed-off-by Geert Uytterhoeven <[email protected]>With those minor things fixed,
Acked-by Herve Codina <[email protected]>
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
Re: [PATCH v2 2/3] irqchip: LAN966X_OIC should depend on MFD_LAN966X_PCI
In reply to Geert UytterhoevenQuoted 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")Signed-off-by Geert Uytterhoeven <[email protected]>---
v2:
- Drop dependency onSOC_LAN966, as the OIC is used only in LAN966x PCI endpoint mode,
- ReplaceMFD_LAN966X_PCIbyMCHP_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