]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fb-helper: Restore damage area upon errors
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 20 Nov 2020 10:25:43 +0000 (11:25 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 24 Nov 2020 08:31:21 +0000 (09:31 +0100)
commitab19770ec1b1cbf892370267d15ffb47a3743656
tree1969fbf9e7e889ff5bbe24246f49648eb70dc7c6
parent9d14038acf717222d4fed144e18e5a61a8b68442
drm/fb-helper: Restore damage area upon errors

If the damage handling fails, restore the damage area. The next invocation
of the damage worker will then perform the update.

v3:
* Use drm_WARN_ONCE() with an error message to print warning
v2:
* print a single warning if dirty callback fails (Daniel, Sebastian)
* update comment

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Maxime Ripard <mripard@kernel.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201120102545.4047-9-tzimmermann@suse.de
drivers/gpu/drm/drm_fb_helper.c