diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2018-02-14 11:04:33 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2018-03-28 00:37:37 +0200 |
commit | 4eb67a209645a87b8aca070aa9735eed90177829 (patch) | |
tree | 4ad3d7082201ff0399725c80c99304f9620289d6 /Documentation/devicetree | |
parent | pwm: stm32: Remove unused struct device (diff) | |
download | linux-4eb67a209645a87b8aca070aa9735eed90177829.tar.xz linux-4eb67a209645a87b8aca070aa9735eed90177829.zip |
pwm: stm32: Protect common prescaler for all channels
There may be a race, when configuring two PWM channels, with different
prescaler values, when there's no active channel yet.
Add mutex lock to avoid concurrent access on PWM apply state.
This is also precursor patch for PWM capture support.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'Documentation/devicetree')
0 files changed, 0 insertions, 0 deletions