-
Notifications
You must be signed in to change notification settings - Fork 5.2k
CM4 I2C I2C_M_IGNORE_NAK Flag not working #5280
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
Comments
I think the required diff is
However having just been looking at https://forums.raspberrypi.com/viewtopic.php?t=350180, it looks like the error isn't reported until the last message of the transaction. A multi-message transaction with I2C_M_IGNORE_NAK set on one of the earlier messages is still going to report failure. I'm not sure if that can be resolved or not. |
Having just looked at this flag for another issue, it is optional, and availability is signaled to userspace via the I2C_FUNC_PROTOCOL_MANGLING flag - https://www.kernel.org/doc/html/latest/i2c/functionality.html
The i2c-bcm2835 driver doesn't set I2C_FUNC_PROTOCOL_MANGLING, therefore it is technically user error in trying to set it. |
Closing as implemented via 8c4f88c |
Describe the bug
Hi i am working on CM4 module and try to communicate with an i2c device, i try use I2C_M_IGNORE_NAK flag in my message but it do not respond to flag. I mention that in rpi forum and than i get an answer from an rpi engineer "It does look like the I2C_M_IGNORE_NAK flag hasn't been implemented" __
Steps to reproduce the behaviour
Send an i2c message via kernel driver with I2C_M_IGNORE_NAK to test it.
Device (s)
Raspberry Pi CM4
System
Raspberry Pi reference 2022-09-22
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 005a8c73b05a2cab394073150208bf4f069e861a, stage2
version 102f1e848393c2112206fadffaaf86db04e98326 (clean) (release) (start)
Linux doly16gb 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64 GNU/Linux
Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: