]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: thunder-pem: Add support for cn81xx and cn83xx SoCs
authorDavid Daney <david.daney@cavium.com>
Wed, 11 Jan 2017 19:22:11 +0000 (11:22 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 12 Jan 2017 22:01:21 +0000 (16:01 -0600)
commitc5c4d3a3f4a8c830cb514eb469a1025df2df0379
treeb744176e74abe6af4b19e0b0f06b7757b82a6432
parent7ce7d89f48834cefece7804d38fc5d85382edf77
PCI: thunder-pem: Add support for cn81xx and cn83xx SoCs

The pci-thunder-pem driver was initially developed for cn88xx SoCs.  The
cn81xx and cn83xx members of the same family of SoCs have a slightly
different configuration of interrupt resources in the PEM hardware, which
prevents the INTA legacy interrupt source from functioning with the current
driver.

There are two fixes required:

1) Don't fixup the PME interrupt on the newer SoCs as it already has the
proper value.

2) Report MSI-X Capability Table Size of 2 for the newer SoCs, so the core
MSI-X code doesn't inadvertently clobber the INTA machinery that happens to
reside immediately following the table.

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-thunder-pem.c