Blame SOURCES/0499-Add-check-for-aarch64-to-the-arm-kernel-module-list.patch

18971c
From 436052a84b84183a3b44b19d7a9db02d391bf26a Mon Sep 17 00:00:00 2001
18971c
From: Peter Robinson <pbrobinson@gmail.com>
18971c
Date: Thu, 23 Mar 2017 14:59:15 +0000
18971c
Subject: [PATCH] Add check for aarch64 to the arm kernel module list
18971c
18971c
This adds the same list of drivers we use for arm platforms for
18971c
aarch64 too, also add the DMA drivers there too as they can add
18971c
sigficant performance for some storage/usb and often need to be
18971c
present when the storage drivers load.
18971c
18971c
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
18971c
18971c
Cherry-picked from: 917e1b6b5b2669a30bce69061686adbb6abc5e35
18971c
Resolves: #1459277
18971c
---
18971c
 modules.d/90kernel-modules/module-setup.sh | 5 +++--
18971c
 1 file changed, 3 insertions(+), 2 deletions(-)
18971c
18971c
diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
18971c
index 0a414eaf..c4bf5af5 100755
18971c
--- a/modules.d/90kernel-modules/module-setup.sh
18971c
+++ b/modules.d/90kernel-modules/module-setup.sh
18971c
@@ -52,13 +52,14 @@ installkernel() {
18971c
             "=drivers/input/serio" \
18971c
             "=drivers/input/keyboard"
18971c
 
18971c
-        if [[ "$(uname -p)" == arm* ]]; then
18971c
-            # arm specific modules
18971c
+	if [[ "$(uname -m)" == arm* || "$(uname -m)" == aarch64 ]]; then
18971c
+            # arm/aarch64 specific modules
18971c
             hostonly='' instmods \
18971c
 	        connector-hdmi connector-dvi encoder-tfp410 \
18971c
 	        encoder-tpd12s015 i2c-tegra gpio-regulator \
18971c
 		as3722-regulator orion-ehci ehci-tegra
18971c
             instmods \
18971c
+                "=drivers/dma" \
18971c
                 "=drivers/i2c/busses" \
18971c
                 "=drivers/regulator" \
18971c
                 "=drivers/rtc" \