From patchwork Wed Feb 15 15:14:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasant Hegde X-Patchwork-Id: 728256 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vNjXH0NFbz9ryv for ; Thu, 16 Feb 2017 02:15:27 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3vNjXG6FRGzDqBm for ; Thu, 16 Feb 2017 02:15:26 +1100 (AEDT) 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 3vNjX94lX7zDq5x for ; Thu, 16 Feb 2017 02:15:21 +1100 (AEDT) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v1FFDf7i064896 for ; Wed, 15 Feb 2017 10:15:15 -0500 Received: from e23smtp02.au.ibm.com (e23smtp02.au.ibm.com [202.81.31.144]) by mx0a-001b2d01.pphosted.com with ESMTP id 28mq9qe745-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 15 Feb 2017 10:15:15 -0500 Received: from localhost by e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 16 Feb 2017 01:15:12 +1000 Received: from d23dlp02.au.ibm.com (202.81.31.213) by e23smtp02.au.ibm.com (202.81.31.208) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 16 Feb 2017 01:15:10 +1000 Received: from d23relay07.au.ibm.com (d23relay07.au.ibm.com [9.190.26.37]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 0D89F2BB0045 for ; Thu, 16 Feb 2017 02:15:10 +1100 (EST) Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay07.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v1FFF1tm15073324 for ; Thu, 16 Feb 2017 02:15:09 +1100 Received: from d23av03.au.ibm.com (localhost [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v1FFEblh030759 for ; Thu, 16 Feb 2017 02:14:37 +1100 Received: from hegdevasant.ibm.com ([9.80.207.102]) by d23av03.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id v1FFEYld029776; Thu, 16 Feb 2017 02:14:35 +1100 From: Vasant Hegde To: skiboot@lists.ozlabs.org Date: Wed, 15 Feb 2017 20:44:14 +0530 X-Mailer: git-send-email 2.5.5 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17021515-0004-0000-0000-000001E1102B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17021515-0005-0000-0000-000009ABF3BF Message-Id: <1487171655-23729-1-git-send-email-hegdevasant@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-02-15_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-1612050000 definitions=main-1702150146 Subject: [Skiboot] [RFC PATCH 1/2] hdat: Add 'primary' property to master chip xscom node 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" Needed for SBE communication as some of the SBE MBOX commands has to be sent to master chip SBE only. Signed-off-by: Vasant Hegde --- hdata/spira.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hdata/spira.c b/hdata/spira.c index 9ab7d35..f2e5b69 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -631,8 +631,10 @@ static void add_chiptod_node(unsigned int chip_id, int flags) dt_add_property_strings(node, "compatible", "ibm,power-chiptod", compat_str); - if (flags & CHIPTOD_ID_FLAGS_PRIMARY) + if (flags & CHIPTOD_ID_FLAGS_PRIMARY) { + dt_add_property(xscom_node, "primary", NULL, 0); dt_add_property(node, "primary", NULL, 0); + } if (flags & CHIPTOD_ID_FLAGS_SECONDARY) dt_add_property(node, "secondary", NULL, 0); }