pwm: tiehrpwm: ensures that state.enabled is
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest1 patch 1 replyIn review
- v11 patch 1 replySuperseded
Changes in v2 from the cover letter
- Adjusted the indentation reported by checkpatch.pl;
- Added the bitfield header to replace the register bit defines with GEN_MASK and FIELD_GET;
- Concentrated the use of clk_get_rate() only once, inside ehrpwm_get_state();
- Added the ehrpwm_get_state() function as part of the driver's fops, directly linked to .get_state;
- Now, the activation of clk_prepare_enable() when the pwm is already running is done before pwmchip_add(), and runtime_get_sync() after;
- Added comments for each new function;
- Added comments in specific areas of register manipulation, in order to make understanding how they work more intuitive;
- Removed unnecessary null pointer checks in functions and also improper returns;
- I improved the commit message, as suggested.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | pwm: tiehrpwm: ensures that state.enabled is synchronized in .probe()drivers/ | +201 | 14 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/1] pwm: tiehrpwm: ensures that state.enabled is
Hi Uwe.
Thanks for the feedback! It was very constructive for improving the code!
I fixed the points you mentioned and hope you can review v2 of my patch!
Changes in v2:
- Adjusted the indentation reported by checkpatch.pl;
- Added the bitfield header to replace the register bit defines with GEN_MASK and FIELD_GET;
- Concentrated the use of clk_get_rate() only once, inside ehrpwm_get_state();
- Added the ehrpwm_get_state() function as part of the driver's fops, directly linked to .get_state;
- Now, the activation of clk_prepare_enable() when the pwm is already running is done before pwmchip_add(), and runtime_get_sync() after;
- Added comments for each new function;
- Added comments in specific areas of register manipulation, in order to make understanding how they work more intuitive;
- Removed unnecessary null pointer checks in functions and also improper returns;
- I improved the commit message, as suggested.
Rafael V. Volkmer (1):
pwm: tiehrpwm: ensures that state.enabled is synchronized in .probe()
drivers/pwm/pwm-tiehrpwm.c | 202 ++++++++++++++++++++++++++++++++++++- 1 file changed, 201 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.1