PCI: imx6: Simplify PHY handling by using IMX6_PCIE_FLAG_HAS_PHYDRV
authorFrank Li <Frank.Li@nxp.com>
Tue, 20 Feb 2024 16:19:12 +0000 (11:19 -0500)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Wed, 21 Feb 2024 10:22:46 +0000 (11:22 +0100)
commit4e37c2f48712d5874619685819e1cf7307f60840
tree9fcf6ac47d991e81207991ed72d5dbaa510db656
parent6a40185838759cdae728ed79738680d798863ce7
PCI: imx6: Simplify PHY handling by using IMX6_PCIE_FLAG_HAS_PHYDRV

Since some i.MX platforms make use of a separate PHY driver, use
IMX6_PCIE_FLAG_HAS_PHYDRV flag to identify them and get the reference to
PHY from DT to simplify the code.

Link: https://lore.kernel.org/r/20240220161924.3871774-3-Frank.Li@nxp.com
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/dwc/pci-imx6.c