Skip to content

Conversation

@pllee4
Copy link

@pllee4 pllee4 commented Jan 30, 2022

From can_mcan.h in zephyr-v2.7.1, there is helper macro for NUM_TX_EVENT_FIFO_ELEMENTS which seems like should be used for size of can_mcan_tx_event_fifo tx_event_fifo

Not sure whether that was a typo or meant to be using same size of NUM_TX_BUF_ELEMENTS for both can_mcan_tx_event_fifo tx_event_fifo and can_mcan_tx_buffer tx_buffer

This pull request is just trying to add back the helper macro and add on the missing dts property for tx-event-fifo-elements

The value of tx-event-fifo-elements in .dtsi files is set to be the same with tx-buffer-elements for now to avoid unintended changes

Signed-off-by: Pin Loon Lee [email protected]

Replaced duplicate value of NUM_TX_BUF_ELEMENTS for tx_event_fifo.

Signed-off-by: Pin Loon Lee <[email protected]>
To be used in DT_PROP(MCAN_DT_PATH, tx_event_fifo_elements) in
can_mcan.h

Signed-off-by: Pin Loon Lee <[email protected]>
Use same value of tx-buffer-elements for tx-event-fifo-elements.

Signed-off-by: Pin Loon Lee <[email protected]>
@henrikbrixandersen
Copy link
Member

It's meant to be the same size.

@henrikbrixandersen
Copy link
Member

For the record, this was removed in #41851 which also links to #35989, of which this PR is a duplicate.

@henrikbrixandersen
Copy link
Member

@pllee4 Not sure I understand the reasoning behind this PR. Do you have a need for explicitly specifying a Tx event FIFO size?

@pllee4
Copy link
Author

pllee4 commented Jan 30, 2022

For the record, this was removed in #41851 which also links to #35989, of which this PR is a duplicate.

Thanks for the reference, just realized this is a duplicate.

@pllee4
Copy link
Author

pllee4 commented Jan 30, 2022

@pllee4 Not sure I understand the reasoning behind this PR. Do you have a need for explicitly specifying a Tx event FIFO size?

From alexanderwachter, seems like this PR is not needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: CAN area: Devicetree Binding PR modifies or adds a Device Tree binding area: Devicetree platform: STM32 ST Micro STM32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants