Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp42561ybv; Wed, 12 Feb 2020 18:46:54 -0800 (PST) X-Google-Smtp-Source: APXvYqx5w1FNrksGm1NQb7Om9KMP5xGCOt5Y5cWYP9Fn+9GDr4hi7PszY8u/U6TorawGV9PRu4ZS X-Received: by 2002:a9d:4c8c:: with SMTP id m12mr12120884otf.312.1581562014646; Wed, 12 Feb 2020 18:46:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581562014; cv=none; d=google.com; s=arc-20160816; b=JsZ2Fe6NlRjytZnF1qooh/rUbwN3CADFCTsfczz+EpdhONJaVuNUEia11WPOEZvYlB RsfNJ6ADly5xDtAoOw9l4S/p7+60oBiYYWvjGjiT3gq2rfJiTDn1GoLgAOgPMDuhPeVm l1mFz00wLypFW7M3D74EKeTjcNM6lLB0t/Ko7d6BQFLyBhVVD4qEfVYSLSczLXbKfLwB 11aXoIjyzlk7GV4L5FvH82aLc7qPTFgfRN20lKReGcXo7fkTTRckNQPODSjIO3/7byQo /IHpNSa+b1iJ5bPNGkQVZgVg2B1dj1KJu7v1suqICR2dUk5+Aw4UO+hL/MrakJTrpki1 R3Hg== 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=C9+yqsvdFsqFXvESy2lGJ5+DHKFoCfZq+QLRoJgD8rc=; b=dxJqtK2yxWSIp3kPiPCH+DlszdDddIK09W0gMtKeUVq9ZPoonUIbJhyTBSDalsg3Kb kRQ7roV4WBgx7LC7ikj8HKt4rUXe5gZDYN2YonVAH7MKpMSUmtBcZhWESMS374hhlTd9 rxNg+a5CuOHVIeISQPGIig4qZgJdMDUYAzFttURfDRQLcG9Wjb3daBqMQk4LQ1Gpkmab USHiXZI1XSb0e/1tkWpGgLdTFHzPwpSm1aH6hCwEK2WjHSLgvWG2I5jXEw902ghA3uvT GfsPSUmlj/sQ+wHC1PuVzmqHTQOkxpLDsm8UmV5tuXyfzNlgW2fAXk2XTCSvcYppzhUw 2Seg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="N7/IgF1Y"; 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 8si371300ota.266.2020.02.12.18.46.37; Wed, 12 Feb 2020 18:46:54 -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="N7/IgF1Y"; 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 S1729505AbgBMCqd (ORCPT + 99 others); Wed, 12 Feb 2020 21:46:33 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:31969 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729407AbgBMCqd (ORCPT ); Wed, 12 Feb 2020 21:46:33 -0500 X-UUID: 5ddd09b6593a46a5a6492c0bc0c47fbb-20200213 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=C9+yqsvdFsqFXvESy2lGJ5+DHKFoCfZq+QLRoJgD8rc=; b=N7/IgF1YFkjYNajIuuCTmN3f6wOFVXdBS7aI9LOO0A4vWTpJK3CSU7Oh8vkPLDCGaEGBwiZxdLJFXRdYvK6t77t2zekqrLnUnZTM/XCxkfVZwXMc4saWpD/C7dhkSq0QjW/K/bC/LYdWXmvbq1XA3K/0usmkZNLGuiDEwbXXVA8=; X-UUID: 5ddd09b6593a46a5a6492c0bc0c47fbb-20200213 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 36764733; Thu, 13 Feb 2020 10:46:22 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 13 Feb 2020 10:43:52 +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.1395.4 via Frontend Transport; Thu, 13 Feb 2020 10:45:11 +0800 Message-ID: <1581561975.19424.13.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: Thu, 13 Feb 2020 10:46:15 +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> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 3DDF97B86FF812B1846294D7FBABACC30917C03E4D2CC14B5A4F10AAB4F50F512000:8 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 T24gV2VkLCAyMDIwLTAyLTEyIGF0IDEyOjAyICsw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