Re: [PATCH v2] memory: tegra: Deduplicate rate request management code

From: Mikko Perttunen

Date: Thu Apr 30 2026 - 02:52:44 EST


On Tuesday, April 28, 2026 6:12 PM Krzysztof Kozlowski wrote:
> On 17/04/2026 11:19, Mikko Perttunen wrote:
> > +
> > +struct tegra_emc_rate_request {
> > + unsigned long min_rate;
> > + unsigned long max_rate;
> > +};
> > +
> > +struct tegra_emc_rate_requests {
> > + struct tegra_emc_rate_request requested_rate[TEGRA_EMC_RATE_TYPE_MAX];
> > + struct mutex rate_lock;
>
> You introduced a new checkpatch warning. Wasn't there before. Probably
> the old comment feels to obvious in this context, so it should be
> extended to be meaningful, e.g. what data structure, which members,
> which code paths etc.

On my system, it's just a 'CHECK', not a 'WARNING', so I thought it
not necessary to address in this relatively simple circumstance.

However, I do agree it's best to err on the side of verbosity when
dealing with locking, so I'll add a description for v3.

Mikko

>
> Best regards,
> Krzysztof
>