Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4266320pxk; Tue, 29 Sep 2020 20:41:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpWSaG/OMmYFBU2C89Rx3ACgYYk9+4WJ+guJOhHp1JiR5ptc2h3Jy1oj2ebuv5D16MUbOo X-Received: by 2002:a17:906:c447:: with SMTP id ck7mr809119ejb.358.1601437272580; Tue, 29 Sep 2020 20:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601437272; cv=none; d=google.com; s=arc-20160816; b=Ca1esL5+S7cu4r00Kr/bHfuYNwCuQOWsqIdak0vg2tIfDZYjAWjqwBQt+dCOvZ9qd5 CWjv6iToOil7QhmDTEQ6m6Y9zadopdCfqBJJHwo0EHs87cdwH62LakJr0jfBeYqNzSxw fi3a9DBGobPEiEySHM/BJtVT58B9UL9kCuhuWRmZqEkQTZkc+isDDaebyu/Ku/p18EIF 070uvgZKYQzVnJMIYDxVpmir4fLAyBfl0Ke7kxdXuJlfNCSnNOLrfPcx2mMz5ZJa/BzD 2q6QfeLHOugUgUzfONvbRa0eScRNqxFC/JQsGhv/GUyf50QVkCP/XDv9whwD6ixy+gdg XHOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=nFjY+65HkqTIZS8cgP/4xc/0uFaZraXhLQV67OqTdbo=; b=Bm8XP8wUi/p1Wabc1BjvvO5dgsLjewnf1g9jVPsKe9WvoFxVtUNaYf1wD2Fl/cpO04 xu56SSFsbpBuHcCqm0DMRpGUPtEgz3ebcXPKnNV52Klpfflc9yBr7X4fXXqs9oDoiqFh RZl9jxxnApvtgdEO5Ihwo+MvcgUeULeRbAzuoYjbSMO0BBOQvcoLokk5Kq8c2RXUMmQV TweGitMBq+VdCAYIjU2bJATijiyhOuAOPaZMl1RcLTCBGqrkqXjnWOydjrWDnmrU00YM j0jL192GDr2u2rCG8BubsrdKeWazMDSv5KR49F1BEln/mnWOPUpUHqbvoYS/fiuParAS rTHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="jLzGBIU/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox9si327925ejb.97.2020.09.29.20.40.43; Tue, 29 Sep 2020 20:41:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="jLzGBIU/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727982AbgI3Dh0 (ORCPT + 99 others); Tue, 29 Sep 2020 23:37:26 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:42652 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725320AbgI3Dh0 (ORCPT ); Tue, 29 Sep 2020 23:37:26 -0400 X-UUID: fcb3a0e8fcff4d4ea64a39c99de5a5b7-20200930 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=nFjY+65HkqTIZS8cgP/4xc/0uFaZraXhLQV67OqTdbo=; b=jLzGBIU/L7LxLBmXWaLGR2ayRZugR9e0ab3xyA5D9N2DlC+m38PdbbP2GCwMlN/Fb4ubVyrgmX3c8dAybi3aHg2Tp670nrUo+Pmx2uu90Bq3pWxRJ7XnUde3TLrDgb5w/smviMP3LgAyjaKvmZf3VFZB29AO8LJAfbE6UIwHpOQ=; X-UUID: fcb3a0e8fcff4d4ea64a39c99de5a5b7-20200930 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1300487384; Wed, 30 Sep 2020 11:37:20 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 30 Sep 2020 11:37:15 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 30 Sep 2020 11:37:19 +0800 Message-ID: <1601437039.28469.3.camel@mtksdaap41> Subject: Re: [PATCH v17 06/12] soc: mediatek: Add support for hierarchical scpsys device node From: Weiyi Lu To: Nicolas Boichat CC: Enric Balletbo Serra , Matthias Brugger , Rob Herring , Sascha Hauer , James Liao , Fan Chen , linux-arm Mailing List , lkml , Devicetree List , "moderated list:ARM/Mediatek SoC support" , srv_heupstream Date: Wed, 30 Sep 2020 11:37:19 +0800 In-Reply-To: References: <1596705715-15320-1-git-send-email-weiyi.lu@mediatek.com> <1596705715-15320-7-git-send-email-weiyi.lu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIwLTA5LTI4IGF0IDE1OjE0ICswODAwLCBOaWNvbGFzIEJvaWNoYXQgd3JvdGU6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