PCI: kirin: Reorganize the PHY logic inside the driver
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 21 Oct 2021 10:45:08 +0000 (11:45 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 2 Nov 2021 15:43:13 +0000 (10:43 -0500)
commit61d37547436dce45e3590db72360df0e230ca969
tree8a1acbcc7d7665be2526ebc58a2400cf76f8c886
parente4e737bb5c170df6135a127739a9e6148ee3da82
PCI: kirin: Reorganize the PHY logic inside the driver

The pcie-kirin PCIe driver contains internally a PHY interface for
Kirin 960.

As the next patches will add support for using an external PHY driver,
reorganize the driver in a way that the PHY part will be self-contained.

This could be moved to a separate PHY driver, but a change like that would
mean a non-backward-compatible DT schema change.

Link: https://lore.kernel.org/r/ad2f4aa6bbb71d5c9af0139704672f75f12644fc.1634812676.git.mchehab+huawei@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Xiaowei Song <songxiaowei@hisilicon.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
drivers/pci/controller/dwc/pcie-kirin.c