aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/mlx-platform.c
diff options
context:
space:
mode:
authorVadim Pasternak <vadimp@mellanox.com>2019-02-26 08:20:34 +0000
committerDarren Hart (VMware) <dvhart@infradead.org>2019-03-07 08:46:29 -0800
commit3ba29326b894e512db9ea7aaa7cb17b235f75d1b (patch)
treef7ccc660a68e423283006eff67f6678ee4bbf003 /drivers/platform/x86/mlx-platform.c
parentplatform/x86: mlx-platform: Add UID LED for the next generation systems (diff)
downloadlinux-dev-3ba29326b894e512db9ea7aaa7cb17b235f75d1b.tar.xz
linux-dev-3ba29326b894e512db9ea7aaa7cb17b235f75d1b.zip
platform/x86: mlx-platform: Fix access mode for fan_dir attribute
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>
Diffstat (limited to 'drivers/platform/x86/mlx-platform.c')
-rw-r--r--drivers/platform/x86/mlx-platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c
index b7adaa57c001..48fa7573e29b 100644
--- a/drivers/platform/x86/mlx-platform.c
+++ b/drivers/platform/x86/mlx-platform.c
@@ -1240,7 +1240,7 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_ng_regs_io_data[] = {
.label = "fan_dir",
.reg = MLXPLAT_CPLD_LPC_REG_FAN_DIRECTION,
.bit = GENMASK(7, 0),
- .mode = 0200,
+ .mode = 0444,
},
};