powerpc/powernv: Fix it_ops::get() callback to return in cpu endian
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 21 Feb 2017 02:38:54 +0000 (13:38 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Mar 2017 08:02:49 +0000 (19:02 +1100)
commit81d5fe1a3b1acfaadc7921d08609e097c6345d7f
tree20e9a36c6a99e1c1049a812ae538ae45b7800eaf
parentb3a7864c6feb0fb30bc2cd3726570746bec41697
powerpc/powernv: Fix it_ops::get() callback to return in cpu endian

The iommu_table_ops callbacks are declared CPU endian as they take and
return "unsigned long"; underlying hardware tables are big-endian.

However get() was missing be64_to_cpu(), this adds the missing conversion.

The only caller of this is crash dump at arch/powerpc/kernel/iommu.c,
iommu_table_clear() which only compares TCE to zero so this change
should not cause behavioral change.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci.c