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: Cristian Birsan <cristian.birsan@microchip.com> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
9840354ff4
commit
fcc9634ce2
|
@ -1851,8 +1851,8 @@ 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 */
|
||||||
n = fifo_mode ? udc->num_ep : udc->configured_ep;
|
n = fifo_mode ? udc->num_ep : udc->configured_ep;
|
||||||
|
@ -1860,8 +1860,8 @@ 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue