OSDN Git Service

PCI: rcar: Always allocate MSI addresses in 32bit space
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 16 Oct 2020 12:04:31 +0000 (14:04 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 15 Jan 2021 12:11:00 +0000 (12:11 +0000)
commitc4e0fec2f7ee013dbf86445394ff47f719408f99
tree3e75dcf4bd36cef031c609d6a2f983b046da8a0b
parent7c53f6b671f4aba70ff15e1b05148b10d58c2837
PCI: rcar: Always allocate MSI addresses in 32bit space

This fixes MSI operation on legacy PCI cards, which cannot issue 64bit MSIs.
The R-Car controller only has one MSI trigger address instead of two, one
for 64bit and one for 32bit MSI, set the address to 32bit PCIe space so that
legacy PCI cards can also trigger MSIs.

Link: https://lore.kernel.org/r/20201016120431.7062-1-marek.vasut@gmail.com
Fixes: 290c1fb35860 ("PCI: rcar: Add MSI support for PCIe")
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Wolfram Sang <wsa@the-dreams.de>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: linux-renesas-soc@vger.kernel.org
drivers/pci/controller/pcie-rcar-host.c