OSDN Git Service

powerpc/eeh: Remove PHB check in probe
authorOliver O'Halloran <oohall@gmail.com>
Fri, 6 Mar 2020 07:39:02 +0000 (18:39 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Mar 2020 01:09:39 +0000 (12:09 +1100)
commit3ff32efb62b624e4c07d002ffb294d209689bedd
tree008b61c7c09881b3c208291a59d5076fc3a87525
parenta4b4f61db8ccbd2744fc00bed3bdd912278f4595
powerpc/eeh: Remove PHB check in probe

This check for a missing PHB has existing in various forms since the
initial PPC64 port was upstreamed in 2002. The idea seems to be that we
need to guard against creating pci-specific data structures for the non-pci
children of a PCI device tree node (e.g. USB devices). However, we only
create pci_dn structures for DT nodes that correspond to PCI devices so
there's not much point in doing this check in the eeh_probe path.

Reviewed-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200306073904.4737-4-oohall@gmail.com
arch/powerpc/kernel/eeh.c