[Accton][AS7927-50X] refactor: move XCVR thermal functions to platform_lib#17
Open
richardkuo1999 wants to merge 1 commit into
Conversation
…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.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor transceiver thermal monitoring functions out of sysi.c into platform_lib.c for better reusability and separation of concerns.
Key changes include: