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

[Backport v3.5-branch] drivers: can: shell: fully initialize frame before sending and use correct DLC in output #73321

Conversation

henrikbrixandersen
Copy link
Member

Backport 6a070ee~2..6a070ee from #73310

Fixes: #73310
Fixes: #73314

Zerorise the CAN frame before filling in data to ensure all data bytes are
initialized.

Fixes: zephyrproject-rtos#73309

Signed-off-by: Henrik Brix Andersen <[email protected]>
(cherry picked from commit fb4f67b)
Print the raw DLC when enqueuing a CAN frame for sending, not the
corresponding number of bytes.

Fixes: zephyrproject-rtos#73309

Signed-off-by: Henrik Brix Andersen <[email protected]>
(cherry picked from commit 6a070ee)
@henrikbrixandersen henrikbrixandersen added area: CAN Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. Backport Backport PR and backport failure issues labels May 27, 2024
@henrikbrixandersen henrikbrixandersen added this to the v3.5.1 milestone May 27, 2024
@henrikbrixandersen henrikbrixandersen self-assigned this May 27, 2024
@henrikbrixandersen henrikbrixandersen linked an issue May 27, 2024 that may be closed by this pull request
@henrikbrixandersen henrikbrixandersen changed the title drivers: can: shell: fully initialize frame before sending [Backport v3.5-branch] drivers: can: shell: fully initialize frame before sending and use correct DLC in output May 27, 2024
@jhedberg jhedberg merged commit d3f72d7 into zephyrproject-rtos:v3.5-branch Jun 2, 2024
21 checks passed
@henrikbrixandersen henrikbrixandersen deleted the backport-73310-to-v3.5-branch branch June 3, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CAN Backport Backport PR and backport failure issues Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Backport v3.5-branch] Failed to backport #73310
6 participants