Blame 0017-drm-Install-pwm-modules-on-all-architectures.patch

Harald Hoyer 3763a8
From feaaee4278077dd67fe24acebfbe47ba20738955 Mon Sep 17 00:00:00 2001
Harald Hoyer 3763a8
From: Hans de Goede <hdegoede@redhat.com>
Harald Hoyer 3763a8
Date: Sat, 13 May 2017 17:23:36 +0200
Harald Hoyer 3763a8
Subject: [PATCH] drm: Install pwm modules on all architectures
Harald Hoyer 3763a8
Harald Hoyer 3763a8
At least on x86 on Bay and Cherry Trail devices the pmw-lpss modules must
Harald Hoyer 3763a8
be in the initrd too, otherwise the i915 driver will still load, but
Harald Hoyer 3763a8
it will report the following error:
Harald Hoyer 3763a8
Harald Hoyer 3763a8
[drm:pwm_setup_backlight [i915]] *ERROR* Failed to own the pwm chip
Harald Hoyer 3763a8
Harald Hoyer 3763a8
And not register /sys/class/backlight/intel_backlight and users will
Harald Hoyer 3763a8
not be able to control their backlight.
Harald Hoyer 3763a8
Harald Hoyer 3763a8
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Harald Hoyer 3763a8
---
Harald Hoyer 3763a8
 modules.d/50drm/module-setup.sh | 3 +--
Harald Hoyer 3763a8
 1 file changed, 1 insertion(+), 2 deletions(-)
Harald Hoyer 3763a8
Harald Hoyer 3763a8
diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
Harald Hoyer 3763a8
index 42a5e7bc..2014539a 100755
Harald Hoyer 3763a8
--- a/modules.d/50drm/module-setup.sh
Harald Hoyer 3763a8
+++ b/modules.d/50drm/module-setup.sh
Harald Hoyer 3763a8
@@ -21,12 +21,11 @@ installkernel() {
Harald Hoyer 3763a8
             "=drivers/gpu/drm/i2c" \
Harald Hoyer 3763a8
             "=drivers/gpu/drm/panel" \
Harald Hoyer 3763a8
             "=drivers/gpu/drm/bridge" \
Harald Hoyer 3763a8
-            "=drivers/pwm" \
Harald Hoyer 3763a8
             "=drivers/video/backlight" \
Harald Hoyer 3763a8
             ${NULL}
Harald Hoyer 3763a8
     fi
Harald Hoyer 3763a8
 
Harald Hoyer 3763a8
-    instmods amdkfd hyperv_fb
Harald Hoyer 3763a8
+    instmods amdkfd hyperv_fb "=drivers/pwm"
Harald Hoyer 3763a8
 
Harald Hoyer 3763a8
     # if the hardware is present, include module even if it is not currently loaded,
Harald Hoyer 3763a8
     # as we could e.g. be in the installer; nokmsboot boot parameter will disable