]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Move TLP Log handling to its own file
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 14 Jan 2025 17:08:34 +0000 (19:08 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 14 Jan 2025 23:38:18 +0000 (17:38 -0600)
commita71c59269e51f9fffd97a7be199ff74478759e1c
treefe677bee140235a7759c10d6d81190792f16d25b
parent013525583fdd79b6b83547b937535dfd406d3cd5
PCI: Move TLP Log handling to its own file

TLP Log is a PCIe feature and is processed only by AER and DPC.
Configwise, DPC depends AER being enabled. In lack of better place, the TLP
Log handling code was initially placed into pci.c but it can be easily
placed in a separate file.

Move TLP Log handling code to its own file under pcie/ subdirectory and
include it only when AER is enabled.

Link: https://lore.kernel.org/r/20250114170840.1633-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/pcie/Makefile
drivers/pci/pcie/tlp.c [new file with mode: 0644]