From patchwork Tue Mar 14 05:01:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasant Hegde X-Patchwork-Id: 738551 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 3vj2fH1sHKz9s2s for ; Tue, 14 Mar 2017 16:02:15 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3vj2fH0nRlzDqXy for ; Tue, 14 Mar 2017 16:02:15 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 3vj2fC0BBPzDqC0 for ; Tue, 14 Mar 2017 16:02:10 +1100 (AEDT) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v2E4wsCZ147110 for ; Tue, 14 Mar 2017 01:02:07 -0400 Received: from e28smtp04.in.ibm.com (e28smtp04.in.ibm.com [125.16.236.4]) by mx0b-001b2d01.pphosted.com with ESMTP id 295vx6t6uj-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 14 Mar 2017 01:02:07 -0400 Received: from localhost by e28smtp04.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 14 Mar 2017 10:32:04 +0530 Received: from d28relay05.in.ibm.com (9.184.220.62) by e28smtp04.in.ibm.com (192.168.1.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 14 Mar 2017 10:32:02 +0530 Received: from d28av06.in.ibm.com (d28av06.in.ibm.com [9.184.220.48]) by d28relay05.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v2E51v9412124326 for ; Tue, 14 Mar 2017 10:31:57 +0530 Received: from d28av06.in.ibm.com (localhost [127.0.0.1]) by d28av06.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v2E5202r028257 for ; Tue, 14 Mar 2017 10:32:01 +0530 Received: from hegdevasant.in.ibm.com ([9.109.223.33]) by d28av06.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id v2E5203Z028254; Tue, 14 Mar 2017 10:32:00 +0530 From: Vasant Hegde To: skiboot@lists.ozlabs.org Date: Tue, 14 Mar 2017 10:31:55 +0530 X-Mailer: git-send-email 2.5.5 X-TM-AS-MML: disable x-cbid: 17031405-0012-0000-0000-000003CA3EAC X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17031405-0013-0000-0000-00001B4FBFD2 Message-Id: <1489467718-10273-1-git-send-email-hegdevasant@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-03-14_02:, , 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-1703140040 Subject: [Skiboot] [PATCH v3 1/4] 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 512784f..362b7b2 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); }