commit | 73e3fcabc0f09bac77d6fd43d81c7ef661a953a0 | [log] [tgz] |
---|---|---|
author | Tomasz Moń <tomasz.mon@nordicsemi.no> | Mon Jan 02 10:34:32 2023 +0100 |
committer | Carles Cufí <carles.cufi@nordicsemi.no> | Wed Jan 04 10:33:35 2023 +0100 |
tree | 92f1c098d522a51bba205db0369c5bae95d637d8 | |
parent | 58c924ec569afceaa96d8e771a91c797b978c81b [diff] |
usb: dfu: Schedule timer handler from USB workqueue Use k_work_delayable instead of k_timer in order to execute timeout in USB workqueue context instead of ISR context. This fixes Will-Detach on targets where usb_dc_detach() uses functions not allowed in ISR context, e.g. nrfx usb_dc_detach() acquires mutex. Fixes: c27d48c89ae6 ("usb: dfu: Support DFU with WinUSB on Windows") Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>