From: Vadim Pasternak Date: Fri, 22 Sep 2023 17:18:37 +0000 (+0200) Subject: mlxsw: core: Extend allowed list of external cooling devices for thermal zone binding X-Git-Tag: v6.7-rc1~160^2~267^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7afc79e20e22dc3ca552a75665b51b5a93e29632;p=thirdparty%2Flinux.git mlxsw: core: Extend allowed list of external cooling devices for thermal zone binding Extend the list of allowed external cooling devices for thermal zone binding to include devices of type "emc2305". The motivation is to provide support for the system SN2201, which is equipped with the Spectrum-1 ASIC. The system's airflow control is managed by the EMC2305 RPM-based PWM Fan Speed Controller as the cooling device. Signed-off-by: Vadim Pasternak Reviewed-by: Ido Schimmel Signed-off-by: Petr Machata Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c index 70d7fff24fa22..f709e44c76a80 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c +++ b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c @@ -31,6 +31,7 @@ /* External cooling devices, allowed for binding to mlxsw thermal zones. */ static char * const mlxsw_thermal_external_allowed_cdev[] = { "mlxreg_fan", + "emc2305", }; struct mlxsw_cooling_states {