summaryrefslogtreecommitdiffstats
path: root/drivers/pci/switch
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2020-02-25 13:47:01 +0530
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2020-04-02 17:57:10 +0100
commit83153d9f36e24978c6211d246cb6f532bf54e5dc (patch)
tree6d39619de34bfcfd89a50f70d41575ff9415b87f /drivers/pci/switch
parentcf376b4b59da9996bf04cc22cd89acc62171869a (diff)
downloadlinux-stable-83153d9f36e24978c6211d246cb6f532bf54e5dc.tar.gz
linux-stable-83153d9f36e24978c6211d246cb6f532bf54e5dc.tar.bz2
linux-stable-83153d9f36e24978c6211d246cb6f532bf54e5dc.zip
PCI: endpoint: Fix ->set_msix() to take BIR and offset as arguments
commit 8963106eabdc ("PCI: endpoint: Add MSI-X interfaces") while adding support to raise MSI-X interrupts from endpoint didn't include BAR Indicator register (BIR) configuration and MSI-X table offset as arguments in pci_epc_set_msix(). This would result in endpoint controller register using random BAR indicator register, the memory for which might not be allocated by the endpoint function driver. Add BAR indicator register and MSI-X table offset as arguments in pci_epc_set_msix() and allocate space for MSI-X table and pending bit array (PBA) in pci-epf-test endpoint function driver. Fixes: 8963106eabdc ("PCI: endpoint: Add MSI-X interfaces") Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers/pci/switch')
0 files changed, 0 insertions, 0 deletions