Skip to content
Permalink
Browse files

drivers: usb: usb_dc_nrfx: Set cfg.en to false on Reset

Set false to enable flag on USB Reset.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information...
finikorg authored and carlescufi committed May 20, 2019
1 parent a95f638 commit 03ef375f5f4b8a2ff864f97d155a058f3ae5a07a
Showing with 2 additions and 0 deletions.
  1. +2 −0 drivers/usb/device/usb_dc_nrfx.c
@@ -637,6 +637,8 @@ static void ep_ctx_reset(struct nrf_usbd_ep_ctx *ep_ctx)
ep_ctx->buf.curr = ep_ctx->buf.data;
ep_ctx->buf.len = 0U;

ep_ctx->cfg.en = false;

ep_ctx->read_complete = true;
ep_ctx->read_pending = false;
ep_ctx->write_in_progress = false;

0 comments on commit 03ef375

Please sign in to comment.
You can’t perform that action at this time.