Commit c6e6ad7
mlxsw: reg: Extend MTBR register with new slot number field
Extend MTBR (Management Temperature Bulk Register) with new field
specifying the slot number. The purpose of this field is to support
access to MTBR register for reading temperature sensors on modular
system. For non-modular systems the 'sensor_index' uniquely identifies
the cage sensors. For modular systems the sensors are identified by two
indexes:
- 'slot_index', specifying the slot number, where line card is located;
- 'sensor_index', specifying cage sensor within the line card.
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent d30bed2 commit c6e6ad7
File tree
3 files changed
+13
-6
lines changed- drivers/net/ethernet/mellanox/mlxsw
3 files changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
664 | | - | |
| 663 | + | |
| 664 | + | |
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
| 274 | + | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9887 | 9887 | | |
9888 | 9888 | | |
9889 | 9889 | | |
| 9890 | + | |
| 9891 | + | |
| 9892 | + | |
| 9893 | + | |
| 9894 | + | |
| 9895 | + | |
9890 | 9896 | | |
9891 | 9897 | | |
9892 | 9898 | | |
| |||
9919 | 9925 | | |
9920 | 9926 | | |
9921 | 9927 | | |
9922 | | - | |
9923 | | - | |
| 9928 | + | |
| 9929 | + | |
9924 | 9930 | | |
9925 | 9931 | | |
| 9932 | + | |
9926 | 9933 | | |
9927 | 9934 | | |
9928 | 9935 | | |
| |||
0 commit comments