PCI: mvebu: Add support for PCI_EXP_SLTSTA_DLLSC via hot plug interrupt
Subsystems (3)
Pali Rohár
maintainerPATCH 1/1 PCI: mvebu: Add support for PCI_EXP_SLTSTA_DLLSC via hot plug interrupt
If link up/down state is changed in mvebu_pcie_link_up() then trigger hot plug interrupt with DLLSC state change on the emulated PCIe Root Port.
Also triggers hot plug interrupt on emulated PCIe Root Port when mvebu reports via mvebu error interrupt Link Failure event (indicates that link was changed from active state; with exception of Hot Reset and Link Disable states) or TxReq No Link event (indicates that link is down while trying to transmit PCIe transaction).
And triggers this hot plug interrupt also when explicit Link Disable or PCIe Host Reset on emulated PCIe Root Port is issued via config space access as mvebu HW does not signal Link Failure when dropping to Detect via Hot Reset or Link Disable. This is because compliant hotplug-capable PCIe Root Port should report DLLSC event via hot plug interrupt every time when link is changed independently of the source of event change.
This new code heavily depends on kernel PCI hotplug driver, so enable it when compiling pci-mvebu.c driver.
---
This patch depends on patch:
"PCI: mvebu: Implement support for interrupts on emulated bridge"
https://lore.kernel.org/linux-pci/[email protected]/
--- drivers/pci/controller/Kconfig | 3 + drivers/pci/controller/pci-mvebu.c | 147 ++++++++++++++++++++++++++++- 2 files changed, 149 insertions(+), 1 deletion(-)
drivers/pci/controller/Kconfig +3 -0
@@ -10,6 +10,9 @@ config PCI_MVEBU depends on ARM depends on OF select PCI_BRIDGE_EMUL + select PCIEPORTBUS + select HOTPLUG_PCI + select HOTPLUG_PCI_PCIE help Add support for Marvell EBU PCIe controller. This PCIe controller is used on 32-bit Marvell ARM SoCs: Dove, Kirkwood, Armada 370,
drivers/pci/controller/pci-mvebu.c +146 -1
236 lines not on this page · raw message
Signature · 1 line
2.20.1