]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/ast: astdp: Store mode index in connector state
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 4 Feb 2025 13:26:39 +0000 (14:26 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 11 Feb 2025 07:29:26 +0000 (08:29 +0100)
commit9aed3a417dfa014a0b7a80bb21a744688cf54cf1
tree22f97d82395d477bb0cb3959a8a1ef043a97b741
parent8c3b7d278ffc4d30b0809d1b7066a94963a0d2ca
drm/ast: astdp: Store mode index in connector state

Look up the mode index for the astdp transmitter ship in the encoder's
atomic check and report an error if the display mode is not supported.

The lookup uses the DRM display mode instead of the driver's internal
VBIOS mode. Both are equivalent. The modesetting code later reads
the calculated index from the connector state to avoid recalculating it.

v2:
- fix typo in commit message (Jocelyn)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250204133209.403327-4-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_dp.c