drivers: usb_dc_nrfx: always reset data toggle in usb_dc_ep_enable

Data toggle should be reset after SetConfiguration or
SetInterface request.
Always reset data toggle in usb_dc_ep_enable.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
Johann Fischer 2020-03-05 23:39:27 +01:00 committed by Johan Hedberg
parent 388c6ea01f
commit 4253280525

View file

@ -1573,6 +1573,7 @@ int usb_dc_ep_enable(const u8_t ep)
return -EINVAL;
}
nrfx_usbd_ep_dtoggle_clear(ep_addr_to_nrfx(ep));
if (ep_ctx->cfg.en) {
return -EALREADY;
}