diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2019-10-21 12:41:40 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2019-10-21 16:48:52 +0200 |
commit | 40a6b9a00930fd6b59aa2eb6135abc2efe5440c3 (patch) | |
tree | baaaa4663cce1e5f33560d4d53e296f8e97dee95 /drivers/scsi/ipr.c | |
parent | 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c (diff) |
Revert "pwm: Let pwm_get_state() return the last implemented state"
It turns out that commit 01ccf903edd6 ("pwm: Let pwm_get_state() return
the last implemented state") causes backlight failures on a number of
boards. The reason is that some of the drivers do not write the full
state through to the hardware registers, which means that ->get_state()
subsequently does not return the correct state. Consumers which rely on
pwm_get_state() returning the current state will therefore get confused
and subsequently try to program a bad state.
Before this change can be made, existing drivers need to be more
carefully audited and fixed to behave as the framework expects. Until
then, keep the original behaviour of returning the software state that
was applied rather than reading the state back from hardware.
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Tested-by: Michal Vokáč <michal.vokac@ysoft.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/scsi/ipr.c')
0 files changed, 0 insertions, 0 deletions