PCI: dwc: Cleanup DBI,ATU read and write APIs
authorVidya Sagar <vidyas@nvidia.com>
Tue, 25 Jun 2019 09:22:37 +0000 (14:52 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 27 Jun 2019 11:02:46 +0000 (12:02 +0100)
commit7bc082d7e97009f252bd432de5d476b0bcf3b266
tree1ec44c0a670c4339ce8de2587caf9e22875e8e2d
parent9d071cade30a05b46e894885beeba9922dc4fd23
PCI: dwc: Cleanup DBI,ATU read and write APIs

Cleanup DBI read and write APIs by removing leading "__" (underscore)
from their names as there is no reason to have leading underscores
in the first place in the function definition.

Remove dbi/dbi2 base address parameters as the same behaviour can be
obtained through read and write APIs. Since dw_pcie_{readl/writel}_dbi()
APIs can't be used for ATU read/write as ATU base address could be
different from DBI base address, implement ATU read/write APIs using ATU
base address without using dw_pcie_{readl/writel}_dbi() APIs.

Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
drivers/pci/controller/dwc/pcie-designware.c
drivers/pci/controller/dwc/pcie-designware.h