Skip to content
Commit 4db14f83 authored by Tomasz Moń's avatar Tomasz Moń Committed by Henrik Brix Andersen
Browse files

drivers: udc_dwc2: Fix timeouts when disabling endpoints



Do not set NAK bit again for endpoints that already have NAK bit set.
Do not wait for OUT endpoint 0 disable because it cannot be disabled by
application (DOEPCTL0 EPDis bit is Read-Only).

Disable endpoints before disabling interrupts because it is necessary to
handle RXFLVL interrupt (in Slave mode) for GOUTNAKEFF to become active.

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