]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/bochs: Use helpers for struct drm_edid
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 2 Sep 2024 10:53:40 +0000 (12:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 6 Sep 2024 12:41:34 +0000 (14:41 +0200)
commit759ef92532f3c332541f475f5ca91161dbde72e8
treebb8a5933cfb21af56f462e54f2141e75c8c41854
parentc5c4c8fba06ded032be2bae8f4bff972c3d9812e
drm/bochs: Use helpers for struct drm_edid

Implement a read function for struct drm_edid and read the EDID data
with drm_edit_read_custom(). Update the connector data accordingly.

The EDID data comes from the emulator itself and the connector stores
a copy in its EDID property. The drm_edid field in struct bochs_device
is therefore not required. Remove it.

If qemu provides no EDID data, install default display modes as before.

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