]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: designware: Move calculation of bus addresses to DRA7xx
authorGabriele Paoloni <gabriele.paoloni@huawei.com>
Fri, 30 Oct 2015 00:56:51 +0000 (19:56 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 2 Nov 2015 20:49:18 +0000 (14:49 -0600)
commit883cc17cb193ad73bbc57934aa8d750162a9b79a
tree665f9d6c97b4505c5cd1dcb84b1fb8d4ac3378a6
parent907fce0902539ecde609e485eb2ecd7119a7a623
PCI: designware: Move calculation of bus addresses to DRA7xx

Commit f4c55c5a3f7f ("PCI: designware: Program ATU with untranslated
address") added the calculation of PCI bus addresses in pcie-designware.c,
storing them in new fields added in struct pcie_port.  This calculation is
done for every DesignWare user even though it only applies to DRA7xx.

Move the calculation of the bus addresses to the DRA7xx driver to allow the
rework of DesignWare to use the new DT parsing API.

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