Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp190777pxa; Mon, 10 Aug 2020 23:45:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDqWHHneqKcpIIlkxiPFBTVfs6E4+IB7pgdQWKVlgSfeG0TsNrrBuLSTsbjEuREyGVneBr X-Received: by 2002:a05:6402:206a:: with SMTP id bd10mr24021756edb.321.1597128342190; Mon, 10 Aug 2020 23:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597128342; cv=none; d=google.com; s=arc-20160816; b=pCg/6g0sLiBSZfgxhU2DRojVq/1Wy7Z79Z7FhKZhUgl+0ku+X0M6+tlIAKIURmHYXs TuUCjY9WnOcysqgkBKrAggphtghe7ckoU6kgsgaeE/BoHKHWZPTi3qSpJE7z+oYcsHVO u99AZdJYGT82a8oX5+koluu3/hblSLFndB6nDkpOf7IQYw2ld8bqUv/Zk2umTUFzs7t7 gnXN7vQyYeSbc9WUpXMUSyQfUuqMiJ8WRU/66TsahrAaPaW7LbKRi4Ba9VC1t0DlEaQs YHIE3u/lP+dy1w9SxqCUonWyxCiot00gZNsKJlQglKWJoteBxC4OaiUJf+VSFgPodcjY cWQQ== 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=IwFjIoBMs4hG3mm1jnyEzvP2yfokZU6BNDof81MOmbQ=; b=XX4SR4AvCm8HyL+TMvXOydjuu8ZjWmmqW3RdTUess5Rummq8CPwyLFJelFoyHDbDc4 x9sRFGlREplLvVfF63ltpv+Wm1QZpne17FDlPcqtiqOY45tMnsWmLU7IsDPwasGE+n+h nfGGgDM/MmHDpaw3swAJdRKSB/IJKQkTFsozQNSR3FVbVfq3Vf4eIzEkuz6T0XghERRi j1+yqOmfLlGQRcATF/KwF/h5KgfEAB0l7A5mXsxSRRKWRqGtUk3t9raiUxBnEwAdDEP1 YVFMDmk2KN9dUHMTaBJkpW7UloHDPG/+eF9nRK35fT/XqMfkRLvYQuZv+m/8P1ZZTnNv 8kQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="Rm/6FLc0"; 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 a22si11555552edy.168.2020.08.10.23.45.18; Mon, 10 Aug 2020 23:45:42 -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="Rm/6FLc0"; 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 S1728237AbgHKGnk (ORCPT + 99 others); Tue, 11 Aug 2020 02:43:40 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:55389 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727902AbgHKGnj (ORCPT ); Tue, 11 Aug 2020 02:43:39 -0400 X-UUID: b8f27bd5428248f6b1bf8bb726c852dd-20200811 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=IwFjIoBMs4hG3mm1jnyEzvP2yfokZU6BNDof81MOmbQ=; b=Rm/6FLc06lk0ABvWubi2UgHn1uwVkJE4twzSHJ9hFVHhG805KyBmqp0cS2HR/gwbiZe1zgGmExNIWa6HjsZyxsZgwS/jbDLJGrO1rNQNk/lA93yyM2M8Y3pFhwsXCCMGFLUOHh0ItU9bBQu+idtw0q3yL+MOpu9MdTNoS2w3mZs=; X-UUID: b8f27bd5428248f6b1bf8bb726c852dd-20200811 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 806667961; Tue, 11 Aug 2020 14:43:33 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 11 Aug 2020 14:43:24 +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; Tue, 11 Aug 2020 14:43:24 +0800 Message-ID: <1597128205.20627.14.camel@mtksdaap41> Subject: Re: [PATCH v2 4/5] clk: mediatek: Add configurable enable control to mtk_pll_data From: Weiyi Lu To: Nicolas Boichat CC: Rob Herring , srv_heupstream , James Liao , Stephen Boyd , lkml , "moderated list:ARM/Mediatek SoC support" , Matthias Brugger , Wendell Lin , , linux-arm Mailing List Date: Tue, 11 Aug 2020 14:43:25 +0800 In-Reply-To: References: <1596012277-8448-1-git-send-email-weiyi.lu@mediatek.com> <1596012277-8448-5-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-TM-SNTS-SMTP: E7F37730596799C3F49018D181AD9A3F682732CFE65456F2E376CEB7F0DDFEE32000: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 T24gV2VkLCAyMDIwLTA3LTI5IGF0IDE4OjU4IC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