]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv/pci: Check status of a PHB before using it
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 8 Jul 2016 06:37:17 +0000 (16:37 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 17 Jul 2016 06:42:49 +0000 (16:42 +1000)
commit8cc15350e26e2022f42187f302c5aea92bde6dcf
treed52230dd5d911385138dd03357774181de5a3c65
parentf3605eb0a94da806201ca6c2d1ba4d3d8f9a2b03
powerpc/powernv/pci: Check status of a PHB before using it

If the firmware encounters an error (internal or HW) during initialization
of a PHB, it might leave the device-node in the tree but mark it disabled
using the "status" property. We should check it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c