Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Brugger <mbrugger@suse.com>2018-10-10 17:59:05 +0200
committerMatthias Brugger <mbrugger@suse.com>2018-10-11 12:44:30 +0200
commit218e534893aabd2238d3d127e72f0e2254bfed07 (patch)
tree5f440a839e867e1b7362e11147772645897d9d62
parenteb5e1c2d88b83e7fc0bc32e99e3b15094fc5fed9 (diff)
hwmon: rpi: add module alias to raspberrypi-hwmon (bsc#1108468).
-rw-r--r--patches.drivers/hwmon-rpi-add-module-alias-to-raspberrypi-hwmon.patch37
-rw-r--r--series.conf1
2 files changed, 38 insertions, 0 deletions
diff --git a/patches.drivers/hwmon-rpi-add-module-alias-to-raspberrypi-hwmon.patch b/patches.drivers/hwmon-rpi-add-module-alias-to-raspberrypi-hwmon.patch
new file mode 100644
index 0000000000..244c8bbcba
--- /dev/null
+++ b/patches.drivers/hwmon-rpi-add-module-alias-to-raspberrypi-hwmon.patch
@@ -0,0 +1,37 @@
+From: Peter Robinson <pbrobinson@gmail.com>
+Date: Sat, 21 Jul 2018 00:02:12 +0100
+Subject: hwmon: rpi: add module alias to raspberrypi-hwmon
+Git-commit: d07f05fb86439c41dd6967c94be3ba3837b21567
+Patch-mainline: v4.19-rc3
+References: bsc#1108468
+
+The raspberrypi-hwmon driver doesn't automatically load, although it does work
+when loaded, by adding the alias it auto loads as expected when built as a
+module. Tested on RPi2/RPi3 on 32 bit kernel and RPi3B+ on aarch64 with
+Fedora 28 and a patched 4.18 RC kernel.
+
+Fixes: 3c493c885cf ("hwmon: Add support for RPi voltage sensor")
+Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
+CC: Stefan Wahren <stefan.wahren@i2se.com>
+CC: Eric Anholt <eric@anholt.net>
+Acked-by: Guenter Roeck <linux@roeck-us.net>
+Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
+Reviewed-by: Eric Anholt <eric@anholt.net>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+Signed-off-by: Matthias Brugger <mbrugger@suse.com>
+---
+ drivers/hwmon/raspberrypi-hwmon.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/hwmon/raspberrypi-hwmon.c b/drivers/hwmon/raspberrypi-hwmon.c
+index fb4e4a6bb1f6..be5ba4690895 100644
+--- a/drivers/hwmon/raspberrypi-hwmon.c
++++ b/drivers/hwmon/raspberrypi-hwmon.c
+@@ -164,3 +164,4 @@ module_platform_driver(rpi_hwmon_driver);
+ MODULE_AUTHOR("Stefan Wahren <stefan.wahren@i2se.com>");
+ MODULE_DESCRIPTION("Raspberry Pi voltage sensor driver");
+ MODULE_LICENSE("GPL v2");
++MODULE_ALIAS("platform:raspberrypi-hwmon");
+--
+2.19.0
+
diff --git a/series.conf b/series.conf
index 8db2b1eeca..8148a1d0cd 100644
--- a/series.conf
+++ b/series.conf
@@ -17688,6 +17688,7 @@
patches.drivers/i2c-uniphier-f-issue-STOP-only-for-last-message-or-I.patch
patches.drivers/i2c-i801-fix-DNV-s-SMBCTRL-register-offset.patch
patches.drivers/i2c-xiic-Make-the-start-and-the-byte-count-write-ato.patch
+ patches.drivers/hwmon-rpi-add-module-alias-to-raspberrypi-hwmon.patch
patches.arch/kvm-vmx-do-not-allow-reexecute_instruction-when-skipping-mmio-instr
patches.arch/kvm-x86-invert-emulation-re-execute-behavior-to-make-it-opt-in
patches.arch/kvm-x86-merge-emultype_retry-and-emultype_allow_reexecute