Skip to content

qdl: add --zlp-timeout option to override USB write timeout#200

Closed
igoropaniuk wants to merge 1 commit intolinux-msm:masterfrom
igoropaniuk:fix/zlp_timeout_override
Closed

qdl: add --zlp-timeout option to override USB write timeout#200
igoropaniuk wants to merge 1 commit intolinux-msm:masterfrom
igoropaniuk:fix/zlp_timeout_override

Conversation

@igoropaniuk
Copy link
Contributor

Some storage backends (notably SPINOR) need significantly more time to complete write operations than the built-in defaults allow. The hard-coded 10s/60s timeouts cannot account for all device and flash combinations, causing spurious "bulk write failed: Operation timed out" failures during programming.

Expose the ZLP write timeout as a CLI parameter so users can tune it for their hardware without requiring a code change.

Some storage backends (notably SPINOR) need significantly more time
to complete write operations than the built-in defaults allow. The
hard-coded 10s/60s timeouts cannot account for all device and flash
combinations, causing spurious "bulk write failed: Operation timed
out" failures during programming.

Expose the ZLP write timeout as a CLI parameter so users can tune it
for their hardware without requiring a code change.

Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
@andersson
Copy link
Collaborator

No thanks. Such command line argument merely serves the purpose of encoding the timeout in tribal knowledge, instead of making sure that the tool actually works for people.

Let's figure out what the expected behavior is and put that knowledge in the source code.

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