]> git.baikalelectronics.ru Git - kernel.git/commit
powernv/pci: Remove dma_dev_setup() for NPU PHBs
authorOliver O'Halloran <oohall@gmail.com>
Fri, 10 Jan 2020 07:02:04 +0000 (18:02 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jan 2020 10:31:21 +0000 (21:31 +1100)
commit9277793d228df118e3e37a6ad8a72367e5d72aa6
tree214654c6f50e0b0e0f61b2b55c3e74fd81993292
parentd705ab5841d52abd3626d4755b5a6e8d7a80daaf
powernv/pci: Remove dma_dev_setup() for NPU PHBs

The pnv_pci_dma_dev_setup() only does something when:

1) There PHB contains VFs, or
2) The PHB defines a dma_dev_setup() callback in the pnv_phb structure.

Neither is true for NPU PHBs so there's no reason to set the callback.

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