Skip to content
Commit fa0a6e22 authored by Tomasz Moń's avatar Tomasz Moń Committed by Johan Hedberg
Browse files

drivers: udc_dwc2: Allocate at least 8 bytes for control OUT



Make sure to feed control OUT endpoint with at least 8 bytes buffer to
make it possible to always receive SETUP data. This solves the assertion
failure in net_buf_add() called inside dwc2_handle_evt_setup() when a
host decides to start new control transfer immediately after it has
issued control transfer with Data Stage from host to device with wLength
less than 8.

Signed-off-by: default avatarTomasz Moń <tomasz.mon@nordicsemi.no>
parent 42c9f79e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment