]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: iproc: Allow allocation of multiple MSIs
authorSandor Bodo-Merle <sbodomerle@gmail.com>
Sat, 7 Oct 2017 12:08:44 +0000 (14:08 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 17 Oct 2017 19:00:25 +0000 (14:00 -0500)
commitfc54bae288182056e9d2431fb1018bf5229ea52d
treea51db1cf68886a39943f993f558369b5f3b5f96e
parent9e66317d3c92ddaab330c125dfe9d06eee268aff
PCI: iproc: Allow allocation of multiple MSIs

Add support for allocating multiple MSIs at the same time, so that the
MSI_FLAG_MULTI_PCI_MSI flag can be added to the msi_domain_info structure.

Avoid storing the hwirq in the low 5 bits of the message data, as it is
used by the device. Also fix an endianness problem by using readl().

Signed-off-by: Sandor Bodo-Merle <sbodomerle@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
drivers/pci/host/pcie-iproc-msi.c