]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
PCI: designware: Remove incorrect RC memory base/limit configuration
authorGabriele Paoloni <gabriele.paoloni@huawei.com>
Sat, 16 Apr 2016 11:03:39 +0000 (12:03 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 2 May 2016 21:11:48 +0000 (16:11 -0500)
commita5cb903aef8c642e6f0f6810d46dacedf666b54a
tree8916cb64f4260283d7bc9cfeefc3a254b7a113ca
parent7e57fd1444bf8f4ba9179f826ed6817c56b801d4
PCI: designware: Remove incorrect RC memory base/limit configuration

Currently dw_pcie_setup_rc() configures memory base and memory limit in the
type1 configuration header for the root complex.  In doing so it uses the
CPU address (pp->mem_base) rather than the bus address (pp->mem_bus_addr).
This is wrong and it is useless since the configuration is overwritten
later on when pci_bus_assign_resources() is called.

Remove this configuration from dw_pcie_setup_rc().

Signed-off-by: Gabriele Paoloni <gabriele.paoloni@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Pratyush Anand <pratyush.anand@gmail.com>
drivers/pci/host/pcie-designware.c