staging: fsl-dpaa2/eth: Fix address translations
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Wed, 24 May 2017 12:13:27 +0000 (07:13 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 May 2017 14:57:20 +0000 (16:57 +0200)
commit08eb23974e994a34776e7a83227509d4e4296aa5
tree9ad83fb339a2e3e435ae2fe512ff4a92f2986234
parent3ddf70e15dd740ec17b6fab4e901abb02dbf6291
staging: fsl-dpaa2/eth: Fix address translations

Use the correct mechanisms for translating a DMA-mapped IOVA
address into a virtual one. Without this fix, once SMMU is
enabled on Layerscape platforms, the Ethernet driver throws
IOMMU translation faults.

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h