Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1398659ybv; Thu, 13 Feb 2020 22:35:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwePYmUce6Q9QBZzkbCYMUrRTv1pJ5xOuNRiFhbrieyDGRLoysbLiiunIRw9EsUYyS526TR X-Received: by 2002:a05:6830:1e2d:: with SMTP id t13mr1112114otr.128.1581662129032; Thu, 13 Feb 2020 22:35:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581662129; cv=none; d=google.com; s=arc-20160816; b=s42T+B/o77r57UbrCE+Ol5z5u2d2QW+ER1KIwpcAsK8/X2YwE7MKhXrpd4fnmV4g6t oyQyCr6RYq6h1Hd6bT9Hobz1hGg4LO7TfcvDBHBsD3Q1Z1TxemBFy5pDuae+j54yuspB DZCUcF3SpJA/AkAJDlnR7wHjJgOK6E/Vs2Uxggh37A0f1YkMt7T/AhuaqueQWHB0YOPL jqF8TJCmciRHGqLmgGop99/tBQI20amEAJ3XmdfOoSnTSJ3izdpXAiSbB5ZSjkDQdnk6 QPreCxoNHoDRJLJUCcgn+2RXFtiENZXyDAQd/3z4n62V6sUraZzMFq19mDCpe68ZuVD6 T7Yw== 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=eZIS3HGY7yzUKO7G7Fmgxk+I91N2d8+i9n/o7GCI6zk=; b=tDYMZQQkXWH3fdfGY6XCzr6bJVvZ+jFn5mBABelRAL+vhPUjqQfXUtWkCDgG0rtzgr eNQ+V2A2FrRIg2ELxcLMvZl2IkrWKOIoOd18D1sH7LmwMjVVO6tqV9g8j2Rio3bz9yr/ f29qy5OA8b/nrLby7sCX0Gl3iGTauP7EMSAG3hlyJRjTmnCa3AVNdGOzU3M7K4ylbPLc iI8fHhsxQFqA78hoDtpZMIXkFMdRjsi0Vos510a0fg8qemsKU7gyIzZoocrhev+JNP+W bzsVEyaKRJtMC3Ssf/ecAXk+kV7AmsE2bE8CeaAiYbadTLfSjC5tVHAhODcTzOetAAQZ hChg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Grr+iT7D; 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 w9si2176534otl.138.2020.02.13.22.35.17; Thu, 13 Feb 2020 22:35:29 -0800 (PST) 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=Grr+iT7D; 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 S1728807AbgBNGdw (ORCPT + 99 others); Fri, 14 Feb 2020 01:33:52 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:38298 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728422AbgBNGdw (ORCPT ); Fri, 14 Feb 2020 01:33:52 -0500 X-UUID: 9df69abc7c95449992cc76b8e1de34b0-20200214 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=eZIS3HGY7yzUKO7G7Fmgxk+I91N2d8+i9n/o7GCI6zk=; b=Grr+iT7DhXyh38TW+Pb6u6HxxZF9jC7K62KE+wfD88N90Jh0TQCsY2A856RVtbsC3xLKRDMqBYwO0rZWQllvB8FbXKnyIFbvPD4veH6O2+x1fOiJbTu8fXRPkcx5NexPlPST7cMgqTmZm8ytjX1CamdBP67Ki5nc5D9y8sEiWaM=; X-UUID: 9df69abc7c95449992cc76b8e1de34b0-20200214 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 254469125; Fri, 14 Feb 2020 14:33:41 +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, 14 Feb 2020 14:32:56 +0800 Received: from [172.21.77.4] (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, 14 Feb 2020 14:33:10 +0800 Message-ID: <1581662020.19424.15.camel@mtksdaap41> Subject: Re: [PATCH v11 06/10] soc: mediatek: Add subsys clock control for bus protection From: Weiyi Lu To: Matthias Brugger CC: Rob Herring , Nicolas Boichat , , James Liao , , Fan Chen , , Sascha Hauer , Date: Fri, 14 Feb 2020 14:33:40 +0800 In-Reply-To: References: <1576813564-23927-1-git-send-email-weiyi.lu@mediatek.com> <1576813564-23927-7-git-send-email-weiyi.lu@mediatek.com> <1581476141.22901.34.camel@mtksdaap41> <1581561975.19424.13.camel@mtksdaap41> 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 T24gVGh1LCAyMDIwLTAyLTEzIGF0IDEzOjU2ICswMTAwLCBNYXR0aGlhcyBCcnVnZ2VyIHdyb3Rl Og0KPiANCj4gT24gMT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