Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
mlxsw: core_thermal: Add interfaces for line card initialization and …
…de-initialization Add callback functions for line card thermal area initialization and de-initialization. Each line card is associated with the relevant thermal area, which may contain thermal zones for cages and gearboxes found on this line card. The line card thermal initialization / de-initialization APIs are to be called when line card is set to active / inactive state by got_active() / got_inactive() callbacks from line card state machine. For example thermal zone for module #9 located at line card #7 will have type: mlxsw-lc7-module9. And thermal zone for gearbox #2 located at line card #5 will have type: mlxsw-lc5-gearbox2. For now the slot index is always 0 and field 'name' of the structure 'mlxsw_hwmon_dev' is empty. For line card this field is supposed to be initialized to 'lc#n', when line card in slot #n is enabled. Add validation of modules number found on main board in function mlxsw_thermal_modules_init(). On modular system this counter might be zero. Signed-off-by: Vadim Pasternak <vadimp@nvidia.com> Signed-off-by: Jiri Pirko <jiri@nvidia.com>
- Loading branch information
1 parent
08ac493
commit 37b9b28d9ef1e71cb5a449450fbc2ca9e9d6d667
Showing
1 changed file
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters