Peter Robinson faebfd
From 5afd3cfc96aac425f7de23de60b94ab88dc189ee Mon Sep 17 00:00:00 2001
Peter Robinson faebfd
From: Nicolas Chauvet <kwizart@gmail.com>
Peter Robinson faebfd
Date: Sat, 26 Sep 2020 13:15:55 +0200
Harald Hoyer 460d2c
Subject: [PATCH] 50drm: Include drm platform drivers in hostonly
Peter Robinson faebfd
Peter Robinson faebfd
On arm, many drm drivers are located in the plaform bus.
Peter Robinson faebfd
Peter Robinson faebfd
Adding the platform bus will allow drm drivers to be included in the
Peter Robinson faebfd
initramfs when using hostonly mode.
Peter Robinson faebfd
Peter Robinson faebfd
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
Peter Robinson faebfd
---
Peter Robinson faebfd
 modules.d/50drm/module-setup.sh | 2 +-
Peter Robinson faebfd
 1 file changed, 1 insertion(+), 1 deletion(-)
Peter Robinson faebfd
Peter Robinson faebfd
diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
Peter Robinson faebfd
index 81d2e662..ad0e6d80 100755
Peter Robinson faebfd
--- a/modules.d/50drm/module-setup.sh
Peter Robinson faebfd
+++ b/modules.d/50drm/module-setup.sh
Peter Robinson faebfd
@@ -31,7 +31,7 @@ installkernel() {
Peter Robinson faebfd
     # as we could e.g. be in the installer; nokmsboot boot parameter will disable
Peter Robinson faebfd
     # loading of the driver if needed
Peter Robinson faebfd
     if [[ $hostonly ]]; then
Peter Robinson faebfd
-        for i in /sys/bus/{pci/devices,virtio/devices,soc/devices/soc?}/*/modalias; do
Peter Robinson faebfd
+        for i in /sys/bus/{pci/devices,platform/devices,virtio/devices,soc/devices/soc?}/*/modalias; do
Peter Robinson faebfd
             [[ -e $i ]] || continue
Peter Robinson faebfd
             if hostonly="" dracut_instmods --silent -s "drm_crtc_init|drm_dev_register" -S "iw_handler_get_spy" $(<"$i"); then
Peter Robinson faebfd
                 if strstr "$(modinfo -F filename $(<"$i") 2>/dev/null)" radeon.ko; then
Peter Robinson faebfd