diff options
author | Peter Chen <peter.chen@freescale.com> | 2010-08-25 15:17:14 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2010-08-25 15:34:50 +0800 |
commit | 2fbdcbfa8ae09d0dfce72e75d8f8893cc55d9491 (patch) | |
tree | 552994f2ae0e3dab26428d7c36ea4d496b04114f | |
parent | 50b67925ea8968119dfa5332d39047b13e1963dd (diff) |
ENGR00126652 usb-gadget: Add error notice when it happens usb system error
The usb system error can't be recoveried, So it is better having an
error message notice when this error occurs. For mx508, if the dma
buffer is the invalid address(usb subsystem can't visit this address),
There will be a system error interrupt, but the usb still will transfer data
to host, so the software needs to check usb dma buffer address.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
-rw-r--r-- | drivers/usb/gadget/arcotg_udc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/usb/gadget/arcotg_udc.c b/drivers/usb/gadget/arcotg_udc.c index 161557f4b2a9..21a0a5501427 100644 --- a/drivers/usb/gadget/arcotg_udc.c +++ b/drivers/usb/gadget/arcotg_udc.c @@ -2157,7 +2157,13 @@ static irqreturn_t fsl_udc_irq(int irq, void *_udc) } if (irq_src & (USB_STS_ERR | USB_STS_SYS_ERR)) { - VDBG("Error IRQ %x ", irq_src); + printk(KERN_ERR "Error IRQ %x ", irq_src); + if (irq_src & USB_STS_SYS_ERR) { + printk(KERN_ERR "This error can't be recoveried, \ + please reboot your board\n"); + printk(KERN_ERR "If this error happens frequently, \ + please check your dma buffer\n"); + } } spin_unlock_irqrestore(&udc->lock, flags); |