Skip to content
Permalink
Browse files

usb: device: Add debug logs catching re-enable failures

Add extra logs catching problem with re-enabling endpoints.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information...
finikorg authored and carlescufi committed May 16, 2019
1 parent 437ee50 commit 83f625b4ccd34757630b6722a2704abb8592d880
Showing with 2 additions and 0 deletions.
  1. +2 −0 subsys/usb/usb_device.c
@@ -492,10 +492,12 @@ static bool set_endpoint(const struct usb_ep_descriptor *ep_desc)
ep_cfg.ep_addr, ep_cfg.ep_type, ep_cfg.ep_mps);

if (usb_dc_ep_configure(&ep_cfg) < 0) {
LOG_ERR("Failed to configure endpoint %x", ep_cfg.ep_addr);
return false;
}

if (usb_dc_ep_enable(ep_cfg.ep_addr) < 0) {
LOG_ERR("Failed to enable endpoint %x", ep_cfg.ep_addr);
return false;
}

0 comments on commit 83f625b

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