]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: dw-rockchip: Refactor the driver to prepare for EP mode
authorNiklas Cassel <cassel@kernel.org>
Fri, 7 Jun 2024 11:14:29 +0000 (13:14 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 9 Jul 2024 23:29:05 +0000 (18:29 -0500)
commit49a0925d17332415683e5f692ad932ab86c2d3ad
treeb7fa7ae52369fba4dc3c7a6aa66e478adff5f2da
parentd8b864c95dcb1ad943cdecaf3cdab08217fb70e0
PCI: dw-rockchip: Refactor the driver to prepare for EP mode

Refactor the driver to prepare for EP mode.

Add of-match data to the existing compatible, and explicitly define it as
DW_PCIE_RC_TYPE. This way, we will be able to add EP mode in a follow-up
commit in a much less intrusive way, which makes the follow-up commit much
easier to review.

No functional change intended.

Link: https://lore.kernel.org/linux-pci/20240607-rockchip-pcie-ep-v1-v5-9-0a042d6b0049@kernel.org
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/pci/controller/dwc/pcie-dw-rockchip.c