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

arch/risc-v/src/mpfs/mpfs_i2c.c: Clean up using priv->status and STOP… #157

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

jlaitine
Copy link

@jlaitine jlaitine commented Sep 11, 2023

… 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

Summary

This fixes some issues in barometer initialization at boot

Impact

Testing

On-table

/* 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

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]>
Copy link

@eenurkka eenurkka left a 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

Copy link

@pussuw pussuw left a comment

Choose a reason for hiding this comment

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

Lgtm

@jlaitine
Copy link
Author

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

@jlaitine jlaitine merged commit 3472e29 into master Sep 12, 2023
8 checks passed
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.

3 participants