Commit fcc9634c authored by Cristian Birsan's avatar Cristian Birsan Committed by Felipe Balbi

usb: gadget: udc: atmel: Use dev_err() to display EP configuration error

Use dev_err() to display EP configuration error to avoid silent failure.
Signed-off-by: default avatarCristian Birsan <cristian.birsan@microchip.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 9840354f
...@@ -1851,7 +1851,7 @@ static irqreturn_t usba_udc_irq(int irq, void *devid) ...@@ -1851,7 +1851,7 @@ static irqreturn_t usba_udc_irq(int irq, void *devid)
* but it's clearly harmless... * but it's clearly harmless...
*/ */
if (!(usba_ep_readl(ep0, CFG) & USBA_EPT_MAPPED)) if (!(usba_ep_readl(ep0, CFG) & USBA_EPT_MAPPED))
dev_dbg(&udc->pdev->dev, dev_err(&udc->pdev->dev,
"ODD: EP0 configuration is invalid!\n"); "ODD: EP0 configuration is invalid!\n");
/* Preallocate other endpoints */ /* Preallocate other endpoints */
...@@ -1860,7 +1860,7 @@ static irqreturn_t usba_udc_irq(int irq, void *devid) ...@@ -1860,7 +1860,7 @@ static irqreturn_t usba_udc_irq(int irq, void *devid)
ep = &udc->usba_ep[i]; ep = &udc->usba_ep[i];
usba_ep_writel(ep, CFG, ep->ept_cfg); usba_ep_writel(ep, CFG, ep->ept_cfg);
if (!(usba_ep_readl(ep, CFG) & USBA_EPT_MAPPED)) if (!(usba_ep_readl(ep, CFG) & USBA_EPT_MAPPED))
dev_dbg(&udc->pdev->dev, dev_err(&udc->pdev->dev,
"ODD: EP%d configuration is invalid!\n", i); "ODD: EP%d configuration is invalid!\n", i);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment