The ASTDP transmitter chip requires a mode index for each supported mode. Currently, that is being handled internally whne programming the display mode. Rework the code to filter out unsupported modes and detect errors early. Tested on AST2600 hardware. Thomas Zimmermann (4): drm/ast: astdp: Add connector state drm/ast: astdp: Inline mode-index calculation drm/ast: astdp: Store mode index in connector state drm/ast: astdp: Validate display modes drivers/gpu/drm/ast/ast_dp.c | 157 ++++++++++++++++++++++++++--------- 1 file changed, 118 insertions(+), 39 deletions(-) -- 2.48.1