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

Extend wait time in cable firmware download flow #513

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephenxs
Copy link
Collaborator

Description

Extend the wait time in the cable firmware download flow

Motivation and Context

The cable firmware download flow is the following:

  1. Start download (CMIS CDB command 0x0101)
  2. Write firmware to LPL or EPL (CMIS CDB command 0x103 or 0x104), depending on the module's capability
  3. Complete download and verify image (CMIS CDB command 0x0107)

For each CMIS CDB command, it writes the command and then waits for the cable's response. Sometimes it takes several seconds for the cable to handle the command and provide the response. In that scenario, we must delay a few seconds to avoid error messages.
There has been a 2-second delay in step 1 but it's not sufficient on some platforms with certain cables.

We extend the delay to 5 seconds in step 1 and introduce a 2-second delay in step 3 to secure a successful cable firmware download without any error.

How Has This Been Tested?

Additional Information (Optional)

@stephenxs stephenxs marked this pull request as ready for review November 18, 2024 10:53
@bingwang-ms
Copy link

@mihirpat1 Can you help review this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants