powerpc/powernv/ioda2: Use new helpers to do proper cleanup on PE release
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 5 Jun 2015 06:35:21 +0000 (16:35 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 11 Jun 2015 05:16:53 +0000 (15:16 +1000)
commitc035e37b58c75ca216bfd1d5de3c1080ac0022b9
treeb9cec68dfae70323aae52f1aaeb1d32d35ccd3b9
parent4793d65d1ac056d92b594d05c6aab3c040d913dd
powerpc/powernv/ioda2: Use new helpers to do proper cleanup on PE release

The existing code programmed TVT#0 with some address and then
immediately released that memory.

This makes use of pnv_pci_ioda2_unset_window() and
pnv_pci_ioda2_set_bypass() which do correct resource release and
TVT update.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c