OSDN Git Service

powerpc/powernv/pci: Sprinkle around some WARN_ON()s
authorOliver O'Halloran <oohall@gmail.com>
Fri, 17 Apr 2020 07:35:08 +0000 (17:35 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 May 2020 13:24:39 +0000 (23:24 +1000)
commit6ae8aedf8fa932541f48a85219d75ca041c22080
tree63dee15068daf882e939e73925af8a568f88a77d
parent718d249aeadff058f79c2e6b25212dd45bd711ae
powerpc/powernv/pci: Sprinkle around some WARN_ON()s

pnv_pci_ioda_configure_bus() should now only ever be called when a device is
added to the bus so add a WARN_ON() to the empty bus check. Similarly,
pnv_pci_ioda_setup_bus_PE() should only ever be called for an unconfigured PE,
so add a WARN_ON() for that case too.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200417073508.30356-5-oohall@gmail.com
arch/powerpc/platforms/powernv/pci-ioda.c