-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mellanox] Credo Y-cable read_eeprom/write_eeprom API implementation #10320
[Mellanox] Credo Y-cable read_eeprom/write_eeprom API implementation #10320
Conversation
4c58bec
to
2e9887e
Compare
This pull request introduces 1 alert when merging 2e9887e6f3263c87a7d754c27380ba0979f4bc6d into f8e1104 - view on LGTM.com new alerts:
|
3fa09c2
to
ec5af34
Compare
@ayurkiv-nvda please fix the build:
|
ec5af34
to
7d875aa
Compare
Done |
6350113
to
895484f
Compare
…entation Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
895484f
to
b0fc8b2
Compare
/azpw run Azure.sonic-buildimage |
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
/AzurePipelines run Azure.sonic-buildimage (Test kvmtest-t0) |
No pipelines are associated with this pull request. |
@@ -222,7 +305,11 @@ def get_presence(self): | |||
return eeprom_raw is not None | |||
|
|||
# Read out any bytes from any offset | |||
def read_eeprom(self, offset, num_bytes): | |||
def _read_eeprom_specific_bytes(self, offset, num_bytes): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not critical, but I suggest renaming this function to _read_eeprom_sfp_bytes or a name you choose that tells what function is actually doing.
Why I did it
Need to implement read_eeprom/write_eeprom API for Credo Y-cable for Dual-Tor
How I did it
Used mlxreg utility for API implementation
How to verify it
run sfp unit tests
Which release branch to backport (provide reason below if selected)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)