OSDN Git Service

powerpc/powernv/npu: Clean up compound table group initialisation
authorOliver O'Halloran <oohall@gmail.com>
Mon, 6 Apr 2020 03:07:39 +0000 (13:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 May 2020 13:24:37 +0000 (23:24 +1000)
commit6984856865b55c9c1ee0814c30296119cd8ba511
tree8cdf5dabd8532222000c0d186fa6e91b866acfdd
parentd4539074b0e9c5fa6508e8c33aaf51abc8ff6e91
powerpc/powernv/npu: Clean up compound table group initialisation

Re-work the control flow a bit so what's going on is a little clearer.
This also ensures the table_group is only initialised once in the P9
case. This shouldn't be a functional change since all the GPU PCI
devices should have the same table_group configuration, but it does
look strange.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200406030745.24595-2-oohall@gmail.com
arch/powerpc/platforms/powernv/npu-dma.c