Skip to content

Commit

Permalink
drivers: usb: usb_dc_nrfx: Set cfg.en to false on Reset
Browse files Browse the repository at this point in the history
Set false to enable flag on USB Reset.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information
finikorg committed May 20, 2019
1 parent db237b3 commit b5aefbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/device/usb_dc_nrfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b5aefbd

Please sign in to comment.