Skip to content

Commit 3ba2932

Browse files
mellanoxbmcdvhart
authored andcommitted
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>
1 parent cc2597e commit 3ba2932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/x86/mlx-platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_ng_regs_io_data[] = {
12401240
.label = "fan_dir",
12411241
.reg = MLXPLAT_CPLD_LPC_REG_FAN_DIRECTION,
12421242
.bit = GENMASK(7, 0),
1243-
.mode = 0200,
1243+
.mode = 0444,
12441244
},
12451245
};
12461246

0 commit comments

Comments
 (0)