Skip to content
Commit f4568525 authored by Jerzy Kasenberg's avatar Jerzy Kasenberg Committed by Anas Nashif
Browse files

drivers: usb_device: smartbond: Fix unnecessary flush



Switching from write to read on EP0 is done when data is
transmitted.
Additionally receiver is enabled when NAK is created in
response to OUT token. This may happen when host sent
ZLP before everything was transmitted.
This case flushed receiver FIFO which could lead to
setup packet corruption.

Signed-off-by: default avatarJerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
parent 18a76035
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment