Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1144314rdb; Fri, 1 Dec 2023 08:06:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGx+TEz1gBSPm2MoKsS0hyqyvikrWf/aRKmMCtcTt+DKXWuzeji+yYgMGZb7edVxO4I4ecJ X-Received: by 2002:a17:902:d508:b0:1cf:e02b:5491 with SMTP id b8-20020a170902d50800b001cfe02b5491mr16767835plg.61.1701446771596; Fri, 01 Dec 2023 08:06:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701446771; cv=none; d=google.com; s=arc-20160816; b=BS6TlGvdEfQckbltwrhqnhOsUL/QepwvDMsWsTL1iL6iAAgFgDO71rJ/4QalGV0FFx kXm/GS7aP4xlnYusJ3+/SlvIhWobqozxG/wMRLaRqcfZ063Ly41J0N6ge/3YXeCIlweU SL7LCCk/zFmKcqhCyqYwQYBA1Zr3q1xGIookc9ZhZ0avfdZmOnTMsCRzAQ+fl8CdeJ8A Bxz5VExzLKprzCbqCjD+6XUCy3ViQHm/WIFidx3Y7X6OJwPQxYFxhCjM76HC8wzHophV wDK9jDqziqn8u/3b7iOPTP6UWYXzNqyWBhIzPTZ7ycF5Vn4fwi2lv79w4Rizi0SxVyOG ZVmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=xUXAkm2HzicX7X7rGdQ/ltCRPORKl56jitHpDD449+A=; fh=YEuDZnTkdm7U0hM+OqIGqyXueqvXZwjnSeRtlsIVJKI=; b=Ptg4HKXtoLorbWHBPbMzMzc3yMxd0xUgd5eT3qK5eZpUSCidck/DK+lUlkqu6IhrEJ Idn/suCr/nVr+F2D1/B/VBqCjXQYpDWMKGrNGC2iyWU7BIEHvitXO2PuCM02vIeQjaUX 5GpTTddnWsWzADpJU/diSezLSfe0yPMu5AxpDFlKm+Cur3Ws0k/CfbyHDQ45A9g6TBRl u2Njs42Lckn/OUG6ugVhomFLziHDZS9n7uAo3FI3oVep81a7kXOCMZE246CcsMw2d7Dl KujPe9Ym8jxAcz6yQ9GB96VBBK9m5zCPrx2/h70jA1nhSBKvdPFqBJYfG6oDMnqzUBP3 du0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id i9-20020a170902c94900b001cffce39be3si3631915pla.218.2023.12.01.08.06.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 08:06:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 1A35580F6D1F; Fri, 1 Dec 2023 08:05:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379354AbjLAQFN convert rfc822-to-8bit (ORCPT + 99 others); Fri, 1 Dec 2023 11:05:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378702AbjLAQFF (ORCPT ); Fri, 1 Dec 2023 11:05:05 -0500 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D928B10EA; Fri, 1 Dec 2023 08:05:10 -0800 (PST) Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-41ea8debcdaso13038371cf.1; Fri, 01 Dec 2023 08:05:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701446709; x=1702051509; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=S6g9qjiYrvOeYcygh2TbjSPkHxJ0/agDmVlkXrziZ/4=; b=qkHvF/Gd5YKqFz/xVAonT1sM8v4cq6NrbDR9LV7NCer9RJ5QaeJ27/Vz36fHgT8Pyn 9OII0hHPgAYTl2fJaP4PGMw7Svo7RePMTwCfDmmw2avfb2Jeca4B1x3wWjebfO+kX4EN m8JXIYSSGUaokTgHUMgt0JiGxrYDWYibFeeMFKWX5K0Rjo984miBZt/BHdM1WOHGZj/q pbIzci8CABo5ojz8u80K5bBbMzYi0/R1VmDLUen/ogdMgbkzKm5iCrnfT2Vl19QzL6aX jV1+pZGU2ef3QPuPAA12Ih8hHH03hP6DQAatGfBJFckXeDyHs4tAfsZrrIYIagfboc2u BAuw== X-Gm-Message-State: AOJu0Yz96nxPV61Rqo6e96FTwkPZujGctoY83ZakQooQUQGipf+0FdZP TypQPmn9dez7GLIqq+K6dTX9ON9wycEO1Q== X-Received: by 2002:a05:622a:1751:b0:423:9407:8c1e with SMTP id l17-20020a05622a175100b0042394078c1emr29177283qtk.10.1701446709349; Fri, 01 Dec 2023 08:05:09 -0800 (PST) Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com. [209.85.160.173]) by smtp.gmail.com with ESMTPSA id l4-20020ac84a84000000b00423ea3b17b4sm1583775qtq.72.2023.12.01.08.05.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Dec 2023 08:05:09 -0800 (PST) Received: by mail-qt1-f173.google.com with SMTP id d75a77b69052e-41cd8bd5727so12957181cf.3; Fri, 01 Dec 2023 08:05:08 -0800 (PST) X-Received: by 2002:a81:9957:0:b0:5d3:690e:d804 with SMTP id q84-20020a819957000000b005d3690ed804mr4856222ywg.11.1701446404100; Fri, 01 Dec 2023 08:00:04 -0800 (PST) MIME-Version: 1.0 References: <20231120070024.4079344-1-claudiu.beznea.uj@bp.renesas.com> <20231120070024.4079344-5-claudiu.beznea.uj@bp.renesas.com> In-Reply-To: <20231120070024.4079344-5-claudiu.beznea.uj@bp.renesas.com> From: Geert Uytterhoeven Date: Fri, 1 Dec 2023 16:59:53 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 04/14] clk: renesas: r9a08g045-cpg: Add clock and reset support for ETH0 and ETH1 To: Claudiu Cc: s.shtylyov@omp.ru, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux@armlinux.org.uk, magnus.damm@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, linus.walleij@linaro.org, p.zabel@pengutronix.de, arnd@arndb.de, m.szyprowski@samsung.com, alexandre.torgue@foss.st.com, afd@ti.com, broonie@kernel.org, alexander.stein@ew.tq-group.com, eugen.hristev@collabora.com, sergei.shtylyov@gmail.com, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com, linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, Claudiu Beznea Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 01 Dec 2023 08:05:41 -0800 (PST) Hi Claudiu, On Mon, Nov 20, 2023 at 8:01 AM Claudiu wrote: > From: Claudiu Beznea > > RZ/G3S has 2 Gigabit Ethernet interfaces available. Add clock and reset > support for both of them. > > Signed-off-by: Claudiu Beznea Thanks for your patch! > --- a/drivers/clk/renesas/r9a08g045-cpg.c > +++ b/drivers/clk/renesas/r9a08g045-cpg.c > @@ -217,6 +219,16 @@ static const struct rzg2l_mod_clk r9a08g045_mod_clks[] = { > MSTOP(PERI_COM, BIT(11))), > DEF_MOD("sdhi2_aclk", R9A08G045_SDHI2_ACLK, R9A08G045_CLK_P1, 0x554, 11, > MSTOP(PERI_COM, BIT(11))), > + DEF_COUPLED("eth0_axi", R9A08G045_ETH0_CLK_AXI, R9A08G045_CLK_M0, 0x57c, 0, > + MSTOP(PERI_COM, BIT(2))), > + DEF_COUPLED("eth0_chi", R9A08G045_ETH0_CLK_CHI, R9A08G045_CLK_ZT, 0x57c, 0, > + MSTOP(PERI_COM, BIT(2))), > + DEF_MOD("eth0_refclk", R9A08G045_ETH0_REFCLK, R9A08G045_CLK_HP, 0x57c, 8, 0), > + DEF_COUPLED("eth1_axi", R9A08G045_ETH1_CLK_AXI, R9A08G045_CLK_M0, 0x57c, 1, > + MSTOP(PERI_COM, BIT(3))), > + DEF_COUPLED("eth1_chi", R9A08G045_ETH1_CLK_CHI, R9A08G045_CLK_ZT, 0x57c, 1, > + MSTOP(PERI_COM, BIT(3))), > + DEF_MOD("eth1_refclk", R9A08G045_ETH1_REFCLK, R9A08G045_CLK_HP, 0x57c, 9, 0), > DEF_MOD("scif0_clk_pck", R9A08G045_SCIF0_CLK_PCK, R9A08G045_CLK_P0, 0x584, 0, > MSTOP(MCPU2, BIT(1))), > DEF_MOD("gpio_hclk", R9A08G045_GPIO_HCLK, R9A08G045_OSCCLK, 0x598, 0, 0), LGTM, pending the MSTOP() part. Is the MSTOP() handling needed to function? IIUIC, all modules are enabled out of reset. If it is not needed, I can take this patch and remove the MSTOP() part. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds