Skip to content
Commit 08bd1c5e authored by Tomasz Moń's avatar Tomasz Moń Committed by Carles Cufí
Browse files

usb: device: Fix ZLP write race condition



ZLP packet has to be read and acknowledged by host just like any other
DATA packet. Do not end transfer until the host actually acknowledged
the trailing ZLP. This fixes the race condition between host and Zephyr
application where the next transfer could be lost if host did not issue
IN token (that would read read ZLP) before the application tried to
start new transfer.

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