bus/fslmc: restrict address translation to PA mode
authorShreyansh Jain <shreyansh.jain@nxp.com>
Thu, 29 Aug 2019 10:27:32 +0000 (15:57 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:31 +0000 (12:14 +0200)
commit297e5df593360f948342a9b71deb7910f717e21b
treecfc40b7a4157b0c83a23318e4b5855db5908f2f7
parentbc767866a3afcbc4d39fef13bd825cb691677d51
bus/fslmc: restrict address translation to PA mode

The address translation support for PA->VA is required only in
case of PA mode operation of DPDK. This was causing warning to
be reported on running any DPAA2 application in VA mode:

    Add: Incorrect entry for PA->VA Table(xxxxxxxxxx)
    Add: Lowest address: xxxxxxxxxxxx

This was caused by call to update the DPAAX table when VA mode
was enabled, in which case the VA==IOVA address.

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Reviewed-by: Sachin Saxena <sachin.saxena@nxp.com>
drivers/bus/fslmc/fslmc_bus.c