]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: lpss: Log error from pwm_lpss_is_updating() if the update bit is still set
authorHans de Goede <hdegoede@redhat.com>
Mon, 9 Nov 2020 10:57:24 +0000 (11:57 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 17 Dec 2020 13:18:48 +0000 (14:18 +0100)
commit865eddf6f84b856d723398c5e5cb072c8075b8ca
tree47e1a13b2da6e7cfc4f30621b0381218c46e910b
parentf5c4ca9725fbdb3c6f9d1357d5301414ed8b7190
pwm: lpss: Log error from pwm_lpss_is_updating() if the update bit is still set

pwm_lpss_is_updating() does a sanity check which should never fail.
If the check does actually fail that is worth logging an error,
especially since this means that we will skip making the requested
changes to the PWM settings.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-lpss.c