]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mlxsw: core: Extend allowed list of external cooling devices for thermal zone binding
authorVadim Pasternak <vadimp@nvidia.com>
Fri, 22 Sep 2023 17:18:37 +0000 (19:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Oct 2023 07:07:12 +0000 (08:07 +0100)
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 <vadimp@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c

index 70d7fff24fa22579e14498861636a6aad4373ca3..f709e44c76a80b589a9d19745e15a2563b010f3b 100644 (file)
@@ -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 {