commit | 08bd1c5ec26ce2fd1640d60dd2ca070b75de1f45 | [log] [tgz] |
---|---|---|
author | Tomasz Moń <tomasz.mon@nordicsemi.no> | Thu Oct 26 09:17:46 2023 +0200 |
committer | Carles Cufí <carles.cufi@nordicsemi.no> | Thu Oct 26 13:52:31 2023 +0200 |
tree | 9c0f905344f3d630200bd4ffe9eeef4e2402d5b2 | |
parent | b3de6432069dafa680c0c712bf53d51809ee961b [diff] |
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: Tomasz Moń <tomasz.mon@nordicsemi.no>