drm/cirrus: Test mode against video-memory size in device-wide mode_valid
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 15 Feb 2023 16:15:13 +0000 (17:15 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 13 Mar 2023 09:36:55 +0000 (10:36 +0100)
commitf8ad33797ab3dd3ea011c1d5f52ec684fe925271
treeb72a6c1ada7ac42dd78d20ca192fd8e9154d8997
parentedc9f16763543e5f51f07164766fac8d6bc9e560
drm/cirrus: Test mode against video-memory size in device-wide mode_valid

Test a display mode against the available amount of video memory in
struct drm_mode_config_funcs.mode_valid, which cirrus implements in
cirrus_mode_config_mode_valid(). This helper tests display modes against
device-wide limits. Remove the now-obsolete per-CRTC test.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230215161517.5113-14-tzimmermann@suse.de
drivers/gpu/drm/tiny/cirrus.c