Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1514420ybh; Fri, 13 Mar 2020 02:35:27 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu/HPz2qVGAFimu5Fs90WN1HYEfalIba4c4lCRvDfADjjKIYBVOmrfiG51X8Y5i1q/o5i53 X-Received: by 2002:aca:5ed4:: with SMTP id s203mr6338448oib.102.1584092126991; Fri, 13 Mar 2020 02:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584092126; cv=none; d=google.com; s=arc-20160816; b=IaHkFEz4cJbpXkNVoELbyv1VHZSX+tYh1slenaJB05tqNazXQZ4eLqhh0chyvHTzE8 6yi9+CrkNMXhjDSY20ophDmti4hkaTwNIdd5ExFeSV962ppV3wIce/nXN5TLzrk3Fm8c CQAqShulG7iBJH2hz7qVV+htPr49qw+rLQdNBY3764PkyKb+ZSaxzFtT8NvHLRXqUG78 NsQTuRzzLkzA5JtJb0KzIOd2gCVgT5D5AbaQakKsiCgof88ZG53pHZqmnPiAGKqg4nyb CLdYzNv2lqNciScVnnHWe1F8YO0z3v0Nn+cSqE09zrt3jd6RKWkdjm8qluXMushFUwGm hqhg== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=nSetGGb2jD7H2Q1+b1MHx20VuqlBL37mjvVtdatOQl4=; b=PROIsOEennePz5rJdfvCq8z2YVaIe8exbVltr8DTAhdLhroCIensqnlc/sdf8lBuGW byn1gbJWUR68Q1NNAajo0YrCG4BIpcjCqELwM0mvBd50n5gteb5QhdGj4bgXVf7aBNSx fNsCTPY91bIncJz6OqgrXvQ73Is9QZDM0cuBEtHZ+fvz+1qOuhpAgd5AUn2E10N+YjL+ oYrn/1hxH+NLnb0+S7qjRIq4VVpv7KRbRkAk/eTWfb0w6bfT4NP4qUnn9zmrucCway8Y q2wRdWSre2hDfFERvlwygnqF6j4a0f3PVoP1EbCDWO4IoUtR0ePqYoZtXDaBmURWsT0s nJXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jP5O55pi; 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 l4si4354501otj.173.2020.03.13.02.35.14; Fri, 13 Mar 2020 02:35:26 -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=jP5O55pi; 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 S1726767AbgCMJep (ORCPT + 99 others); Fri, 13 Mar 2020 05:34:45 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:9371 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726216AbgCMJeo (ORCPT ); Fri, 13 Mar 2020 05:34:44 -0400 X-UUID: 3470402541e84a00987d3407b9a2a19f-20200313 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=nSetGGb2jD7H2Q1+b1MHx20VuqlBL37mjvVtdatOQl4=; b=jP5O55pigqkIRnOfQIMUjSlFvQPibZxrT6Zz+XzwU1VQIq6RM3qfITR4j9Galg8P2+MORBAira8dLalQzYJ0n7FWGXJDtziwugZhCEYfUC9YfOOMbYbwWokyZgm5M/FU3KANpvarZGTCxWC5vYbbPP8YZuNXTaaXM04zlayh95I=; X-UUID: 3470402541e84a00987d3407b9a2a19f-20200313 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 843389409; Fri, 13 Mar 2020 17:34:30 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 13 Mar 2020 17:33:33 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 13 Mar 2020 17:33:41 +0800 From: Henry Chen To: Georgi Djakov , Rob Herring , Matthias Brugger , Viresh Kumar , Stephen Boyd , Ryan Case , Mark Brown CC: Mark Rutland , Nicolas Boichat , Fan Chen , James Liao , Arvin Wang , Mike Turquette , , , , , , , Henry Chen Subject: [PATCH V4 09/13] interconnect: mediatek: Add mt8183 interconnect provider driver Date: Fri, 13 Mar 2020 17:34:22 +0800 Message-ID: <1584092066-24425-10-git-send-email-henryc.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1584092066-24425-1-git-send-email-henryc.chen@mediatek.com> References: <1584092066-24425-1-git-send-email-henryc.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 SW50cm9kdWNlIE1lZGlhdGVrIE1UODE4MyBzcGVjaWZpYyBwcm92aWRlciBkcml2ZXIgdXNpbmcg dGhlDQppbnRlcmNvbm5lY3QgZnJhbWV3b3JrLg0KDQpT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