Skip to content
Commit b70f2a88 authored by Phil Elwell's avatar Phil Elwell Committed by Phil Elwell
Browse files

rpisense-fb: Flush any deferred updates on release

Since [1], writing to the Sense HAT framebuffer and immediately closing
the file descriptor is likely to have no effect. This is because the
framebuffer deferred IO framework is now careful to cancel pending
updates.

To retain the old behaviour, add an fb_release method that flushes the
updates instead.

See: https://github.com/raspberrypi/linux/issues/5398


Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.com>

[1] 3efc61d9 ("fbdev: Fix invalid page access after closing deferred I/O devices")
parent ee8dea33
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment