Commit 323f48d
committed
usb: gadget: f_fastboot: make EP buffer size configurable
Introduce CONFIG_USB_FUNCTION_FASTBOOT_EP_BUFFER_SIZE to allow
customization of the endpoint buffer size used for fastboot transfers.
The EP_BUFFER_SIZE must always be an integral multiple of the maxpacket
size (64, 512, or 1024 bytes depending on USB speed), as controllers
like DWC3 expect bulk OUT requests to be divisible by maxpacket size.
On DWC3 controllers operating in SuperSpeed mode, increasing the
endpoint buffer size from the default value significantly improves
download throughput - from approximately 50 MB/s to over 170 MB/s.
This is particularly beneficial for flashing large images during
development or production.
The configurable buffer size allows board maintainers to tune the
trade-off between memory usage and transfer performance based on
their specific requirements and available resources.
Signed-off-by: Anton Burticica <mouse@ya.ru>1 parent 2296adf commit 323f48d
2 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
29 | 41 | | |
30 | 42 | | |
31 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments