PCI: imx6: Simplify switch-case logic by introducing init_phy() callback
authorFrank Li <Frank.Li@nxp.com>
Tue, 20 Feb 2024 16:19:16 +0000 (11:19 -0500)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Mon, 4 Mar 2024 08:54:43 +0000 (09:54 +0100)
commit21ad80b0e0ce5f2b6d17e11bc823e8e0a1527555
tree6cfb4926e1584fd30f7721be889a0932d3f55cdf
parentf99b121c258918906b119d9333277fa6987a7fb1
PCI: imx6: Simplify switch-case logic by introducing init_phy() callback

Instead of using the switch case statement to initialize the PHY handled by
this driver itself, let's introduce a new callback init_phy() and define it
for platforms that require it.

Link: https://lore.kernel.org/r/20240220161924.3871774-7-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