File 0605-Add-gpio-and-pinctrl-drivers-for-arm-aarch64.patch of Package dracut.13070

From c982843e3d654d97bb8ca0ffefa282871d7c3ebf Mon Sep 17 00:00:00 2001
From: Nicolas Chauvet <kwizart@gmail.com>
Date: Fri, 3 Aug 2018 23:39:51 +0200
Subject: [PATCH 3/3] Add gpio and pinctrl drivers for arm*/aarch64

This is needed since few gpio/pinctrl can be built as modules and are
useful on early boot.

One example is jetson-tx1 where sata and external mmc can work only
after loading pinctrl-max77620 and gpio-max77620 modules.

Having theses kind of drivers bundled into the initramfs will also
avoid some deferred probes.

V2: add pinctrl for all arches

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
---
 modules.d/90kernel-modules/module-setup.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
index 79e615a6..3cbf662a 100755
--- a/modules.d/90kernel-modules/module-setup.sh
+++ b/modules.d/90kernel-modules/module-setup.sh
@@ -42,7 +42,10 @@ installkernel() {
             ehci-hcd ehci-pci ehci-platform \
             ohci-hcd ohci-pci \
             uhci-hcd \
-            pinctrl-cherryview pwm-lpss pwm-lpss-platform
+            pwm-lpss pwm-lpss-platform \
+            xhci-hcd xhci-pci xhci-plat-hcd \
+            "=drivers/pinctrl" \
+            ${NULL}
 
         hostonly='' instmods \
             xhci-hcd xhci-pci xhci-plat-hcd \
@@ -66,6 +69,7 @@ installkernel() {
                 "=drivers/clk" \
                 "=drivers/dma" \
                 "=drivers/extcon" \
+                "=drivers/gpio" \
                 "=drivers/hwspinlock" \
                 "=drivers/i2c/busses" \
                 "=drivers/mfd" \
-- 
2.16.4

openSUSE Build Service is sponsored by