From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: "Uwe Kleine-König" <ukleinek@kernel.org>
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
Frank.Li@nxp.com, linux-pwm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Ghennadi.Procopciuc@nxp.com, s32@nxp.com
Subject: Re: [PATCH v1 2/2] pwm: Add the S32G support in the Freescale FTM driver
Date: Mon, 11 Aug 2025 23:20:50 +0200 [thread overview]
Message-ID: <a2fec7ae-7f5e-4440-8623-41e89433b7a7@linaro.org> (raw)
In-Reply-To: <ejua4dgtdtlpr22xio6sywhaiyfjrjwdf744s73fz4zxhxyhrk@ep7o37hzwzvv>
On 11/08/2025 23:11, Uwe Kleine-König wrote:
> Hello Daniel,
>
> On Mon, Aug 11, 2025 at 11:44:32AM +0200, Daniel Lezcano wrote:
>> On 11/08/2025 07:18, Uwe Kleine-König wrote:
>>> All variants (up to now) have .has_fltctrl == .has_fltpol. Is there a
>>> good reason that justifies two bools for the register description?
>>
>> Yeah, I agree it can be folded into a single has_flt_reg boolean. I can only
>> guess that was done with the idea of sticking to the reference manual and
>> perhaps having more variant to come with, eg., fltctrl=false and
>> fltpol=true
>>
>> Do you want me to merge these boolean ?
>
> That's the obvious thing to do if you want the new variant supported :-)
>
> Unless you know that there is such a variant with .has_fltctrl !=
> .has_fltpol to appear soon, I prefer the simplified handling with only
> one bool.
>
>>> Also I wonder about the fuss given that the two registers are not used
>>> in the PWM driver. So this is only to prevent reading these registers
>>> via regmap debug stuff? What happens if the memory locations are read
>>> where the other implementations have these registers?
>>
>> The problem arises at resume time.
>>
>> /* restore all registers from cache */
>> clk_prepare(fpc->ipg_clk);
>> regcache_cache_only(fpc->regmap, false);
>> regcache_sync(fpc->regmap);
>>
>> Without skipping these registers, the kernel crashes on s32g2/3
>
> That's a useful information for the commit log.
Ok, thanks, I'll do the changes accordingly
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
prev parent reply other threads:[~2025-08-11 21:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-10 18:52 [PATCH v1 0/2] Add the s32g2 and s32g3 FTM PWM support Daniel Lezcano
2025-08-10 18:52 ` [PATCH v1 1/2] dt: bindings: fsl,vf610-ftm-pwm: Add compatible for s32g2 and s32g3 Daniel Lezcano
2025-08-10 18:52 ` [PATCH v1 2/2] pwm: Add the S32G support in the Freescale FTM driver Daniel Lezcano
2025-08-11 5:18 ` Uwe Kleine-König
2025-08-11 9:44 ` Daniel Lezcano
2025-08-11 21:11 ` Uwe Kleine-König
2025-08-11 21:20 ` Daniel Lezcano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a2fec7ae-7f5e-4440-8623-41e89433b7a7@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=Frank.Li@nxp.com \
--cc=Ghennadi.Procopciuc@nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=robh@kernel.org \
--cc=s32@nxp.com \
--cc=ukleinek@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®