PCI: cadence: Replace private message routing enums with PCI core definitions
authorHans Zhang <18255117159@163.com>
Sat, 7 Jun 2025 15:49:12 +0000 (23:49 +0800)
committerManivannan Sadhasivam <mani@kernel.org>
Thu, 19 Jun 2025 12:50:39 +0000 (18:20 +0530)
commitf28413fe0899591492d8ca3cdf5fd35558d9c05d
tree884f096f5df11df34358f9992b80c008f27394c5
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
PCI: cadence: Replace private message routing enums with PCI core definitions

The Cadence driver previously defined its own message routing enums (e.g.,
MSG_ROUTING_LOCAL) and message codes, which duplicated existing PCI core
macros (PCIE_MSG_TYPE_R_LOCAL, PCIE_MSG_CODE_ASSERT_INTA, etc.) in
drivers/pci/pci.h. These core definitions align with the PCIe r6.0 spec.

Remove the driver-specific enums and switch to the centralized PCI core
macros. This eliminates redundancy, ensures consistency, and simplifies
future updates. No functional changes are introduced.

Signed-off-by: Hans Zhang <18255117159@163.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20250607154913.805027-2-18255117159@163.com
drivers/pci/controller/cadence/pcie-cadence-ep.c
drivers/pci/controller/cadence/pcie-cadence.h