PCI: designware-ep: Use aligned ATU window for raising MSI interrupts
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 25 Mar 2019 09:39:45 +0000 (15:09 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 1 May 2019 14:50:13 +0000 (15:50 +0100)
commit6b7330303a8186fb211357e6d379237fe9d2ece1
treeb036a0b061ffd2179375cf549a2aa608a9bc9691
parentfc9a77040b04c05f036515f40aa7cf4b9c91defd
PCI: designware-ep: Use aligned ATU window for raising MSI interrupts

Certain platforms like K2G reguires the outbound ATU window to be
aligned. The alignment size is already present in mem->page_size.
Use the alignment size present in mem->page_size to configure an
aligned ATU window. In order to raise an interrupt, CPU has to write
to address offset from the start of the window unlike before where
writes were always to the beginning of the ATU window.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/dwc/pcie-designware-ep.c