Re: [PATCH] pwm: atmel: enable clk when pwm already enabled in bootloader

From
Thierry Reding <hidden>
Date
2023-07-11 15:45:59
Also in
linux-pwm, lkml
Reply to
Guiting Shen, 2023-07-11
On Tue, Jul 11, 2023 at 10:30:54AM +0800, Guiting Shen wrote:
On Mon, Jul 10, 2023 at 23:00:45PM GMT+8, Thierry Reding wrote:
quoted
On Mon, Jul 10, 2023 at 10:42:14PM +0800, Guiting Shen wrote:
quoted
The driver would never call clk_eanble() if the pwm channel already
enable in bootloader which lead to dump the warning message of "the pwm
clk already disabled" when poweroff the pwm channel.

Add atmel_pwm_enanle_clk_if_on() in probe function to enable clk if the
pwm channel already enabled in bootloader.
You've got multiple spelling errors in the commit message. Also, PWM is
an abbreviation and so should be all uppercase (except for the subject
prefix). I also prefer spelling out terms like "clock" in the commit
message. This is text that is supposed to be readable. It's not code.
Got it, Thank you. How about this commit message:

The driver would never call clk_enable() if the PWM channel was already
enabled in bootloader which lead to dump the warning message "the pwm
clock already disabled" when turn off the PWM channel.

Add atmel_pwm_enable_clk_if_on() in probe function to enable clk if the
PWM channel was already enabled in bootloader.
s/clk/clock/ but otherwise looks good.

Thierry
Thread (7 messages) 7 messages, 3 authors, last reply 2023-07-11
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help