Blame 0025-Test-soc-path-for-modalias-needed-by-drm.patch

Harald Hoyer 89f6fa
From 4a3f3ba68c73707231bba72cdf7ab01464456e5a Mon Sep 17 00:00:00 2001
Harald Hoyer 89f6fa
From: Nicolas Chauvet <kwizart@gmail.com>
Harald Hoyer 89f6fa
Date: Mon, 4 Aug 2014 22:04:37 +0200
Harald Hoyer 89f6fa
Subject: [PATCH] Test soc path for modalias needed by drm
Harald Hoyer 89f6fa
Harald Hoyer 89f6fa
On ARM, both pci and soc path can be tested for drm.
Harald Hoyer 89f6fa
Harald Hoyer 89f6fa
With this patchset, that was missing in recent kernel,
Harald Hoyer 89f6fa
the tegra_drm case is not needed anymore:
Harald Hoyer 89f6fa
http://patchwork.ozlabs.org/patch/361765/
Harald Hoyer 89f6fa
http://www.spinics.net/lists/linux-tegra/msg17948.html
Harald Hoyer 89f6fa
---
Harald Hoyer 89f6fa
 modules.d/50drm/module-setup.sh | 2 +-
Harald Hoyer 89f6fa
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer 89f6fa
Harald Hoyer 89f6fa
diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
Harald Hoyer 89f6fa
index e25fc9f..9a48aaf 100755
Harald Hoyer 89f6fa
--- a/modules.d/50drm/module-setup.sh
Harald Hoyer 89f6fa
+++ b/modules.d/50drm/module-setup.sh
Harald Hoyer 89f6fa
@@ -57,7 +57,7 @@ installkernel() {
Harald Hoyer 89f6fa
         # as we could e.g. be in the installer; nokmsboot boot parameter will disable
Harald Hoyer 89f6fa
         # loading of the driver if needed
Harald Hoyer 89f6fa
         if [[ $hostonly ]] && modinfo -F alias $_modname | sed -e 's,\?,\.,g' -e 's,\*,\.\*,g' \
Harald Hoyer 89f6fa
-            | grep -qxf - /sys/bus/pci/devices/*/modalias 2>/dev/null; then
Harald Hoyer 89f6fa
+            | grep -qxf - /sys/bus/{pci/devices,soc/devices/soc?}/*/modalias 2>/dev/null; then
Harald Hoyer 89f6fa
             hostonly='' instmods $_modname
Harald Hoyer 89f6fa
             continue
Harald Hoyer 89f6fa
         fi