Skip to content

Fix inclusion of panel drivers

Tobias Heider requested to merge tobhe/initramfs-tools:panels into debian/latest

This fixes an issue we encounter on Snapdragon based arm64 laptops but I expect it affects a lot more hardware (MNT reform etc).

Our current panel driver loading mechanism when using MODULES=dep is faulty because it matches on driver names that include panel. This is not true for many of the panel drivers in Linux, for example:

linux/drivers/gpu/drm/panel$ grep -Er "\s+.name\s+=""
...
panel-feiyang-fy07024di26a30d.c:                .name = "feiyang-fy07024di26a30d",
panel-ilitek-ili9881c.c:                .name           = "ili9881c-dsi",
panel-magnachip-d53e6ea8966.c:          .name   = "d53e6ea8966-panel",
...
panel-samsung-atna33xc20.c:             .name           = "samsung_atana33xc20",
...

In my case my Lenovo T14s Gen6 is using a samsung-atna33xc20. What is certain is that the driver source file name starts with panel, see ls linux/drivers/gpu/drm/panel. So we can look up the loaded drivers in /sys/module/panel_* and find our needed panels there.

For MODULES=all I propose we include all of linux/drivers/gpu/drm/panel simply because it isn't too big (812 KiB on my m2 air).

CC @bdrung who I co-developed this with.

Edited by Tobias Heider

Merge request reports

Loading