]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/ast: dp501: Fix initialization of SCU2C
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 27 Mar 2026 13:32:53 +0000 (14:32 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 30 Mar 2026 08:38:11 +0000 (10:38 +0200)
commit2f42c1a6161646cbd29b443459fd635d29eda634
tree2ddd0965b395c2e1c92e7000f6e434ed80d66e08
parent2feec5ae5df785658924ab6bd91280dc3926507c
drm/ast: dp501: Fix initialization of SCU2C

Ast's DP501 initialization reads the register SCU2C at offset 0x1202c
and tries to set it to source data from VGA. But writes the update to
offset 0x0, with unknown results. Write the result to SCU instead.

The bug only happens in ast_init_analog(). There's similar code in
ast_init_dvo(), which works correctly.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 83c6620bae3f ("drm/ast: initial DP501 support (v0.2)")
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Jocelyn Falempe <jfalempe@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v3.16+
Link: https://patch.msgid.link/20260327133532.79696-2-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_dp501.c