Commit fda6e00
pwm: stm32: Search an appropriate duty_cycle if period cannot be modified
If another channel is already enabled period must not be modified. If
the requested period is smaller than this unchangable period the driver
is still supposed to search a duty_cycle according to the usual rounding
rules.
So don't set the duty_cycle to 0 but continue to determine an
appropriate value for ccr.
Fixes: deaba9c ("pwm: stm32: Implementation of the waveform callbacks")
Signed-off-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/f0c50df31daa3d6069bfa8d7fb3e71fae241b026.1743844730.git.u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <[email protected]>1 parent 00e53d0 commit fda6e00
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | 106 | | |
111 | 107 | | |
112 | 108 | | |
113 | 109 | | |
114 | | - | |
| 110 | + | |
115 | 111 | | |
116 | | - | |
117 | | - | |
| 112 | + | |
| 113 | + | |
118 | 114 | | |
119 | | - | |
120 | 115 | | |
121 | | - | |
122 | 116 | | |
123 | 117 | | |
124 | 118 | | |
| |||
0 commit comments