From patchwork Sun Apr 2 09:00:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasant Hegde X-Patchwork-Id: 746134 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vwq4735dSz9s2x for ; Sun, 2 Apr 2017 19:01:59 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3vwq472HLdzDqJ8 for ; Sun, 2 Apr 2017 19:01:59 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3vwq426Ck8zDqGx for ; Sun, 2 Apr 2017 19:01:54 +1000 (AEST) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v3291ftH076792 for ; Sun, 2 Apr 2017 05:01:41 -0400 Received: from e23smtp09.au.ibm.com (e23smtp09.au.ibm.com [202.81.31.142]) by mx0a-001b2d01.pphosted.com with ESMTP id 29jrmruth0-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Sun, 02 Apr 2017 05:01:41 -0400 Received: from localhost by e23smtp09.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 2 Apr 2017 19:01:38 +1000 Received: from d23relay09.au.ibm.com (202.81.31.228) by e23smtp09.au.ibm.com (202.81.31.206) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sun, 2 Apr 2017 19:01:36 +1000 Received: from d23av06.au.ibm.com (d23av06.au.ibm.com [9.190.235.151]) by d23relay09.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v3291SxJ48037900 for ; Sun, 2 Apr 2017 19:01:36 +1000 Received: from d23av06.au.ibm.com (localhost [127.0.0.1]) by d23av06.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v32913P3013250 for ; Sun, 2 Apr 2017 19:01:04 +1000 Received: from hegdevasant.domain.name ([9.80.198.82]) by d23av06.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id v3290wBt012952; Sun, 2 Apr 2017 19:01:00 +1000 From: Vasant Hegde To: skiboot@lists.ozlabs.org Date: Sun, 2 Apr 2017 14:30:40 +0530 X-Mailer: git-send-email 2.9.3 X-TM-AS-MML: disable x-cbid: 17040209-0052-0000-0000-0000022A02A8 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17040209-0053-0000-0000-000008030030 Message-Id: <20170402090040.18931-1-hegdevasant@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-04-02_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1704020088 Subject: [Skiboot] [PATCH v3] platform/astbmc: Do not delete compatible property X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" 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 CC: Ananth N Mavinakayanahalli Signed-off-by: Vasant Hegde Acked-by: Jeremy Kerr --- platforms/astbmc/common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)