pci: pci_mvebu: Move setup for BAR[0] where other BARs are setup
authorPali Rohár <pali@kernel.org>
Thu, 11 Nov 2021 15:35:42 +0000 (16:35 +0100)
committerStefan Roese <sr@denx.de>
Tue, 21 Dec 2021 06:40:26 +0000 (07:40 +0100)
commit4a1a593d1783e5292cd48ea66d0b13977aa16d86
treeb564acc8642d27956b1030e6a4f821b19b9db82b
parent4afab30caea3211032710c4298a8839d3254e7f7
pci: pci_mvebu: Move setup for BAR[0] where other BARs are setup

Function mvebu_pcie_setup_wins() sets up all other BARs, so move setup of
BAR[0] to this function to have common code at one place.

In the past, commit 193a1e9f196b ("pci: pci_mvebu: set BAR0 after memory
space is set") moved setup of BAR[0] to another location, due to ath10k
not working in kernel, but the reason why was unknown, but it seems to
work now, and we think the issue then was cause by the PCIe Root Port
presenting itself as a Memory Controller and therefore U-Boot's code
have overwritten the BAR. Since the driver now ignores any write
operations to PCIe Root Port BARs, this should not be an issue anymore.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pci/pci_mvebu.c