Skip to content

Commit

Permalink
usb: gadget: udc: atmel: Use dev_warn() to display EP configuration e…
Browse files Browse the repository at this point in the history
…rror

Use dev_warn() to display EP configuration error to avoid silent failure.

Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com>
  • Loading branch information
cristibirsan authored and noglitch committed Mar 22, 2017
1 parent 97174ef commit 9e0f78e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usb/gadget/udc/atmel_usba_udc.c
Expand Up @@ -1851,7 +1851,7 @@ static irqreturn_t usba_udc_irq(int irq, void *devid)
* but it's clearly harmless...
*/
if (!(usba_ep_readl(ep0, CFG) & USBA_EPT_MAPPED))
dev_dbg(&udc->pdev->dev,
dev_warn(&udc->pdev->dev,
"ODD: EP0 configuration is invalid!\n");

/* Preallocate other endpoints */
Expand All @@ -1860,8 +1860,8 @@ static irqreturn_t usba_udc_irq(int irq, void *devid)
ep = &udc->usba_ep[i];
usba_ep_writel(ep, CFG, ep->ept_cfg);
if (!(usba_ep_readl(ep, CFG) & USBA_EPT_MAPPED))
dev_dbg(&udc->pdev->dev,
"ODD: EP%d configuration is invalid!\n", i);
dev_warn(&udc->pdev->dev,
"ODD: EP%d configuration is invalid!\n", i);
}
}

Expand Down

0 comments on commit 9e0f78e

Please sign in to comment.