From 32b9f84af68dc46d1777289d936d7a919af0f35e Mon Sep 17 00:00:00 2001 From: Johann Fischer Date: Tue, 12 May 2020 10:04:09 +0200 Subject: [PATCH] drivers: usb_dc_sam: tweak logging for enable, disable, configure Tweak logging for enable, disable, configure. Signed-off-by: Johann Fischer --- drivers/usb/device/usb_dc_sam.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/usb/device/usb_dc_sam.c b/drivers/usb/device/usb_dc_sam.c index 01673e6ad49840..79bdeac1faef3d 100644 --- a/drivers/usb/device/usb_dc_sam.c +++ b/drivers/usb/device/usb_dc_sam.c @@ -469,7 +469,7 @@ int usb_dc_ep_configure(const struct usb_dc_ep_cfg_data *const cfg) return -EBUSY; } - LOG_DBG("ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, + LOG_INF("Configure ep %x, mps %d, type %d", cfg->ep_addr, cfg->ep_mps, cfg->ep_type); /* Reset the endpoint */ @@ -531,6 +531,7 @@ int usb_dc_ep_configure(const struct usb_dc_ep_cfg_data *const cfg) ep_enabled[i] = usb_dc_ep_is_enabled(i); if (ep_enabled[i]) { + LOG_INF("Temporary disable ep idx %x", i); usb_dc_ep_disable(i); } if (ep_configured[i]) { @@ -640,7 +641,8 @@ int usb_dc_ep_enable(u8_t ep) /* Enable SETUP, IN or OUT endpoint interrupts */ usb_dc_ep_enable_interrupts(ep_idx); - LOG_DBG("ep 0x%x", ep); + LOG_INF("Enable ep 0x%x", ep); + return 0; } @@ -660,7 +662,8 @@ int usb_dc_ep_disable(u8_t ep) /* Disable endpoint and SETUP, IN or OUT interrupts */ USBHS->USBHS_DEVEPT &= ~BIT(USBHS_DEVEPT_EPEN0_Pos + ep_idx); - LOG_DBG("ep 0x%x", ep); + LOG_INF("Disable ep 0x%x", ep); + return 0; }