]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
50drm: Check drm_encoder_init along drm_crtc_init
authorNicolas Chauvet <kwizart@gmail.com>
Sat, 26 Sep 2020 13:01:55 +0000 (15:01 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 28 Sep 2020 21:08:12 +0000 (21:08 +0000)
Some modules are involved in the display output without to rely on
drm_crtc_init.

This is the case for the meson_dw_hdmi. This module need to be included
into the initramfs in both hostonly and generic modes.

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
modules.d/50drm/module-setup.sh

index ad0e6d80805c4d95d51651dfa01f4fdd51d56694..ddc1223d764595edd9a93e4c03d9890b940e2e90 100755 (executable)
@@ -33,13 +33,13 @@ installkernel() {
     if [[ $hostonly ]]; then
         for i in /sys/bus/{pci/devices,platform/devices,virtio/devices,soc/devices/soc?}/*/modalias; do
             [[ -e $i ]] || continue
-            if hostonly="" dracut_instmods --silent -s "drm_crtc_init|drm_dev_register" -S "iw_handler_get_spy" $(<"$i"); then
+            if hostonly="" dracut_instmods --silent -s "drm_crtc_init|drm_dev_register|drm_encoder_init" -S "iw_handler_get_spy" $(<"$i"); then
                 if strstr "$(modinfo -F filename $(<"$i") 2>/dev/null)" radeon.ko; then
                     hostonly='' instmods amdkfd
                 fi
             fi
         done
     else
-        dracut_instmods -o -s "drm_crtc_init|drm_dev_register" "=drivers/gpu/drm" "=drivers/staging"
+        dracut_instmods -o -s "drm_crtc_init|drm_dev_register|drm_encoder_init" "=drivers/gpu/drm" "=drivers/staging"
     fi
 }