-
Notifications
You must be signed in to change notification settings - Fork 8.2k
tests: drivers: can: api: fix misunderstood use of ESI flag #80380
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
tests: drivers: can: api: fix misunderstood use of ESI flag #80380
Conversation
Fix the test for sending frames with the CAN_FRAME_ESI flag set. Sending frames with this flag set in software is never allowed. Fixes: 8023a58 Signed-off-by: Henrik Brix Andersen <[email protected]>
|
The test introduced in 8023a58 is wrong and holding back both local pre-v4.0.0-rc1 testing and PRs targeting v4.0.0-rc1. |
In my opinion, test introduced in 8023a58 was correct. @henrikbrixandersen : Could You comment on whether there are any errors in my reasoning? [low priority] |
| * @brief Test error when CAN FD Error State Indicator (ESI) is set on transmit frame. | ||
| * | ||
| * CAN FD Error State Indicator (ESI) indicates that the transmitting node is | ||
| * in error-passive state. Only valid in combination with CAN_FRAME_FDF. |
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.
This was copied from the CAN API documentation at
https://docs.zephyrproject.org/latest/doxygen/html/group__can__interface.html#ga83f8b7af6eb45e43aaac355de3e69e52
Is it worth to make changes there too?
Fix the test for sending frames with the CAN_FRAME_ESI flag set. Sending frames with this flag set in software is never allowed.
Fixes: 8023a58