PCI: rockchip: Enable the phy driver when controller is enabled
Subsystems (3)
PATCH 1/1 PCI: rockchip: Enable the phy driver when controller is enabled
The PCI controller on rk3399 requires the phy to correctly initialise the PCIE phy. Without phy initialisation the host and end-point controllers cannot be used.
To prevent building an unusable PCIe driver on rk3399, enable the phy driver when the host or end-point driver is enabled.
---
Hi,
I've been caught out many times when booting off of PCI and finding that the kernel cannot find rootfs due to the missing phy driver. The patch should prevents this by fixing the Kconfig dependency enablement.
Thanks,
Punit
drivers/pci/controller/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
drivers/pci/controller/Kconfig +2 -0
@@ -214,6 +214,7 @@ config PCIE_ROCKCHIP_HOST depends on PCI_MSI_IRQ_DOMAIN select MFD_SYSCON select PCIE_ROCKCHIP + select PHY_ROCKCHIP_PCIE help Say Y here if you want internal PCI support on Rockchip SoC. There is 1 internal PCIe port available to support GEN2 with
@@ -226,6 +227,7 @@ config PCIE_ROCKCHIP_EP depends on PCI_ENDPOINT select MFD_SYSCON select PCIE_ROCKCHIP + select PHY_ROCKCHIP_PCIE help Say Y here if you want to support Rockchip PCIe controller in endpoint mode on Rockchip SoC. There is 1 internal PCIe port
Signature · 1 line
2.33.0
Quoted 16 lines · Punit Agrawal
The PCI controller on rk3399 requires the phy to correctly initialise the PCIE phy. Without phy initialisation the host and end-point controllers cannot be used.
To prevent building an unusable PCIe driver on rk3399, enable the phy driver when the host or end-point driver is enabled.
Signed-off-by Punit Agrawal <[email protected]>---
Hi,I've been caught out many times when booting off of PCI and finding that the kernel cannot find rootfs due to the missing phy driver. The patch should prevents this by fixing the
Kconfigdependency enablement.
Quoted 5 lines
Thanks,
Punitdrivers/pci/controller/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
Shawn, Heiko,
can I go ahead with this patch please ?
Thanks,
Lorenzo
Quoted 23 lines
drivers/pci/controller/Kconfig +2
-0@@ -214,6 +214,7 @@ config PCIE_ROCKCHIP_HOST depends on PCI_MSI_IRQ_DOMAIN select MFD_SYSCON select PCIE_ROCKCHIP + select PHY_ROCKCHIP_PCIE help Say Y here if you want internal PCI support on Rockchip SoC. There is 1 internal PCIe port available to support GEN2 with@@ -226,6 +227,7 @@ config PCIE_ROCKCHIP_EP depends on PCI_ENDPOINT select MFD_SYSCON select PCIE_ROCKCHIP + select PHY_ROCKCHIP_PCIE help Say Y here if you want to support Rockchip PCIe controller in endpoint mode on Rockchip SoC. There is 1 internal PCIe portSignature · 1 line
2.33.0