]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: core: Set different thermal polling time based on bus frequency capability
authorVadim Pasternak <vadimp@mellanox.com>
Wed, 13 Feb 2019 11:28:48 +0000 (11:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 06:33:02 +0000 (22:33 -0800)
commitdcf8e8e67368ec4268b382d2689d24254d314347
tree7429ba9dd999e023f10ebe9538fe73574ec2e10f
parent84dfae097a97e28200ab0ff2160ea0ce6804bf4c
mlxsw: core: Set different thermal polling time based on bus frequency capability

Add low frequency bus capability in order to allow core functionality
separation based on bus type. Driver could run over PCIe, which is
considered as high frequency bus or I2C, which is considered as low
frequency bus. In the last case time setting, for example, for thermal
polling interval, should be increased.

Use different thermal monitoring based on bus type. For I2C bus time is
set to 20 seconds, while for PCIe 1 second polling interval is used.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c
drivers/net/ethernet/mellanox/mlxsw/i2c.c