lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
 <OSCPR01MB1464799D0293902681D74E03EFF30A@OSCPR01MB14647.jpnprd01.prod.outlook.com>
Date: Tue, 19 Aug 2025 08:23:47 +0000
From: John Madieu <john.madieu.xa@...renesas.com>
To: geert <geert@...ux-m68k.org>
CC: magnus.damm <magnus.damm@...il.com>, "mturquette@...libre.com"
	<mturquette@...libre.com>, "sboyd@...nel.org" <sboyd@...nel.org>,
	"rafael@...nel.org" <rafael@...nel.org>, "daniel.lezcano@...aro.org"
	<daniel.lezcano@...aro.org>, "rui.zhang@...el.com" <rui.zhang@...el.com>,
	"lukasz.luba@....com" <lukasz.luba@....com>, "robh@...nel.org"
	<robh@...nel.org>, "krzk+dt@...nel.org" <krzk+dt@...nel.org>,
	"conor+dt@...nel.org" <conor+dt@...nel.org>, "p.zabel@...gutronix.de"
	<p.zabel@...gutronix.de>, "catalin.marinas@....com"
	<catalin.marinas@....com>, "will@...nel.org" <will@...nel.org>,
	"john.madieu@...il.com" <john.madieu@...il.com>,
	"linux-renesas-soc@...r.kernel.org" <linux-renesas-soc@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>, Biju Das
	<biju.das.jz@...renesas.com>, "linux-arm-kernel@...ts.infradead.org"
	<linux-arm-kernel@...ts.infradead.org>
Subject: RE: [PATCH v7 3/6] thermal: renesas: rzg3e: Add thermal driver for
 the Renesas RZ/G3E SoC

Hi Geert,

Thanks for your feedback!

> -----Original Message-----
> From: Geert Uytterhoeven <geert@...ux-m68k.org>
> Sent: Tuesday, August 19, 2025 9:50 AM
> To: John Madieu <john.madieu.xa@...renesas.com>
> Subject: Re: [PATCH v7 3/6] thermal: renesas: rzg3e: Add thermal driver for
> the Renesas RZ/G3E SoC
> 
> Hi John,
> 
> On Mon, 18 Aug 2025 at 18:29, John Madieu <john.madieu.xa@...renesas.com>
> wrote:
> > The RZ/G3E SoC integrates a Temperature Sensor Unit (TSU) block
> > designed to monitor the chip's junction temperature. This sensor is
> > connected to channel 1 of the APB port clock/reset and provides
> temperature measurements.
> >
> > It also requires calibration values stored in the system controller
> > registers for accurate temperature measurement. Add a driver for the
> Renesas RZ/G3E TSU.
> >
> > Signed-off-by: John Madieu <john.madieu.xa@...renesas.com>
> 
> > v7: Refactored driver structure:
> >   - removes splinlock usage
> >   - updates polling timeout as per the datasheet
> >   - uses average mode to be more accurate
> >   - uses polling (faster than irq mode) for get_temp() while keeping IRQ
> for hw
> >   trip-point cross detection.
> >   - adds both runtime and sleep PM support
> 
> Thanks for the update!
> 
> I only looked at the code to obtain the trim register offsets.
> 
> > --- /dev/null
> > +++ b/drivers/thermal/renesas/rzg3e_thermal.c
> 
> > +static int rzg3e_thermal_parse_dt(struct rzg3e_thermal_priv *priv) {
> > +       struct device_node *np = priv->dev->of_node;
> > +       struct of_phandle_args args;
> > +       int ret;
> > +
> > +       ret = of_parse_phandle_with_args(np, "renesas,tsu-trim",
> > +                                        "#address-cells", 0, &args);
> 
> of_parse_phandle_with_fixed_args(np, "renesas,tsu-trim", 1, 0, &args)
> 
> > +       if (ret)
> > +               return dev_err_probe(priv->dev, ret,
> > +                                    "Failed to parse
> > + renesas,tsu-trim\n");
> > +
> > +       if (args.args_count < 1) {
> 
> "!= 1", however, I think this test is no longer needed after moving to
> of_parse_phandle_with_fixed_args().

Thanks! Will use this fixed_args() variant in next series and remove
adapt the code accordingly.

> 
> > +               dev_err(priv->dev, "Invalid renesas,tsu-trim
> property\n");
> > +               of_node_put(args.np);
> > +               return -EINVAL;
> > +       }
> > +
> > +       priv->trim_offset = args.args[0];
> > +
> > +       priv->syscon = syscon_node_to_regmap(args.np);
> > +       of_node_put(args.np);
> > +
> > +       if (IS_ERR(priv->syscon))
> > +               return dev_err_probe(priv->dev, PTR_ERR(priv->syscon),
> > +                                    "Failed to get syscon regmap\n");
> > +
> > +       return 0;
> > +}
> Gr{oetje,eeting}s,

Regards,
John

> 
>                         Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-
> 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ