Skip to content
Commit c4a7d96c authored by Josh Gao's avatar Josh Gao Committed by Johan Hedberg
Browse files

usb_dc_stm32: reuse PMA buffer when possible.

Previously, endpoint configuration would reserve memory in the packet
memory area which would never be reclaimed. After this patch, endpoints
will reuse previously allocated memory when possible. We still leak
memory when reconfiguration increases the max packet size for a given
endpoint number, but this fixes the common case.

Bug: https://github.com/zephyrproject-rtos/zephyr/issues/23178


Signed-off-by: default avatarJosh Gao <josh@jmgao.dev>
parent 92a31f1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment