Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1264006ybb; Wed, 1 Apr 2020 19:48:50 -0700 (PDT) X-Google-Smtp-Source: APiQypIhijZspRboyNdv9sLrYKmxqGkk5zRPTWG3ff0wscvJQQs81XlgMV4XZMuGgWb1nAPLfy7X X-Received: by 2002:a05:6830:23b6:: with SMTP id m22mr715201ots.225.1585795730339; Wed, 01 Apr 2020 19:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585795730; cv=none; d=google.com; s=arc-20160816; b=lNP0YeQgVbIA45gYbv+puNd1WcGUZawqdv2U7hWwoSsF1ztjz41TTCSGnlPocbe/9h UrbB1KVlUSBeStAenkfUXdEdbG++iJLCUENiNB8hxzt/MX1zLc/JIsMdGCpPYowSo1sn 1C73TQsKQ6QLnUfsusgbTZo6KAp+OGejnMSBMX/YC1Ch5NIGyg0JS/zeO8fWVBJHeFY0 uykHO2YMREjzT5ZBmw9PN2vF3/nA7DwyFbI3sDeMVozx5gNR+KKXfKov2WlSxZnvRi/1 Aa8ve2OlyJdiFc5JD0gwDMNZk7s71Shj/hoKPMbeJm4snQylqgZ+GyJWw3KsqkvGvpRX XJIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=q5OcvTavleQ4cdKM7PmbLnQcICB4TAgz/7dlDG7XNLo=; b=kKiOmTGAQuqgcZ8E/qSjInX+3H3VeZytt+gzmc+5pmrMzlaKw8NjbUklj29co9sOom Ubin1uAyvkSRDSfWLRw0JYs/5ABcXrFb4aQrJ17fjP6F2VMIUdmKv6GMedlJg7M2+q0G A2ZwxECBPK6ZdayS2jWQtOo+qYH0VbxjeNKXQwN3MmjbWAek5R9DJoCKgT2hHwrSpgUa aIO1bhQBTvXW5oWY2pHsubOfX2QhWTu+8rmkqLFO7ak+mDU+syvnli7wqjEXzfOVFcN2 kMryBjgKBVFE6eQ0Xag1gP2zgwlBRH3LNAqOPQR1yug835+sBEuyPtly5wV4nAefPFMc bgsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="J61Fw/AV"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 6si1632098otv.76.2020.04.01.19.48.37; Wed, 01 Apr 2020 19:48:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="J61Fw/AV"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2387450AbgDBCsQ (ORCPT + 99 others); Wed, 1 Apr 2020 22:48:16 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:46459 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727135AbgDBCsQ (ORCPT ); Wed, 1 Apr 2020 22:48:16 -0400 X-UUID: 45ca09f1aaf14e25843f1fd7bb8bff83-20200402 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=q5OcvTavleQ4cdKM7PmbLnQcICB4TAgz/7dlDG7XNLo=; b=J61Fw/AV3xHB+rHftvgHnAyoQPbGW1HHBKWhsZ1C+kdF3IaIEOVtX/aPmVtycSxGE3YVD5Zubpx2QyQmtxmfHrzohR+LxgbU1KkhSS7itHwo3ifQYdRqVN53ZI89qOKlD8qt4D92fNfKR4AVZsOQyxgG2YWy2Vsdyu2WHhk2RxU=; X-UUID: 45ca09f1aaf14e25843f1fd7bb8bff83-20200402 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1585347623; Thu, 02 Apr 2020 10:48:08 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 2 Apr 2020 10:48:06 +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; Thu, 2 Apr 2020 10:48:06 +0800 Message-ID: <1585795687.27527.13.camel@mtksdaap41> Subject: Re: [PATCH V4 09/13] interconnect: mediatek: Add mt8183 interconnect provider driver From: Henry Chen To: Georgi Djakov CC: Rob Herring , Matthias Brugger , Viresh Kumar , Stephen Boyd , Ryan Case , Mark Brown , Mark Rutland , Nicolas Boichat , Fan Chen , James Liao , Arvin Wang , "Mike Turquette" , , , , , , Date: Thu, 2 Apr 2020 10:48:07 +0800 In-Reply-To: <2007da85-6ab8-225b-0ac7-b38bc9a590d2@linaro.org> References: <1584092066-24425-1-git-send-email-henryc.chen@mediatek.com> <1584092066-24425-10-git-send-email-henryc.chen@mediatek.com> <2007da85-6ab8-225b-0ac7-b38bc9a590d2@linaro.org> 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org S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