]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hvs: Remove dlist setup duplication
authorMaxime Ripard <maxime@cerno.tech>
Thu, 31 Mar 2022 14:37:41 +0000 (16:37 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 6 Apr 2022 13:18:01 +0000 (15:18 +0200)
commitc89bf709dd7f24696bb60a7e18ec80b67a3dc8dc
tree8b8f5e64f060e51bd0eed35ffef1be04e310c674
parent7ee2f761bea80ea80c53e43fa7777ce17083b1b0
drm/vc4: hvs: Remove dlist setup duplication

Setting the DISPLISTx register needs to occur in every case, and we
don't need to protect the register using the event_lock, so we can just
move it after the if branches and simplify a bit the function.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20220331143744.777652-5-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hvs.c