Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp997683ybh; Wed, 22 Jul 2020 19:59:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx7VNcODQ8eOO5A1CCQGJJZ/2GLmKCN0i+GD2zzcPBDv0M7NnzLyE2nHpcny/OUgq1rxZ3 X-Received: by 2002:a17:906:87c8:: with SMTP id zb8mr2361363ejb.35.1595473160453; Wed, 22 Jul 2020 19:59:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595473160; cv=none; d=google.com; s=arc-20160816; b=I88+qYp1eM/QlfgbOmnZGePUZOViaUo3cEN/qfy49loogn2pVRARFqdZiCYRk8A2qx 7SBi9Iuu15MgvQA2kfxnx7fU3QEBMU4FDwejE7i4/QJdkNb77b1xQ2xZ8QRjaSR3oiUC lx/SxGCpN2UuO3AeL8G9oGP2cetn9e8/fgrJghP2P6peUBlWPOiVB5iMuCWObl7tLuZ6 XHpdXsvBMYg0490gtxzNrWQonnMBRfXqHLguuRcBbr8kmLhKDxx0soMlgmqo3Km0aWG3 UEutdvBIpXylY/TXyZZpRchh/WxRPPJfrnNAYy5aXu613AbFiffwOrrTyZNoG6wyc+ed NobQ== 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=WYDT42K+eq1n1qjiZfhiWIQP4kra/i2foem6eG/vJw8=; b=X/14QnwqQheEjhTWA58RcYo5B4qMqtOMGw2l1skUQ2hWy9B5uYGlompFgT4IoRHJV6 CEbbBv+SA8v+Sd4E1GyQwBdlfN9IPp+D7zqgr7tpiVagAvXoW6V2p+jJ+0KomFFgMTeT o+mwmec4tNIRthvAb+dDQhYkfQMPYQgp4qnSbPtLjj8HtegiZb5lI9kPA6Zv0VYaxvHS tHHSLCsKa5sfbqJeyRCiw7P7ND5JlO9sQhjpdUMlLZ674RfngV4Jm8diy+gvd7nbaSdT AFMHnntn4GtAORqoWVO5kgrh9AqRXSO6B50PB+BKN381DsfyszGzTwycPw39QQoHA+ap 0X+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ntRWEgnE; 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 r12si1177621edo.320.2020.07.22.19.58.57; Wed, 22 Jul 2020 19:59:20 -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=ntRWEgnE; 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 S2387488AbgGWC5e (ORCPT + 99 others); Wed, 22 Jul 2020 22:57:34 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:54826 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729401AbgGWC5d (ORCPT ); Wed, 22 Jul 2020 22:57:33 -0400 X-UUID: 0cfb7708c0c342ecad195c49272d0e7c-20200723 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=WYDT42K+eq1n1qjiZfhiWIQP4kra/i2foem6eG/vJw8=; b=ntRWEgnEt6sFOWGQluImQ8Cg78J98/5814elObibCbBHvut8WppImk0+MIMAXHQST2bHgMkrYFDl2K3HvaHkrAS0UZ4J8Rn64iU3jbtEL9KkgdsBPBtAXPGqO7Z3+UiBxxA5KFSLFHSxG7m+DwLc4gjgp1JlzShucFLIJdmQBkg=; X-UUID: 0cfb7708c0c342ecad195c49272d0e7c-20200723 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 560982418; Thu, 23 Jul 2020 10:57:25 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 23 Jul 2020 10:57:23 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 23 Jul 2020 10:57:23 +0800 Message-ID: <1595473043.5077.8.camel@mtksdaap41> Subject: Re: [PATCH 3/4] clk: mediatek: Add configurable enable control to mtk_pll_data From: Weiyi Lu To: Nicolas Boichat CC: Matthias Brugger , Rob Herring , Stephen Boyd , James Liao , linux-arm Mailing List , lkml , "moderated list:ARM/Mediatek SoC support" , , srv_heupstream , Wendell Lin , Ikjoon Jang Date: Thu, 23 Jul 2020 10:57:23 +0800 In-Reply-To: References: <1595400601-26220-1-git-send-email-weiyi.lu@mediatek.com> <1595400601-26220-4-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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDIwLTA3LTIyIGF0IDE2OjUxICswODAwLCBOaWNvbGFzIEJvaWNoYXQgd3JvdGU6 DQo+IE9uIFdlZCwgSnVsIDIyLCAyMDIwIG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