Skip to content

[Accton][AS7927-50X] refactor: move XCVR thermal functions to platform_lib#17

Open
richardkuo1999 wants to merge 1 commit into
WillyLiu-EC:add_platform_as7927-50xfrom
richardkuo1999:as7927_refactor_thermal_policy
Open

[Accton][AS7927-50X] refactor: move XCVR thermal functions to platform_lib#17
richardkuo1999 wants to merge 1 commit into
WillyLiu-EC:add_platform_as7927-50xfrom
richardkuo1999:as7927_refactor_thermal_policy

Conversation

@richardkuo1999
Copy link
Copy Markdown

Refactor transceiver thermal monitoring functions out of sysi.c into platform_lib.c for better reusability and separation of concerns.

Key changes include:

  • onlp: Rename XCVR thermal functions from onlp_sysi_* prefix to generic names (get_xcvr_temp, get_sff8472_temp, get_cmis_temp, etc.) since they are not ONLP platform API implementations.
  • onlp: Move XCVR temperature getters (SFF-8472, SFF-8436, CMIS), presence check, and related structs (port_thermal_data_t, temp_reader_data_t) to platform_lib.c/.h for cross-module reuse.
  • onlp: Rename xcvr_over_temp_protector to drop onlp_sysi_ prefix, keeping it in sysi.c as it is tightly coupled to the thermal policy manager logic.
  • onlp: Move PORT_NUM and LAST_OF_SFP_PORT defines to platform_lib.h.

…m_lib

Refactor transceiver thermal monitoring functions out of sysi.c into
platform_lib.c for better reusability and separation of concerns.

Key changes include:
- onlp: Rename XCVR thermal functions from onlp_sysi_* prefix to generic
  names (get_xcvr_temp, get_sff8472_temp, get_cmis_temp, etc.) since
  they are not ONLP platform API implementations.
- onlp: Move XCVR temperature getters (SFF-8472, SFF-8436, CMIS),
  presence check, and related structs (port_thermal_data_t,
  temp_reader_data_t) to platform_lib.c/.h for cross-module reuse.
- onlp: Rename xcvr_over_temp_protector to drop onlp_sysi_ prefix,
  keeping it in sysi.c as it is tightly coupled to the thermal policy
  manager logic.
- onlp: Move PORT_NUM and LAST_OF_SFP_PORT defines to platform_lib.h.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant