]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jun 2019 09:54:06 +0000 (11:54 +0200)
commite9db931283fdebe67fc7372f4dc231f1a535b0b7
tree56a91f2e68c9a659e87ca45fdf3c11fa3b6b234d
parenta7f27994b20709d27f83deda48a5d0eca427bf75
PCI: designware-ep: Use aligned ATU window for raising MSI interrupts

[ Upstream commit 6b7330303a8186fb211357e6d379237fe9d2ece1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/dwc/pcie-designware-ep.c