From: Thomas Zimmermann Date: Tue, 1 Apr 2025 09:37:18 +0000 (+0200) Subject: drm/sysfb: efidrm: Add EDID support X-Git-Tag: v6.16-rc1~144^2~21^2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=305396ac7782c2f1aba407bab06e9da68588ffef;p=thirdparty%2Flinux.git drm/sysfb: efidrm: Add EDID support Enable the connector's EDID property if edid_info contains valid data. Exports the EDID via sysfs for user-space compositors. EDID information is not always available. Depending on the system and kernel configuration, it is either provided by the boot loader or read by the kernel during early boot stages. As of now, there's only one EFI display, so that EDID data always belongs to this output. This might change if there's ever more than one EFI display in the system. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas Link: https://lore.kernel.org/r/20250401094056.32904-16-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/sysfb/efidrm.c b/drivers/gpu/drm/sysfb/efidrm.c index 5c1876e34a047..af90064a4c04f 100644 --- a/drivers/gpu/drm/sysfb/efidrm.c +++ b/drivers/gpu/drm/sysfb/efidrm.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -22,6 +23,7 @@ #include #include +#include