Skip to content
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

Dx010 i2c write function support #259

Conversation

pphuchar
Copy link
Collaborator

@pphuchar pphuchar commented Sep 9, 2021

Why I did it

Enable the SMBus access to QSFP/SFP module. Allow the data to be written to the module's EEPROM.

How I did it

Update the Seastone SMBus core driver to support the followings functions:

  • SMBus Receive Byte
  • SMBus Read/Write Byte Data
  • SMBus Read/Write Word Data

How to verify it

  1. Update the platform driver in SONiC and reboot.
  2. Run the bus functionality check on the related adapter.
  3. Write the data to the module and read back.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

  • Seastone: driver support XCVR EEPROM write.

Test Log:
dx010-wrtite-access-xcvr-module.log

A picture of a cute animal (not mandatory but encouraged)

- Add support to following SMBus transactions
   * SMBus Receive Byte
   * SMBus Read/Write Byte
   * SMBus Read/Write Word
- SMBus core code refactoring.
- Add dynamic print debug message.
@pphuchar pphuchar requested a review from mudsut4ke September 9, 2021 09:03
@mudsut4ke mudsut4ke merged commit 446a67c into SONIC-DEV:master-dx010-api-bug-fixes Sep 10, 2021
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.

2 participants