RFC pwm: add support for atomic update
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest0 of 15 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 15 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 00/15] pwm: add support for atomic update
Quoted 9 lines · Tomi Valkeinen
Quoted 6 lines · Uwe Kleine-K?nig
Hello Boris,
Quoted 3 lines · Boris Brezillon
This series adds support for atomic PWM update, or ITO, the capability to update all the parameters of a PWM device (enabled/disabled, period, duty and polarity) in one go.
Quoted 8 lines
Quoted 5 lines
on first reading the subject of your series I thought it was about asserting that the newly set config is active before the call to
pwm_config(et al) returns. That's a problem I addressed a few times in the past. I wonder if it's only me or if a different wording should be used for "update all parameters with a single function call".In my vocabulary "blocking" means that the work is done before the function returns, and "atomic" means the work is done in one step.
blocking is IMHO something slightly different, maybe "synchronous" is a good term for "done when the call returns".
For write(2) I'd say
- blocking means to only return when the write request has reached the kernel, but not necessarily the medium. I.e. the caller doesn't need to care further; and
- atomic means that the contents of two concurrent writers don't mix in the resulting file content; and
- synchronous means that once write() returns the data is on the medium.
So atomic seems to be fine to use here.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |