commit | c4a7d96c04ed36ed752ab09400295392532c68af | [log] [tgz] |
---|---|---|
author | Josh Gao <josh@jmgao.dev> | Sat Feb 29 04:04:58 2020 -0800 |
committer | Johan Hedberg <johan.hedberg@gmail.com> | Tue Mar 10 18:32:47 2020 +0200 |
tree | 6b4c43897aee55240b2b89cbe5ff0da047b51c3c | |
parent | 92a31f1a40e760bc756128bb620e16a9141dcf5b [diff] |
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: Josh Gao <josh@jmgao.dev>