]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: imx6: Introduce SoC specific callbacks for controlling REFCLK
authorFrank Li <Frank.Li@nxp.com>
Mon, 29 Jul 2024 20:18:12 +0000 (16:18 -0400)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Mon, 9 Sep 2024 14:08:22 +0000 (14:08 +0000)
commit256867b74625a56ce1ff4bd89440c3fbbb357d18
treebb48e61ecd0384bdc6d5b937d5c16fae1b44a277
parentd657ea28d55037ef9a5e58d51aa757d981b8bfc2
PCI: imx6: Introduce SoC specific callbacks for controlling REFCLK

Instead of using the switch case statement to enable/disable the
reference clock handled by this driver itself, let's introduce a new
callback enable_ref_clk() and define it for platforms that require it.

This simplifies the code.

Link: https://lore.kernel.org/linux-pci/20240729-pci2_upstream-v8-5-b68ee5ef2b4d@nxp.com
Signed-off-by: Frank Li <Frank.Li@nxp.com>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/dwc/pci-imx6.c