This patch series intend to refactor the cadence pcie host and endpoint driver files as a library, such that this can be used by other platform drivers. A new folder 'cadence' is created to group all the cadence derivatives. v3: - Commit logs rephrased and corrected as suggested by Andrew and Kishon - Created a new folder 'cadence', as suggested by Kishon. - Removed few unwanted codes, as pointed out by review comments Tom Joseph (2): PCI: cadence: Refactor driver to use as a core library PCI: cadence: Create new folder 'cadence' and move all cadence files to it drivers/pci/controller/Kconfig | 29 +--- drivers/pci/controller/Makefile | 4 +- drivers/pci/controller/cadence/Kconfig | 45 ++++++ drivers/pci/controller/cadence/Makefile | 5 + .../pci/controller/{ => cadence}/pcie-cadence-ep.c | 96 +----------- .../controller/{ => cadence}/pcie-cadence-host.c | 95 +---------- drivers/pci/controller/cadence/pcie-cadence-plat.c | 174 +++++++++++++++++++++ .../pci/controller/{ => cadence}/pcie-cadence.c | 0 .../pci/controller/{ => cadence}/pcie-cadence.h | 77 +++++++++ 9 files changed, 315 insertions(+), 210 deletions(-) create mode 100644 drivers/pci/controller/cadence/Kconfig create mode 100644 drivers/pci/controller/cadence/Makefile rename drivers/pci/controller/{ => cadence}/pcie-cadence-ep.c (83%) rename drivers/pci/controller/{ => cadence}/pcie-cadence-host.c (76%) create mode 100644 drivers/pci/controller/cadence/pcie-cadence-plat.c rename drivers/pci/controller/{ => cadence}/pcie-cadence.c (100%) rename drivers/pci/controller/{ => cadence}/pcie-cadence.h (82%) -- 2.2.2