Skip to content

Commit

Permalink
usb: Add log for endpoint assignment
Browse files Browse the repository at this point in the history
Log fixed endpoint address.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information
finikorg authored and nashif committed May 6, 2019
1 parent 4626a8c commit b420463
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions subsys/usb/usb_descriptor.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ static int usb_validate_ep_cfg_data(struct usb_ep_descriptor * const ep_descr,
ep_cfg.ep_addr = idx; ep_cfg.ep_addr = idx;
} }
if (!usb_dc_ep_check_cap(&ep_cfg)) { 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_descr->bEndpointAddress = ep_cfg.ep_addr;
ep_data[i].ep_addr = ep_cfg.ep_addr; ep_data[i].ep_addr = ep_cfg.ep_addr;
if (ep_cfg.ep_addr & USB_EP_DIR_IN) { if (ep_cfg.ep_addr & USB_EP_DIR_IN) {
Expand Down

0 comments on commit b420463

Please sign in to comment.