Skip to content

drivers: i2c: Correct i2c_dw target implementation#438

Open
Shreehari-AlifSemi wants to merge 1 commit intoalifsemi:mainfrom
Shreehari-AlifSemi:PSBT-1590-eagle-bolt-spark-zas-i-2-c-target-read-requested-callback-issue
Open

drivers: i2c: Correct i2c_dw target implementation#438
Shreehari-AlifSemi wants to merge 1 commit intoalifsemi:mainfrom
Shreehari-AlifSemi:PSBT-1590-eagle-bolt-spark-zas-i-2-c-target-read-requested-callback-issue

Conversation

@Shreehari-AlifSemi
Copy link
Copy Markdown
Contributor

The I2C target implementation for i2c_dw does not follow the zephyr target specification. The following three issues are corrected:

  1. The read_requested CB is called on every byte of the transaction
    • it must be called only on the first byte of the transaction
  2. The read_processed CB is called on every byte of the transaction
    • it must be called only on bytes following the first byte
  3. Bytes returned in the data ptr param of read_processed are not sent to the controller
    -These bytes must be sent to the controller

The I2C target implementation for i2c_dw does not follow the
zephyr target specification. The following three issues are corrected:

1) The read_requested CB is called on every byte of the transaction
    - it must be called only on the first byte of the transaction
2) The read_processed CB is called on every byte of the transaction
    - it must be called only on bytes following the first byte
3) Bytes returned in the data ptr param of read_processed are not
    sent to the controller
     -These bytes must be sent to the controller

Signed-off-by: James Growden <jgrowden@tenstorrent.com>
Signed-off-by: Shreehari HK <shreehari.hk@alifsemi.com>
Copy link
Copy Markdown
Contributor

@silesh-alifsemi silesh-alifsemi left a comment

Choose a reason for hiding this comment

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

As this is an upstream patch, please use git-cherry-pick so that the details are preserved.

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