]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: cadence: Remove duplicate message code definitions
authorHans Zhang <18255117159@163.com>
Tue, 1 Apr 2025 14:50:23 +0000 (22:50 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 28 May 2025 21:55:27 +0000 (16:55 -0500)
commit16b2da850f6f79bf9013516ce78b27a8abb10359
tree2fe6f01cc093a2aac8beb49a7f1d66b23c5d855d
parent8805f32a96d3b97cef07999fa6f52112678f7e65
PCI: cadence: Remove duplicate message code definitions

The Cadence PCIe controller driver defines message codes in enum
cdns_pcie_msg_code duplicating the existing PCIE_MSG_CODE_* definitions in
drivers/pci/pci.h. The driver only uses ASSERT_INTA and DEASSERT_INTA codes
from this enum.

Remove the redundant Cadence-specific enum definitions and use the ones
available in drivers/pci/pci.h. This helps in avoiding code duplication,
maintaining consistency with the spec, and simplifying the code
maintenance.

Signed-off-by: Hans Zhang <18255117159@163.com>
[mani: commit message rewording]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20250401145023.22948-1-18255117159@163.com
drivers/pci/controller/cadence/pcie-cadence-ep.c
drivers/pci/controller/cadence/pcie-cadence.h