Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4097939pxv; Mon, 26 Jul 2021 21:30:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhAumn9rVmb0XC47/D9lbVuQFUV3fGLJQKU+S8cVochwb4chb7zGJbCtw98YW6pN8MrXnT X-Received: by 2002:aa7:d514:: with SMTP id y20mr25736387edq.371.1627360243993; Mon, 26 Jul 2021 21:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627360243; cv=none; d=google.com; s=arc-20160816; b=ieTT4papF43qSDtxSJJBAecgLJfwkEgvx8yuAmbvSpcrwzbgRtLM/IUHXQhwKrtym6 fBXWP4Ro+dTnkYJ5BgCGn1oXog9D+tLpamosUFIJA8zUpBo2NsZellrA8WYH5yx5O59D yd6WtBl5JkblC3wTiAi3ID2Hbc3OQNQRnJ+Jfer/HWOomieIfsbv1kpxNh0cyqzpTsGV SrTRNOIr2WsOxXEAQPKj82aAm2EonTUf2pmvZKBD4+0WZXj3eowboNzRXjlu57G2j5jF fLsTjREuBLELDMz1osEDutYqegslzXXR6FViy+aF1tDQSj3CkZoW93SZ6U/Sw2VeChvH +NNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=sdwvl61i5SSr72A1wNEXSigDuGMlyueFRl9jC5UcLTM=; b=k9yOQMb6Aasmzdugx3Xnm08PHyDS295PlReL2lCmREIStHaXqdaiC42ev29DDbFXfy 1joS3gS5c0ZgR7CxkciIo1PS5brRpjuFpinzFe9syTuCuFoB71moT2+e+9VYHeYSa27u ks7xTdTbjJN5ZYagPni++D2B7pkLmzDcvaTSsjeUHNrNjjWKRQ31q9NBs/XdlA/foCqX PFafcLvKM3TZvADNeywQFrAPeMTVyVelq76mWImoL/DqGIMgtx83RA9qgQWg89aL5DFT VRxycRTB8R+HzXwG6Gg1T0nSYWHZV2LPxEX154GDddvDp7J1w2bbsMIMAhUhEK/WYYHN ntZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fiCAH13Q; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de42si1722132ejc.471.2021.07.26.21.30.21; Mon, 26 Jul 2021 21:30:43 -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=@chromium.org header.s=google header.b=fiCAH13Q; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234865AbhG0E1S (ORCPT + 99 others); Tue, 27 Jul 2021 00:27:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233496AbhG0E1Q (ORCPT ); Tue, 27 Jul 2021 00:27:16 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C912C061757 for ; Mon, 26 Jul 2021 21:27:16 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id b1-20020a17090a8001b029017700de3903so1878479pjn.1 for ; Mon, 26 Jul 2021 21:27:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sdwvl61i5SSr72A1wNEXSigDuGMlyueFRl9jC5UcLTM=; b=fiCAH13QQvfQEiBIFIxPs62RPX5gqegSZMdKrGdTslIr/gcABKuuikkT5JCWwZp+T9 KqYRzosKgBxoJp3aXqSuElWpqpOERGxmphtHmJGaWky9MseC/DxrXFMEh7vO78ST2GCd PbbpBGktrk1CecGCiigahfhpWmPaNeHoWiiRg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sdwvl61i5SSr72A1wNEXSigDuGMlyueFRl9jC5UcLTM=; b=fmuA0SU6qAVtjI8Xg/i54ynyMMxPt4JtVEllPoiYAPEEzJheWjghTv4PTh2dFcSjyb AVEfLsx6EMpewWmpsfnat2PyBe0JjRI3RL0/QNaja3MPryPOhMV4nicoHhh5GiMiUGYO Xm5WRkbNW78ysQYsviNBuXbhh1TE9VWomDbb2xylVwl17oBHZI8rhNzelgbdUPRmsMIB 1ZLd7n11OmVdeh6DiJR1cl7vnliAn8Xf5iizKTWDzfVgPSGgp4hsCDXnGPRHvqWeKBUq j9gQJLhqRilc+1m4pLjlNJI5Lzwpn/mlVLv68a/aTU9BTp4E6KlP4Z0i0F7yavOTwxHj IWRQ== X-Gm-Message-State: AOAM531kkp1Ay3GVCz6tF1gN1GOP49IOULaMaec1k6guH+crBouKyw0J mZzlCm1Kk3euEzQ0K+a35AYLL70f4VZp4Z7TtUYYCQ== X-Received: by 2002:a63:8f04:: with SMTP id n4mr21040588pgd.317.1627360035875; Mon, 26 Jul 2021 21:27:15 -0700 (PDT) MIME-Version: 1.0 References: <20210706061920.16013-1-chun-jie.chen@mediatek.com> <20210706061920.16013-6-chun-jie.chen@mediatek.com> In-Reply-To: <20210706061920.16013-6-chun-jie.chen@mediatek.com> From: Ikjoon Jang Date: Tue, 27 Jul 2021 12:27:05 +0800 Message-ID: Subject: Re: [v13 05/21] clk: mediatek: Get regmap without syscon compatible check To: Chun-Jie Chen Cc: Matthias Brugger , Stephen Boyd , Nicolas Boichat , Rob Herring , "moderated list:ARM/Mediatek SoC support" , open list , "moderated list:ARM/Mediatek SoC support" , linux-clk@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , srv_heupstream , Project_Global_Chrome_Upstream_Group Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 6, 2021 at 2:28 PM Chun-Jie Chen wrote: > > Not all clock providers need to be marked compatible with "syscon" > for system configuration usage, so use device_node_to_regmap() to > skip "syscon" check. > > Signed-off-by: Chun-Jie Chen Reviewed-by: Ikjoon Jang > --- > drivers/clk/mediatek/clk-cpumux.c | 2 +- > drivers/clk/mediatek/clk-mtk.c | 2 +- > drivers/clk/mediatek/clk-mux.c | 2 +- > drivers/clk/mediatek/reset.c | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/clk/mediatek/clk-cpumux.c b/drivers/clk/mediatek/clk-cpumux.c > index 79fe09028742..61eeae4e60fb 100644 > --- a/drivers/clk/mediatek/clk-cpumux.c > +++ b/drivers/clk/mediatek/clk-cpumux.c > @@ -84,7 +84,7 @@ int mtk_clk_register_cpumuxes(struct device_node *node, > struct clk *clk; > struct regmap *regmap; > > - regmap = syscon_node_to_regmap(node); > + regmap = device_node_to_regmap(node); > if (IS_ERR(regmap)) { > pr_err("Cannot find regmap for %pOF: %ld\n", node, > PTR_ERR(regmap)); > diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c > index cec1c8a27211..37d2aa32175e 100644 > --- a/drivers/clk/mediatek/clk-mtk.c > +++ b/drivers/clk/mediatek/clk-mtk.c > @@ -106,7 +106,7 @@ int mtk_clk_register_gates_with_dev(struct device_node *node, > if (!clk_data) > return -ENOMEM; > > - regmap = syscon_node_to_regmap(node); > + regmap = device_node_to_regmap(node); > if (IS_ERR(regmap)) { > pr_err("Cannot find regmap for %pOF: %ld\n", node, > PTR_ERR(regmap)); > diff --git a/drivers/clk/mediatek/clk-mux.c b/drivers/clk/mediatek/clk-mux.c > index b0c61709bacc..e97d58db28cc 100644 > --- a/drivers/clk/mediatek/clk-mux.c > +++ b/drivers/clk/mediatek/clk-mux.c > @@ -165,7 +165,7 @@ int mtk_clk_register_muxes(const struct mtk_mux *muxes, > struct clk *clk; > int i; > > - regmap = syscon_node_to_regmap(node); > + regmap = device_node_to_regmap(node); > if (IS_ERR(regmap)) { > pr_err("Cannot find regmap for %pOF: %ld\n", node, > PTR_ERR(regmap)); > diff --git a/drivers/clk/mediatek/reset.c b/drivers/clk/mediatek/reset.c > index cb939c071b0c..e562dc3c10a4 100644 > --- a/drivers/clk/mediatek/reset.c > +++ b/drivers/clk/mediatek/reset.c > @@ -98,7 +98,7 @@ static void mtk_register_reset_controller_common(struct device_node *np, > int ret; > struct regmap *regmap; > > - regmap = syscon_node_to_regmap(np); > + regmap = device_node_to_regmap(np); > if (IS_ERR(regmap)) { > pr_err("Cannot find regmap for %pOF: %ld\n", np, > PTR_ERR(regmap)); > -- > 2.18.0 > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek