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: mcan: fix handling of bus-off status events #69427

Conversation

henrikbrixandersen
Copy link
Member

Fix handling bus-off events in the Bosch M_CAN driver backend:

  • Cancel all pending TX buffers when entering bus-off state
  • Call all pending TX buffer callbacks with -ENETUNREACH when entering bus-off
  • Automatically initiate bus-off recovery if CONFIG_CAN_AUTO_BUS_OFF_RECOVERY=y

Fixes: #68953
Fixes: #69000

Signed-off-by: Henrik Brix Andersen [email protected]
(cherry picked from commit 6e5c1ba)

Fix handling bus-off events in the Bosch M_CAN driver backend:
- Cancel all pending TX buffers when entering bus-off state
- Call all pending TX buffer callbacks with -ENETUNREACH when entering
  bus-off
- Automatically initiate bus-off recovery if
  CONFIG_CAN_AUTO_BUS_OFF_RECOVERY=y

Fixes: zephyrproject-rtos#68953

Signed-off-by: Henrik Brix Andersen <[email protected]>
(cherry picked from commit 6e5c1ba)
@henrikbrixandersen henrikbrixandersen changed the title drivers: can: mcan: fix handling of bus-off status events [backport v3.6-branch] drivers: can: mcan: fix handling of bus-off status events Feb 25, 2024
@henrikbrixandersen henrikbrixandersen changed the title [backport v3.6-branch] drivers: can: mcan: fix handling of bus-off status events [backport v3.5-branch] drivers: can: mcan: fix handling of bus-off status events Feb 25, 2024
@fabiobaltieri fabiobaltieri merged commit 002392c into zephyrproject-rtos:v3.5-branch Mar 5, 2024
20 checks passed
@henrikbrixandersen henrikbrixandersen deleted the backport-68954-to-v3.5-branch branch March 6, 2024 20:40
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
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

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