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

fix(beepy): retry failed i2c_puppet polls #168

Merged
merged 4 commits into from
Jul 20, 2023
Merged

fix(beepy): retry failed i2c_puppet polls #168

merged 4 commits into from
Jul 20, 2023

Conversation

hawkw
Copy link
Contributor

@hawkw hawkw commented Jul 19, 2023

Currently, if polling the i2c_puppet keyboard firmware ever fails, the
entire driver just bails out permanently. This is...not good.

This branch adds some retry logic, implemented using a generic retry
utility. I don't know if I love the API for the retry stuff, but
🤷‍♀️ --- perhaps @jamesmunns will have suggestions?

Fixes #161 (hopefully)

@hawkw hawkw requested a review from jamesmunns July 19, 2023 01:24
@hawkw hawkw self-assigned this Jul 19, 2023
Copy link
Contributor

@jamesmunns jamesmunns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No suggestions, but im glad you're logging errors, and once we have metrics this is a thing we should count

@hawkw hawkw merged commit 383a381 into main Jul 20, 2023
5 checks passed
@hawkw hawkw deleted the eliza/retry branch July 20, 2023 16:15
@jamesmunns jamesmunns added platform: D1 Specific to the Allwinner D1 hardware platform area: drivers Related to driver implementation for hardware devices. labels Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: drivers Related to driver implementation for hardware devices. platform: D1 Specific to the Allwinner D1 hardware platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

platform(d1): i2c_puppet driver needs to tolerate transient bus errors
2 participants