aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2021-07-15 13:36:36 +0200
committerLee Jones <[email protected]>2021-07-21 17:27:27 +0100
commitdaa37361518bf2d1f591bbdaa7c68b2a43d7af48 (patch)
tree5dd17614e616ccb40851b49841f0755530093c0a /lib/test_overflow.c
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
backlight: ktd253: Stabilize backlight
Remove interrupt disablement during backlight setting. It is way to dangerous and makes platforms instable by having it miss vblank IRQs leading to the graphics derailing. The code is using ndelay() which is not available on platforms such as ARM and will result in 32 * udelay(1) which is substantial. Add some code to detect if an interrupt occurs during the tight loop and in that case just redo it from the top. Fixes: 5317f37e48b9 ("backlight: Add Kinetic KTD253 backlight driver") Cc: Stephan Gerhold <[email protected]> Reported-by: [email protected] Reviewed-by: Daniel Thompson <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions