commit | a61afc8eb1131904c157496c278268e434b19d7e | [log] [tgz] |
---|---|---|
author | Tomasz Moń <tomasz.mon@nordicsemi.no> | Tue Feb 04 13:29:12 2025 +0100 |
committer | Benjamin Cabé <kartben@gmail.com> | Fri Feb 07 14:33:16 2025 +0100 |
tree | 34ab27d501affd7289da11dd4bcc4a8315f4c2a3 | |
parent | d4cc8de6448198a2ed6e66fc2c227b8d730ada78 [diff] |
drivers: udc_dwc2: Allocate multiple of bMaxPacketSize0 Control OUT buffers must be multiple of bMaxPacketSize0 in Buffer DMA mode. While the transfer can be configured to smaller values, DMA will write data past the buffer (and transfer size counter will underflow) if the packet on the bus is larger or if there are multiple back-to-back SETUP packets. Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>