]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitb429ebc86f2e389ba9388fdfac64dc30c70d21a6
treef40f6acf7870a6082da103dc48bc074a2a43ab67
parentb88c5049219a7f322bb1fd65fc30d17472a23563
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