PCI: cadence: Use AXI region 0 to signal interrupts from EP
authorAlan Douglas <adouglas@cadence.com>
Thu, 11 Oct 2018 16:15:43 +0000 (17:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:33 +0000 (11:08 -0800)
commit7c190bb8c9a1389a3d8f3379de9cc02a0cfeb2c0
tree8366770df4da3f5ffa7741c16bd454d6b7e37b97
parent1a5908ddbea7639213aab70f26193de72700ce3d
PCI: cadence: Use AXI region 0 to signal interrupts from EP

[ Upstream commit 0652d4b6b56f73c81abbdbc7e26f772cb2dfe370 ]

The IRQ physical address is allocated from region 0, rather than
the highest region. Update the driver to reserve this region in
the bitmap and to use region 0 for all types of interrupt.

This corrects a problem which prevents the interrupt being
signalled correctly if using the first address in the AXI region,
since an offset of zero will always be mapped to region 0.

Fixes: 37dddf14f1ae ("PCI: cadence: Add EndPoint Controller driver for Cadence PCIe controller")
Signed-off-by: Alan Douglas <adouglas@cadence.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/controller/pcie-cadence-ep.c