Article View: linux.kernel.netdev
Article #14528Re: [PATCH net-next 07/12] can: rcar_canfd: Use DT clock names in the probe message
From: Marc Kleine-Budde
Date: Wed, 11 Nov 2026 12:01
Date: Wed, 11 Nov 2026 12:01
123 lines
14850 bytes
14850 bytes
--q4ljzh537fe3fl5p
Content-Type: text/plain; protected-headers=v1; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: [PATCH net-next 07/12] can: rcar_canfd: Use DT clock names in
the probe message
MIME-Version: 1.0
On 10.11.2026 12:41:30, Marc Kleine-Budde wrote:
> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
>
> Print the DT binding clock names when reporting the selected clock at the
> end of probe. These names are part of the DT ABI, so they are stable and
> match what users see in the device tree.
>
> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
> Link: https://patch.msgid.link/20261019121356.2421761-3-claudiu.beznea@ke=
rnel.org
> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
The netdev sashiko/clashiko found a medium issue. Can you comment on it?
If you re-spin the series, take a look at the low issues, too:
https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261110115112.3807247-=
1-mkl@pengutronix.de
regards,
Marc
--- Patch [7]: [PATCH net-next 07/12] can: rcar_canfd: Use DT clock names i=
n the probe message ---
commit d7a69a85fec4c0746ff8cbfad2799f58cd2059c3
Author: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
can: rcar_canfd: Use DT clock names in the probe message
This commit changes the clock name in the final dev_info() of
rcar_canfd_probe(). It now prints DT binding clock names ("can_clk",
"fck" or "canfd") instead of "ext" or "canfd".
Link: https://patch.msgid.link/20261019121356.2421761-3-claudiu.beznea@kern=
el.org
> diff --git a/drivers/net/can/rcar/rcar_canfd.c b/drivers/net/can/rcar/rca=
r_canfd.c
> index bb2d03b75142a..4f5cdfa8211da 100644
> --- a/drivers/net/can/rcar/rcar_canfd.c
> +++ b/drivers/net/can/rcar/rcar_canfd.c
> @@ -2312,7 +2312,7 @@ static int rcar_canfd_probe(struct platform_device =
*pdev)
>
> platform_set_drvdata(pdev, gpriv);
> dev_info(dev, "global operational state (%s clk, %s mode)\n",
> - gpriv->extclk ? "ext" : "canfd",
> + gpriv->extclk ? "can_clk" : (info->fcan_pclk ? "fck" : "canfd"),
Is the right name printed when can_clk is in use on hardware where
external_clk is 0?
gpriv->extclk does not record which DT clock was picked. In the branch
that uses "can_clk", it is copied from the hw_info flag that controls
the GCFG DCS bit:
drivers/net/can/rcar/rcar_canfd.c:rcar_canfd_probe() {
...
} else {
fcan_freq =3D clk_get_rate(gpriv->can_clk);
gpriv->extclk =3D gpriv->info->external_clk;
}
...
}
r9a09g047_hw_info has:
.external_clk =3D 0,
.fcan_pclk =3D 0,
RZ/G3E uses this hw_info, and so do RZ/V2N and RZ/V2H through the
r9a09g047 fallback compatible. Their device trees (r9a09g047.dtsi,
r9a09g056.dtsi and r9a09g057.dtsi) only list:
clock-names =3D "fck", "ram_clk", "can_clk";
On these SoCs, devm_clk_get_optional(dev, "can_clk") returns a clock
with a non-zero rate, so the else branch runs. extclk then ends up
false, and the message prints "canfd clk".
None of those device trees has a "canfd" clock, so a successful probe on
these SoCs can only have used "can_clk".
The commit message says the names "match what users see in the device
tree". That does not seem to hold on these platforms. The same ternary
is also still there at the end of the series.
Could each branch that gets the clock set a const char * clock name
instead, rather than working it out from extclk and fcan_pclk?
> gpriv->fdmode ? (gpriv->fd_only_mode ? "fd-only" : "fd") : "classical=
");
> return 0;
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung N=C3=BCrnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
--q4ljzh537fe3fl5p
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iHUEABYKAB0WIQSl+MghEFFAdY3pYJLMOmT6rpmt0gUCavRZBQAKCRDMOmT6rpmt
0pBBAQCK5KjhmVwBlTd7VS8xi7KldygI81TnRzD/C7CwZVyMBQEA/DmkcFAtR+wh
01CPr7JPV0J3luub3WMhzEWD3FH7rwU=
=oI+B
-----END PGP SIGNATURE-----
--q4ljzh537fe3fl5p--
Technical Details
Message-ID:
<20261111-wise-graceful-avocet-27fa57-mkl@pengutronix.de>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361043-linux-kernel-netdev=dewy.ruReferences:
<20261110115112.3807247-1-mkl@pengutronix.de> <20261110115112.3807247-8-mkl@pengutronix.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361043-linux-kernel-netdev=dewy.ru From: mkl@pengutronix.de (Marc Kleine-Budde) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 07/12] can: rcar_canfd: Use DT clock names in the probe message Date: Wed, 11 Nov 2026 13:01:12 +0100 Organization: Usenet Network Message-ID: <20261111-wise-graceful-avocet-27fa57-mkl@pengutronix.de> References: <20261110115112.3807247-1-mkl@pengutronix.de> <20261110115112.3807247-8-mkl@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="q4ljzh537fe3fl5p" Injection-Info: usenet.network; logging-data="847610"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:nes/f/fmM4BQJjKU/dRmlQizfRM= sha256:o3Xv9bK6k1UOxSHFo7n8dQGVh3PQfIbAlzkfwLk/WDQ= sha1:RVxPgWIRHzOZf0rIQ7+6yr/iChY= sha256:wwRRFh3WQJ8Oa1GOB8DbRlLUbSxxAsgszkhmxL081Sk= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id A21A3113ED7; Wed, 11 Nov 2026 15:18:16 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=pengutronix.de X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uXmUYvtjLRGy; Wed, 11 Nov 2026 15:18:08 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-361043-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=pengutronix.de X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 2A33F113E95; Wed, 11 Nov 2026 15:17:59 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 56E101604E5; Wed, 11 Nov 2026 12:02:34 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794398488; b=v4LmeLWYt7frt4Yel00ngyMgc19phaIuVuGsx2/QrfATHXy52PoDJzLBkMgqeohyoefp boWfQh+DPd6kyNMFbXwxkSMcNsG1M0cGjsZW3D7pUT3QDJg1Jw+8xs9EJO7N67Xj/Q2qA 1AFA4p4bNgzxgktZTvA00O8kQqcszpCrumrej0jYOQiRmPlDBr8N+P0TenoBwj9u51ny8 1zjtYmQfO5Oi2wvpmAnQWOwMZijxaYwgFTLnCpyMHUnLyjMr6+8/EyaIO2jzIRIpzsiqC sZ9w4YLxKFCZiNqGwva5x5uy7VyZXL3DYnNQcAGPyRId0SvyjWjSVVcdYhjkx5bk+dg== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794398488; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:Received: Received:Date:From:To:Cc:Subject:Message-ID:References:X-Mailing-List: List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe: List-Owner:Precedence:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=NUIA5Dj/cSXn5vTmt4kuMZqqVY+/n24BEGwYcGOr1Nw=; b=rbZAo7pp7fo5svV6Kb7gEI5nY93K1EyRouOyOM11cmbNwyUssFRUSFam6R6zIhtMBmdo t1uCB68yndFS6KvaMfeh8VJbPRl0qtcY1xqea9Y6YEa35MfJ8KFYQmJO0eMPba+fGNLzm 7rT9GINC22vv4suW0tWGhEteMaNl5lKSYokzRh2TwfvzKGXKRTpqSD1POnbg2bW85NFAS 0ibC5gbxj3eqpgNZMk9cqaCmWXwkbwdZOaem5D+t9dSfERu6QHe6MhyzSdU+HPOnLFb/F U4e1XMthsh+vQ/fakAfBfqxHHVMLDI7mUSKyw176KXdAaUUS1gJ4Tqg0kpIK2xB+xNQ== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=Yi6EbIoW; dmarc=none header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F47F606A334; Wed, 11 Nov 2026 12:01:28 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=Yi6EbIoW X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794398482; b=ZkI0W/EwA051CdcVGffRSqUkWeJ+u63TfDgexYjI5uTtkhsodkgPfFogdVYNuTvdy9ux stYMtvqPSwJwNQW/ZHQiHpcKGdBaEFWKMvFiFIgZ/0QX1Zlb55XL252+rSkzlxlYbFaoW KLL71WKsBFCJDhXNrXkpIVanJy99uPWSH3fCQr1iWFbSfvR7CBCVBV3nKBlIHF9b1YqQ4 k9E0/PfVed0qD/1Zz9jl56vo7ZiWocjltsoilnqOMjdwp/6SADgHY9oXZveZTIs2ea152 YvzBN08kqId7CdlzUfDX8NNiUC7T/GTNizqFTaJ/dj76AzI7GjUd9iUhrbK+SySGqqA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794398482; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=NUIA5Dj/cSXn5vTmt4kuMZqqVY+/n24BEGwYcGOr1Nw=; b=Ewbm22Q84SBq/2j/sxVBR9Fjwp+JnyHrZBPT9+hftaSz/Gg8dxHzwt0TXXdmpe82VXKi Z7rWoKrYeFR1MWMezls2w9XgrRcdZS/IQ7JUR+9Ys0U1tWJKJxsASKmT2iCE+D31pi66d GGf08/e/KoTHsuUO8RaWHVZvoVaOLAzJaC0QhMhO5S5dpmujm3PdOuUKLmO0tzfg1j+Ap MLQpVi4vweA+KuGy1boxe4cg4IQscv5fh7ZpFYJbf5JYYVU0JpUQ8kF3fJgPqgO82rdZ0 T43mGFCjKbqW6XquNVObG2HUV84PRnjMQJnNyLLbrM97NQuzDLfgL73J7cdQtlIGlsQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=Yi6EbIoW; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13 X-Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F714606A327; Wed, 11 Nov 2026 12:01:20 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9F714606A327 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de X-Received: from drehscheibe.grey.stw.pengutronix.de (drehscheibe.grey.stw.pengutronix.de [IPv6:2a0a:edc0:0:c01:1d::a2]) (Authenticated sender: relay-from-drehscheibe.grey.stw.pengutronix.de) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id D991F2016E5; Wed, 11 Nov 2026 13:01:12 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1794398472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NUIA5Dj/cSXn5vTmt4kuMZqqVY+/n24BEGwYcGOr1Nw=; b=Yi6EbIoWl8c7ng6mEIMa2vJoUvQuS7g4VCz4YQKEYNCamu+TKuhY7K43Kqdde92dJpVYsZ maonRDgrieAtLo8w5mWDnAqt9sznpNJQs+R9uwfRKcOUYtZXWMkFvbeakGtmZ6NfDkxcP4 TQYn4uSzsQ8dtGAsCm88lylNkTzTda2+PC+z1Ilp5B94XpZo3ZO7IP7JSCCbpp22uXWkkK P76Ew7ZmwAJcOnmRn14kHOFLJHnGH1ykYJVAQOe/98RGtndpmveKXr/Bg9o8uta2HPGo7y +0hrcEqVTsBiQ0IeItPneRdicihH2W7si7kSNsWiTmqrsChcGkwH82l272N1tg== X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1794398472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NUIA5Dj/cSXn5vTmt4kuMZqqVY+/n24BEGwYcGOr1Nw=; b=LdaUbBY6ksP+OWfZ6PgCp76/0oM0YF7C2PHYXTmzdZR8eLKo3hbeCEEo7I72wBmh38Dqcs zkrpCL2M+mmtJDbw2HHeRtUbFsRlx2J6R/DvPyCi+fBO61o2BghYWSpWRqtMuD72+o9nt5 3Pfh5Z4Fp3DCpet4ixYud3Krj4L5B9FxAsN1SZZjQALChAb82pSOVq1u94da9etxnp37y7 WMf/X05r+PqIScfqxP9TROwmZyjGyBqxhCyqEr6XUH130C7/tAsCcm1/UHFx3jx0HI9Dad vdpjSikSe0IwWrPwPgkcqCNW3ITi5buQSAf0vrTKpHbWw1Wl06jYuETtLJOWNQ== X-ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1794398472; a=rsa-sha256; cv=none; b=ahsXaWcRBSjrw3XpQIAGc3kdYZ5zXtybvyAT6MlP4eCTdK8+TI9+MaYQAOXhOcIFVTFkL3 n+VK96gIgB56UkIwEGsYPsxzM/RJq5Q0OU6S7QEt5qOYI8xSS/xaUIVbkZK6lhpBTc+j+T 2Mvu06vYavEPLhSmCEwMrh3hFoib9m4bNjx5iqtjwWqHPWpfSUIsFAuYe3Xv0imuNN5VYD II+6NQXgo3sNoSrLbe+d5SJdqyJbnUYld5TYIyiX+4XnqwvfHGTWST0lSfVc8l35QkGcXN 6UY0xPzMORwVK27gJ0r6batXR14Z0r69/WF67yfnQBMyaSZpUbFQuTOfkIEG2g== X-ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=relay-from-drehscheibe.grey.stw.pengutronix.de smtp.mailfrom=mkl@pengutronix.de X-Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] helo=bjornoya.blackshift.org) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <mkl@pengutronix.de>) id 1xR70q-003eAF-2X; Wed, 11 Nov 2026 13:01:12 +0100 X-Received: from pengutronix.de (p4ffb23c7.dip0.t-ipconnect.de [79.251.35.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 86C475E7CCF; Wed, 11 Nov 2026 12:01:12 +0000 (UTC) X-Cc: linux-can@vger.kernel.org, kernel@pengutronix.de X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261110115112.3807247-8-mkl@pengutronix.de>