From: Gavin Shan Date: Wed, 11 Jun 2014 08:26:44 +0000 (+1000) Subject: powerpc/eeh: Dump PE location code X-Git-Tag: omap-for-v3.16/fixes-against-rc1~30^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=357b2f3dd9b7e220ddbaef5bcc108f0359dc0fcf;p=pandora-kernel.git powerpc/eeh: Dump PE location code As Ben suggested, it's meaningful to dump PE's location code for site engineers when hitting EEH errors. The patch introduces function eeh_pe_loc_get() to retireve the location code from dev-tree so that we can output it when hitting EEH errors. If primary PE bus is root bus, the PHB's dev-node would be tried prior to root port's dev-node. Otherwise, the upstream bridge's dev-node of the primary PE bus will be check for the location code directly. Signed-off-by: Gavin Shan Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed