Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6919129pxb; Wed, 17 Feb 2021 18:02:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxllEfY06Q09SlQB4npYSqVaWiSRp5MkMTv0XjlLAl7XuhlIeJINzichEwEFuRaBmLMY58f X-Received: by 2002:a17:906:af41:: with SMTP id ly1mr1594415ejb.525.1613613755614; Wed, 17 Feb 2021 18:02:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613613755; cv=none; d=google.com; s=arc-20160816; b=cldj+P+MIbRDbFlgbjGl1yhXjEYYAJS7E4OKJ0w/MuGeRvRqp2XEGNz5Wl9nzQSzod lx1nQtouBnHCtqFXmJmU6UZuLijjVMq50KPlofqLFV8kbcocJ7mCtTeicwDukvSx3MVT VJCHnbPx3PbdQZ5kaq3nnU76t5uS2Px30NvOafmVqDU7A26o0DfKgqOq4Ti7GdA0e2gn jujms0E1zh7NNXXtXA53CVcUOIUDAqNSGRdFZ5i2yNAAyYw0e3WQcTgaVwUzA/QGSx2/ HlhEynjv0ioy1lG7cRLsCwBJEmip4wXlJseR/cBek9rWxSrcAuawB23mjfZB6FQkfODf Jd7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=YZYQMm57Fv4EFKstruSJa6i7mCgo3eCEf5swT5xmKoY=; b=ocq2WXKtpB9FkoXENZDFW0q+BC0kn+ydNCD+uFPCt/wKOULJ4dW0B/N2oaU3gG88Lg QIEr+t0i821ip5eSJP5GKdeyr1fZRgRtV4laiR6GgEJZ0oT52xwJLUP+xMNvBSzEhwuF FZpfiIF6XoOXetY8gm7vB1j8m753To8YcCxNcnbrq/wZ8rgZzNiqM6VS44lqRxL2utfh Jq7QzXE+xBV5cvBnng88AarzfViFN0/HUujkiJEGGBw2PODJQ7l7TPejXeNnI0OUh1FD KjgG3V6pI4OI3mcvqcxQYcof9tbk7U31lHEtO/pobnViAbqugWk1xzK9yzh1zQDib9Sd EEeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=eojwOA9J; 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 bs1si2812333edb.502.2021.02.17.18.02.11; Wed, 17 Feb 2021 18:02:35 -0800 (PST) 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=eojwOA9J; 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 S229885AbhBRCAY (ORCPT + 99 others); Wed, 17 Feb 2021 21:00:24 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:50207 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229553AbhBRCAW (ORCPT ); Wed, 17 Feb 2021 21:00:22 -0500 X-UUID: 8cd2c95e1bff40d0aedca9387197c08c-20210218 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=YZYQMm57Fv4EFKstruSJa6i7mCgo3eCEf5swT5xmKoY=; b=eojwOA9Ja6Uo/icsbfNJC7/b70CfIQMW2Q9KvHOuxPDP9CTxcNfxkTTCp9ZlvdVCgLhNc7jaIM0yo61gceXaR01ifpyMRQmF6Yz+QQQZgnCoUMqjnoK2dWJ1TBViF6vESnLfwznw9wME5sDqu9ZVRhThWgZxrZThSZeoaCBxSQ0=; X-UUID: 8cd2c95e1bff40d0aedca9387197c08c-20210218 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 953206165; Thu, 18 Feb 2021 09:59:35 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 18 Feb 2021 09:59:33 +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; Thu, 18 Feb 2021 09:59:33 +0800 Message-ID: <1613613573.10714.27.camel@mtksdaap41> Subject: Re: [PATCH v6 10/22] clk: mediatek: Add MT8192 basic clocks support From: Weiyi Lu To: Matthias Brugger CC: Rob Herring , Stephen Boyd , "Nicolas Boichat" , , , , , , Date: Thu, 18 Feb 2021 09:59:33 +0800 In-Reply-To: References: <1608642587-15634-1-git-send-email-weiyi.lu@mediatek.com> <1608642587-15634-11-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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDIxLTAyLTEwIGF0IDEzOjQ2ICswMTAwLCBNYXR0aGlhcyBCcnVnZ2VyIHdyb3Rl Og0KPiANCj4gT24gMjIvMTIvMjAyMCAxNDowOSwgV2VpeWkgTHUgd3JvdGU6DQo+ID4gQWRkIE1U ODE5MiBiYXNpYyBjbG9jay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