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

RFC: Breaking API change: drivers: can: remove CAN_FILTER_FDF flag #65108

Conversation

henrikbrixandersen
Copy link
Member

@henrikbrixandersen henrikbrixandersen commented Nov 13, 2023

Remove the CAN_FILTER_FDF flag for filtering on classic CAN/CAN FD frames as it is not supported natively by any known CAN controller.

Applications can still filter on classic CAN/CAN FD frames in their receive callback functions as needed.

Fixes: #64554
RFC issue: #65109

Note: This currently includes the changes from #65058 in order to remove the mix of software and hardware filtering in the Bosch M_CAN backend completely, which is what led to #64554.

@henrikbrixandersen henrikbrixandersen added RFC Request For Comments: want input from the community area: API Changes to public APIs area: CAN Release Notes To be mentioned in the release notes Breaking API Change Breaking changes to stable, public APIs labels Nov 13, 2023
@henrikbrixandersen henrikbrixandersen changed the title RFC: drivers: can: remove CAN_FILTER_FDF flag RFC: API change: drivers: can: remove CAN_FILTER_FDF flag Nov 13, 2023
@henrikbrixandersen henrikbrixandersen self-assigned this Nov 13, 2023
@henrikbrixandersen henrikbrixandersen added the bug The issue is a bug, or the PR is fixing a bug label Nov 13, 2023
@henrikbrixandersen henrikbrixandersen force-pushed the can_remove_fdf_filtering branch 2 times, most recently from 9b02aa1 to 29668a5 Compare December 11, 2023 09:42
@henrikbrixandersen
Copy link
Member Author

Rebased on main and removed the commits from #65058 for now.

@henrikbrixandersen
Copy link
Member Author

Rebased on main to resolve merge conflicts.

@henrikbrixandersen henrikbrixandersen added this to the v3.6.0 milestone Jan 2, 2024
@henrikbrixandersen henrikbrixandersen force-pushed the can_remove_fdf_filtering branch 2 times, most recently from cb0c663 to 6de5bbc Compare January 11, 2024 16:44
Remove the CAN_FILTER_FDF flag for filtering on classic CAN/CAN FD frames
as it is not supported natively by any known CAN controller.

Applications can still filter on classic CAN/CAN FD frames in their receive
callback functions as needed.

Fixes: zephyrproject-rtos#64554

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
@henrikbrixandersen
Copy link
Member Author

Rebased to resolve merge conflict after 9eb0a55.

@henrikbrixandersen henrikbrixandersen marked this pull request as ready for review January 17, 2024 08:58
@zephyrbot zephyrbot added area: Networking platform: NXP NXP area: native port Host native arch port (native_posix) platform: NXP S32 NXP Semiconductors, S32 labels Jan 17, 2024
@henrikbrixandersen henrikbrixandersen changed the title RFC: API change: drivers: can: remove CAN_FILTER_FDF flag RFC: Breaking API change: drivers: can: remove CAN_FILTER_FDF flag Jan 17, 2024
Add a note about the removal of the CAN_FILTER_FDF flag from the CAN
controller driver API.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
@henrikbrixandersen henrikbrixandersen merged commit 93551a4 into zephyrproject-rtos:main Jan 19, 2024
20 checks passed
@henrikbrixandersen henrikbrixandersen deleted the can_remove_fdf_filtering branch January 19, 2024 09:01
congnguyenhuu added a commit to nxp-zephyr/zephyr that referenced this pull request Jan 23, 2024
…-RX_FIFO

This is driver limitation after removing CAN_FILTER_FDF flag zephyrproject-rtos#65108.
CANXL driver need to know CAN_FILTER_FDF for configuring Rx filter
so that it receives CAN classic or CAN FD frames when using non RX_FIFO.
So need to wrap the CAN_MODE_FD capability that just supports for RX_FIFO.

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
congnguyenhuu added a commit to nxp-zephyr/zephyr that referenced this pull request Jan 23, 2024
…FIFO

This is driver limitation after removing CAN_FILTER_FDF flag zephyrproject-rtos#65108.
CANXL driver need to know CAN_FILTER_FDF for configuring Rx filter
so that it receives CAN classic or CAN FD frames when using non RX_FIFO.
So need to wrap the CAN_MODE_FD capability that just supports for RX_FIFO.

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
congnguyenhuu added a commit to nxp-zephyr/zephyr that referenced this pull request Jan 24, 2024
This is driver limitation after removing CAN_FILTER_FDF flag zephyrproject-rtos#65108.
CANXL driver need to know CAN_FILTER_FDF for configuring Rx filter
so that it receives CAN classic or CAN FD frames when using non RX_FIFO.
So update driver that just supports CAN classic for non RX_FIFO.

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
congnguyenhuu added a commit to nxp-zephyr/zephyr that referenced this pull request Jan 24, 2024
This is driver limitation after removing CAN_FILTER_FDF flag zephyrproject-rtos#65108.
CANXL driver need to know CAN_FILTER_FDF for configuring Rx filter
so that it receives CAN classic or CAN FD frames when using non RX_FIFO.
So update driver that just supports CAN classic for non RX_FIFO.

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
fabiobaltieri pushed a commit that referenced this pull request Jan 24, 2024
This is driver limitation after removing CAN_FILTER_FDF flag #65108.
CANXL driver need to know CAN_FILTER_FDF for configuring Rx filter
so that it receives CAN classic or CAN FD frames when using non RX_FIFO.
So update driver that just supports CAN classic for non RX_FIFO.

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: API Changes to public APIs area: CAN area: native port Host native arch port (native_posix) area: Networking Breaking API Change Breaking changes to stable, public APIs bug The issue is a bug, or the PR is fixing a bug platform: NXP S32 NXP Semiconductors, S32 platform: NXP NXP Release Notes To be mentioned in the release notes RFC Request For Comments: want input from the community
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

drivers: can: mcan Filtering not possible for Regular and Fd frames for the same frame type
4 participants