8000 chips/apollo3: A collection of I2C fixes by alistair23 · Pull Request #3840 · tock/tock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chips/apollo3: A collection of I2C fixes #3840

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

Merged
merged 4 commits into from
Feb 14, 2024

Conversation

alistair23
Copy link
Contributor

Pull Request Overview

This is a collection of fixes discovered while trying to send large (~128 byte) transfers

Testing Strategy

TODO or Help Wanted

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Previously if a THR (threshold) or CMDCMP (command complete) interrupt
occured we handled them both the same way. This works for small amounts
of data as we could finish sending all the data before triggering the
command complete callback.

If trying to send large payloads (128 bytes for example) we actually get
a number of THR interrupts before we have completed the write operation.
The existing logic would return complete before we had finished the
operation.

This patch splits the hadling of THR and CMDCMP so we will only return
if the hardware provides a CMDCMP interrupt.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
@bradjc bradjc added this pull request to the merge queue Feb 14, 2024
Merged via the queue into tock:master with commit dd12b13 Feb 14, 2024
@alistair23 alistair23 deleted the alistair/apollo3-i2c-fixes branch February 14, 2024 23:04
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
0