]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Fix PE location code
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 2 Dec 2015 05:25:32 +0000 (16:25 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 27 Jan 2016 00:37:37 +0000 (11:37 +1100)
commit59a626c225fb60f52696f58bbf3c883c8e1e2acf
tree84fa1cbcd9887d98141771e618867a8ae5f6717f
parent6c4c554e77bfdec50dcd2484fb958658fdce0685
powerpc/eeh: Fix PE location code

In eeh_pe_loc_get(), the PE location code is retrieved from the
"ibm,loc-code" property of the device node for the bridge of the
PE's primary bus. It's not correct because the property indicates
the parent PE's location code.

This reads the correct PE location code from "ibm,io-base-loc-code"
or "ibm,slot-location-code" property of PE parent bus's device node.

Cc: stable@vger.kernel.org # v3.16+
Fixes: 72862d1a5487 ("powerpc/eeh: Dump PE location code")
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Tested-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_pe.c