Home Home > GIT Browse > SLE15-SP1-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2019-06-19 18:03:06 +0200
committerThomas Bogendoerfer <tbogendoerfer@suse.de>2019-06-19 18:05:04 +0200
commite3c07ac7da464635a05edac42d3e3bdfe3030e6e (patch)
tree2fb3911f45906929603689d2d78ffa90412d7811
parent5fbe6b91e7e8ef015fe5a9d8ea178c6e3910d283 (diff)
platform/x86: mlx-platform: Fix access mode for fan_dir
attribute (bsc#1112374).
-rw-r--r--patches.drivers/platform-x86-mlx-platform-Fix-access-mode-for-fan_di.patch32
-rw-r--r--series.conf1
2 files changed, 33 insertions, 0 deletions
diff --git a/patches.drivers/platform-x86-mlx-platform-Fix-access-mode-for-fan_di.patch b/patches.drivers/platform-x86-mlx-platform-Fix-access-mode-for-fan_di.patch
new file mode 100644
index 0000000000..31a1e919bd
--- /dev/null
+++ b/patches.drivers/platform-x86-mlx-platform-Fix-access-mode-for-fan_di.patch
@@ -0,0 +1,32 @@
+From: Vadim Pasternak <vadimp@mellanox.com>
+Date: Tue, 26 Feb 2019 08:20:34 +0000
+Subject: platform/x86: mlx-platform: Fix access mode for fan_dir attribute
+Patch-mainline: v5.1-rc1
+Git-commit: 3ba29326b894e512db9ea7aaa7cb17b235f75d1b
+References: bsc#1112374
+
+Fix access mode for "fan_dir" attribute from "write only" to
+"read only". This attribute is exposed to leds-mlxreg driver.
+The purpose of this attribute is to provide information about FAN
+direction setting on the system (forward or backward).
+It is relevant for the next generation systems MQMB7xx, MSN37xx,
+MSN34xx, MSN38xx.
+
+Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
+Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
+Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
+---
+ drivers/platform/x86/mlx-platform.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/platform/x86/mlx-platform.c
++++ b/drivers/platform/x86/mlx-platform.c
+@@ -1240,7 +1240,7 @@ static struct mlxreg_core_data mlxplat_m
+ .label = "fan_dir",
+ .reg = MLXPLAT_CPLD_LPC_REG_FAN_DIRECTION,
+ .bit = GENMASK(7, 0),
+- .mode = 0200,
++ .mode = 0444,
+ },
+ };
+
diff --git a/series.conf b/series.conf
index 9244ed80b6..22206ff545 100644
--- a/series.conf
+++ b/series.conf
@@ -45731,6 +45731,7 @@
patches.drivers/platform-x86-intel_pmc_core-Quirk-to-ignore-XTAL-shu.patch
patches.drivers/platform-x86-mlx-platform-Add-extra-CPLD-for-next-ge.patch
patches.drivers/platform-x86-mlx-platform-Add-UID-LED-for-the-next-g.patch
+ patches.drivers/platform-x86-mlx-platform-Fix-access-mode-for-fan_di.patch
patches.suse/msft-hv-1855-x86-hyperv-Fix-kernel-panic-when-kexec-on-HyperV.patch
patches.fixes/tools-lib-traceevent-fix-buffer-overflow-in-arg_eval.patch
patches.drivers/tpm-tpm_crb-Avoid-unaligned-reads-in-crb_recv.patch