platform/x86: mlx-platform: Fix tachometer registers
authorVadim Pasternak <vadimp@mellanox.com>
Thu, 15 Nov 2018 17:26:56 +0000 (17:26 +0000)
committerDarren Hart (VMware) <dvhart@infradead.org>
Tue, 11 Dec 2018 01:49:15 +0000 (17:49 -0800)
commitedd45cba5ed7f53974475ddc9a1453c2c87b3328
treec706ea0e3ac6c18f99b254644004d53cc78fc427
parent3752e5c764b4fb1abe43c78f635bf019c8e98db2
platform/x86: mlx-platform: Fix tachometer registers

Shift by one the registers for tachometers (7 - 12).

This fix is relevant for the same new systems MQMB7, MSN37, MSN34,
which are about to be released to the customers.
At the moment, none of them is at customers sites. The customers will
not suffer from this change.
This fix is necessary, because register used before for tachometer 7
has been than reserved for the second PWM for newer systems, which are
not supported yet in mlx-platform driver. So registers of tachometers
7-12 have been shifted by one.

Fixes: 0378123c5800 ("platform/x86: mlx-platform: Add mlxreg-fan platform driver activation")
Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/mlx-platform.c