-
Notifications
You must be signed in to change notification settings - Fork 0
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
arch/risc-v/src/mpfs/mpfs_i2c.c: Clean up using priv->status and STOP… #157
Conversation
5099809
to
c835c37
Compare
arch/risc-v/src/mpfs/mpfs_i2c.c
Outdated
/* FPGA driver terminates all transactions with STOP sent irq | ||
* if there has been no errors, the transfer succeeded. | ||
* Due to the IP bug that extra data & STOPs can be sent after | ||
* the actual transaction, filter out any extra stops wit |
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.
wit -> with
… interrupts - There are occasional extra STOPs being sent due to an IP bug when using an FPGA based I2C. Add a flag "inflight" to mask out extra STOP interrupts when using the FPGA based implementation - There are no MPFS_I2C_ST_STOP_SENT irq's "initally". It is just already either success or still in progress Signed-off-by: Jukka Laitinen <[email protected]>
c835c37
to
bcf02ad
Compare
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.
Looks good, only testing well will give the final verdict
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.
Lgtm
Positive test results, seems to also fix the issue where "reboot" command gets stuck at i2c devices sometimes for long time(out)s. Merging and up-streaming |
… interrupts
Summary
This fixes some issues in barometer initialization at boot
Impact
Testing
On-table