drivers: can:can_mcan.h : add back macro NUM_TX_EVENT_FIFO_ELEMENTS #42294
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
From can_mcan.h in zephyr-v2.7.1, there is helper macro for
NUM_TX_EVENT_FIFO_ELEMENTSwhich seems like should be used for size of can_mcan_tx_event_fifo tx_event_fifoNot sure whether that was a typo or meant to be using same size of
NUM_TX_BUF_ELEMENTSfor bothcan_mcan_tx_event_fifo tx_event_fifoandcan_mcan_tx_buffer tx_bufferThis pull request is just trying to add back the helper macro and add on the missing dts property for
tx-event-fifo-elementsThe value of
tx-event-fifo-elementsin .dtsi files is set to be the same withtx-buffer-elementsfor now to avoid unintended changesSigned-off-by: Pin Loon Lee [email protected]