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)
commitd58560e6fa4611cee0630ef6e12544269563ca75
tree47e1a13b2da6e7cfc4f30621b0381218c46e910b
parent5e5da1e9fbeecdf9d7a7495d7ae2a37453e38499
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