]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (mlxreg-fan) Add support for fan capability registers
authorVadim Pasternak <vadimp@mellanox.com>
Mon, 18 Mar 2019 16:10:28 +0000 (16:10 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:53 +0000 (17:19 -0700)
commit2294e307f1043f4c16623fafdae4522c2059356c
treef40f6acf7870a6082da103dc48bc074a2a43ab67
parent392b6c159f605e9db1d9bbe2f67175f2c2932ac0
hwmon: (mlxreg-fan) Add support for fan capability registers

Add support for fan capability registers in order to distinct between
the systems which have minor fan configuration differences. This
reduces the amount of code used to describe such systems.
The capability registers provides system specific information about the
number of physically connected tachometers and system specific fan
speed scale parameter.
For example one system can be equipped with twelve fan tachometers,
while the other with for example, eight or six. Or one system should
use default fan speed divider value, while the other has a scale
parameter defined in hardware, which should be used for divider
setting.
Reading this information from the capability registers allows to use the
same fan structure for the systems with the such differences.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/mlxreg-fan.c