Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1177058rdb; Fri, 1 Dec 2023 08:52:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IGw2AD1OJpQ0+ek03nBOAXwS3O0a9bs4+90FxYV4BSrHKWr+aapJF23X2gl2AZStFMEwpp6 X-Received: by 2002:a05:6a20:5502:b0:18b:2710:d729 with SMTP id ko2-20020a056a20550200b0018b2710d729mr20822267pzb.31.1701449542131; Fri, 01 Dec 2023 08:52:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701449542; cv=none; d=google.com; s=arc-20160816; b=MRiBrhO3zMtdnIJDWsnF0/OpOmQYIQOkuyknglZsXjaYEqPJGpNfxuvbv/3Kpdr1b3 zVIKoNYvCqF0ulWAlQkkDZwN1L1G7FnAhVUZfC46csVNEwxYuU00cX1Lg3bMzn/eZwqx 5MqPPAxG7b/OhuxUikvJS141xUGLG88JQoRA19DSDv+9C9gHTgEY6cVpysxjPN1hMoJE pHhj5tNkXIFU3IW6pMCfgwcemQ7nZEmdN/nfTlR1u9+Urn7Zk/sk0SHG/BqsQobZspbS bLIHp0S3WUvpbPGCKrfh5V1uXQM7dYJLzbQ798Hq2mNbk/Hdg5hLrKT9mjJQ5gorrAF6 8Cxw== 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=E/1iHGW0775GEts+ATyC8tZPVhBN8gf1hHSSO54fQ3c=; fh=YEuDZnTkdm7U0hM+OqIGqyXueqvXZwjnSeRtlsIVJKI=; b=u/AomFxfLnzj9f+MtSM4C9BqQQw2pXZptZmQQWSU2QpSww2vOWX/hov5a/lA+QlMWj sB1TMSf6JLCjMtK0bj1yWNWlzGRi5oJSf75nx5nfoio5ZRZGogHddiFI5Wkg3cWyzdUI 9o3DI66LyJmQAdVLhxD7Yl0pxDi1V/WMfvjhbzFU1/DU4NKKJRHnMcJk3jVIE/3Kj6p+ xYahwDMRJwst4J+VeYGStf42+VTt8/JymU16HLyQ7Vci9a0M8QMyJCCxn9oJRT2psFN/ T/An9Ws5/oF6kPdInEPOeK5zfavXhbj7bs6xfVLr9RclXd0VQE4x2EEjqH8DroRiWJkW u82Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id by3-20020a056a02058300b005b8ef498e2fsi2302860pgb.181.2023.12.01.08.52.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 08:52:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 77ACE802377A; Fri, 1 Dec 2023 08:51:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378519AbjLAQve convert rfc822-to-8bit (ORCPT + 99 others); Fri, 1 Dec 2023 11:51:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbjLAQvc (ORCPT ); Fri, 1 Dec 2023 11:51:32 -0500 Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69FCF84; Fri, 1 Dec 2023 08:51:39 -0800 (PST) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-5d3ffa1ea24so11198677b3.3; Fri, 01 Dec 2023 08:51:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701449498; x=1702054298; 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=yDzeyfGvLGKAd0t6wo+v/fNB/1C7/68ct1cBPBE+Rpo=; b=SwTWdakvf7d5dgzXAfGXKETbfe8hdwBPyE8oUFrI4Sb6buwiU3CGJA9vaVqd12YQ5j 573GXzyI8v0CpdB28hXjSOtuFymn+VyITjkZlnRYwUmK9/OVXFBCTLrmIE7crmb67CId HBgGYvpsnRQ+6xKaPEmj5zz0JM15abloxhmkJPHxG28L5U3u3A0FfQYNDmYjtfkTihrI l6s7o5oNGokA6GC+uQ9SnGff48T1O4O7vfgrfZ9x9ako9FvdQi2JoDm8HY/MuNXf/CJ0 7J+K5f5s3svgXdkRR+bfUqwoCKIgIyjkt4trlYIuJvduz4kmZB1muMVHCbUxucz1kbdX bXcg== X-Gm-Message-State: AOJu0YzxGbeHARavKFfII5H4TKDdpBC/DjXzpN7JDxq4WZTuatAdfkLa 4a78/D1O/q7H5FG+k6NJzaLzORmWv2QMmw== X-Received: by 2002:a81:ac56:0:b0:5d3:464d:18d9 with SMTP id z22-20020a81ac56000000b005d3464d18d9mr6201581ywj.21.1701449498364; Fri, 01 Dec 2023 08:51:38 -0800 (PST) Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com. [209.85.128.169]) by smtp.gmail.com with ESMTPSA id u204-20020a8160d5000000b005d29344e625sm1193845ywb.114.2023.12.01.08.51.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Dec 2023 08:51:36 -0800 (PST) Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-5c08c47c055so25662177b3.1; Fri, 01 Dec 2023 08:51:35 -0800 (PST) X-Received: by 2002:a81:9b4b:0:b0:5d3:a789:4e0d with SMTP id s72-20020a819b4b000000b005d3a7894e0dmr4657972ywg.17.1701449495359; Fri, 01 Dec 2023 08:51:35 -0800 (PST) MIME-Version: 1.0 References: <20231120070024.4079344-1-claudiu.beznea.uj@bp.renesas.com> <20231120070024.4079344-7-claudiu.beznea.uj@bp.renesas.com> In-Reply-To: <20231120070024.4079344-7-claudiu.beznea.uj@bp.renesas.com> From: Geert Uytterhoeven Date: Fri, 1 Dec 2023 17:51:23 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 06/14] pinctrl: renesas: rzg2l: Add pin configuration support for pinmux groups 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 pete.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 (pete.vger.email [0.0.0.0]); Fri, 01 Dec 2023 08:51:56 -0800 (PST) Hi Claudiu, On Mon, Nov 20, 2023 at 8:01 AM Claudiu wrote: > From: Claudiu Beznea > > On RZ/G3S different Ethernet pins needs to be configured with different > settings (e.g. power-source need to be set, RGMII TXC, TX_CTL pins need > output-enable). Commit adjust driver to allow specifying pin configuration > for pinmux groups. With this DT settings like the following are taken > into account by driver: > > eth0_pins: eth0 { > tx_ctl { > pinmux = ; /* ET0_TX_CTL */ > power-source = <1800>; > output-enable; > drive-strength-microamp = <5200>; > }; > }; > > Signed-off-by: Claudiu Beznea Thanks for your patch! > --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c > +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c > @@ -376,8 +376,11 @@ static int rzg2l_dt_subnode_to_map(struct pinctrl_dev *pctldev, > goto done; > } > > - if (num_pinmux) > + if (num_pinmux) { > nmaps += 1; > + if (num_configs) > + nmaps += 1; I think this would be more readable, and better follow the style of the surrounding statements, if this new check would not be nested under the num_pinmux check. > + } > > if (num_pins) > nmaps += num_pins; Reviewed-by: Geert Uytterhoeven 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