]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00172292 usb otg: enable dtds postpone free on mx6
authorXinyu Chen <xinyu.chen@freescale.com>
Thu, 19 Apr 2012 09:04:57 +0000 (17:04 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:28 +0000 (08:34 +0200)
We found this bug occurs again on mx6 when running
CTS with ADB over USB. The system will hang without
any log, and screen a little mess.
It's proved to be a known USB IP issue: USB controller
may access a wrong address for the dTD and then hang.
Re enable this workaround to avoid any system unstability.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
drivers/usb/gadget/arcotg_udc.h

index 00c8e8a8cdd7e539c1a5ee3b527ae117fbe5ff3c..8f4b88ebc283113f9cacf615d47d34fe0539b4fa 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009-2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2009-2012 Freescale Semiconductor, Inc. All Rights Reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 #define NEED_IRAM(ep) ((g_iram_size) && \
        ((ep)->desc->bmAttributes == USB_ENDPOINT_XFER_BULK))
 
-#ifdef CONFIG_ARCH_MX5
 #define POSTPONE_FREE_LAST_DTD
-#else
-#undef POSTPONE_FREE_LAST_DTD
-#endif
 
 /* ### define USB registers here
  */