summaryrefslogtreecommitdiffstats
path: root/arch/parisc/Kconfig
diff options
context:
space:
mode:
authorIlkka Koskinen2017-01-28 16:10:42 +0100
committerThierry Reding2017-01-30 08:15:12 +0100
commit10d56a4cb1c6c894c60acbaec0f8aa44aba833b0 (patch)
tree8788ae33cdd8ed448435a6cc165baf37d22a3775 /arch/parisc/Kconfig
parentpwm: lpss: Switch to new atomic API (diff)
downloadkernel-qcow2-linux-10d56a4cb1c6c894c60acbaec0f8aa44aba833b0.tar.gz
kernel-qcow2-linux-10d56a4cb1c6c894c60acbaec0f8aa44aba833b0.tar.xz
kernel-qcow2-linux-10d56a4cb1c6c894c60acbaec0f8aa44aba833b0.zip
pwm: lpss: Avoid reconfiguring while UPDATE bit is still enabled
PWM Configuration register has SW_UPDATE bit that is set when a new configuration is written to the register. The bit is automatically cleared at the start of the next output cycle by the IP block. If one writes a new configuration to the register while it still has the bit enabled, PWM may freeze. That is, while one can still write to the register, it won't have an effect. Thus, we try to sleep long enough that the bit gets cleared and make sure the bit is not enabled while we update the configuration. Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Tested-by: Richard Griffiths <richard.a.griffiths@intel.com> Signed-off-by: Ilkka Koskinen <ilkka.koskinen@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'arch/parisc/Kconfig')
0 files changed, 0 insertions, 0 deletions