Skip to content
Permalink
Browse files

usb: Add log for endpoint assignment

Log fixed endpoint address.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information...
finikorg authored and nashif committed May 3, 2019
1 parent 4626a8c commit b4204631ee8ff8391bb1394460d42b8618cd6ca7
Showing with 3 additions and 0 deletions.
  1. +3 −0 subsys/usb/usb_descriptor.c
@@ -253,6 +253,9 @@ static int usb_validate_ep_cfg_data(struct usb_ep_descriptor * const ep_descr,
ep_cfg.ep_addr = idx;
}
if (!usb_dc_ep_check_cap(&ep_cfg)) {
LOG_DBG("Fixing EP address %x -> %x",
ep_descr->bEndpointAddress,
ep_cfg.ep_addr);
ep_descr->bEndpointAddress = ep_cfg.ep_addr;
ep_data[i].ep_addr = ep_cfg.ep_addr;
if (ep_cfg.ep_addr & USB_EP_DIR_IN) {

0 comments on commit b420463

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