]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17b980ace0ed452735239be4a430e6e9d297fb3f
tree8cdf5dabd8532222000c0d186fa6e91b866acfdd
parent3319da9e0b0d28bfbd79059edcedbb0b6713f27e
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