[v3] platform/astbmc: Do not delete compatible property

Submitted by Vasant Hegde on April 2, 2017, 9 a.m.

Details

Message ID 20170402090040.18931-1-hegdevasant@linux.vnet.ibm.com
State New
Headers show

Commit Message

Vasant Hegde April 2, 2017, 9 a.m.
P9 onwards OPAL is building device tree for BMC based system using
HDAT. We are populating bmc/compatible node with bmc version. Hence
do not delete this property.

CC: Jeremy Kerr <jk@ozlabs.org>
CC: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
---
 platforms/astbmc/common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Vasant Hegde May 25, 2017, 6:25 a.m.
On 04/02/2017 02:30 PM, Vasant Hegde wrote:
> P9 onwards OPAL is building device tree for BMC based system using
> HDAT. We are populating bmc/compatible node with bmc version. Hence
> do not delete this property.
>

Stewart,

Can you take a look of this patch?

-Vasant

Patch hide | download patch | download mbox

diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index 6f29e61..3fad2d4 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -336,7 +336,8 @@  static void astbmc_fixup_dt(void)
 	   make sure we have one. */
 	astbmc_fixup_dt_system_id();
 
-	astbmc_fixup_bmc_sensors();
+	if (proc_gen == proc_gen_p8)
+		astbmc_fixup_bmc_sensors();
 }
 
 static void astbmc_fixup_psi_bar(void)