]> 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)
commit3542a8d395a5c3b141d4ed161cd673f10a88d121
treef40f6acf7870a6082da103dc48bc074a2a43ab67
parent69a805f83a7458a9b22052ea3725826239137392
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