Skip to content

Conversation

@H-Nestler
Copy link

Only the upper nibble of interface identifire (id) should put into CFG bits 15 and 14 (ATC_DST_PER_MSB), because the lower four bits are always in bits 3 to 0 (ATC_DST_PER). Same for ATC_SRC_PER_MSB.
Typically effect of this bug are loosing charcters on serial output with DMA enabled, because the flow controller would connect with wrong interface.

Only the upper nibble of interface identifire (id) should put into CFG bits 15 and 14 (ATC_DST_PER_MSB), because the lower four bits are always in bits 3 to 0 (ATC_DST_PER). Same for ATC_SRC_PER_MSB.
Typically effect of this bug are loosing charcters on serial output with DMA enabled, because the flow controller would connect with wrong interface.
atdma_sg->len and desc->sg[i].len are the same pointer to variable "len". Only need once.
Sometime was used "atdma_sg->len", other cases was used "desc->sg[i].len". Use same coding style for all settings of descriptor length.
at_hdmac: Always use atdma_sg->len for desc->sg[i].len
@H-Nestler H-Nestler closed this Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant