PCI: rockchip: Use standard PCIe definitions
authorGeraldo Nascimento <geraldogabriel@gmail.com>
Mon, 30 Jun 2025 22:24:41 +0000 (19:24 -0300)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 7 Jul 2025 22:19:12 +0000 (17:19 -0500)
commitcbbfe9f683f0f9b6a1da2eaa53b995a4b5961086
treea3890785dfbcacef2f9ad45533436d673c0e7aeb
parent1a69c63fdf1c9095e132096081e27ac85a4d48a5
PCI: rockchip: Use standard PCIe definitions

Current code uses custom-defined register offsets and bitfields for the
standard PCIe registers. This creates duplication as the PCI header already
defines them. So, switch to using the standard PCIe definitions and drop
the custom ones.

Suggested-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Geraldo Nascimento <geraldogabriel@gmail.com>
[mani: commit message rewording]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
[bhelgaas: include bitfield.h]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/e81700ef4b49f584bc8834bfb07b6d8995fc1f42.1751322015.git.geraldogabriel@gmail.com
drivers/pci/controller/pcie-rockchip-ep.c
drivers/pci/controller/pcie-rockchip-host.c
drivers/pci/controller/pcie-rockchip.h