From: Xinyu Chen Date: Thu, 19 Apr 2012 09:04:57 +0000 (+0800) Subject: ENGR00172292 usb otg: enable dtds postpone free on mx6 X-Git-Tag: v3.0.35-fsl~1164 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b29d80a57749a48d310d431b59df9bf2a6c4b24f;p=karo-tx-linux.git ENGR00172292 usb otg: enable dtds postpone free on mx6 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 --- diff --git a/drivers/usb/gadget/arcotg_udc.h b/drivers/usb/gadget/arcotg_udc.h index 00c8e8a8cdd7..8f4b88ebc283 100755 --- a/drivers/usb/gadget/arcotg_udc.h +++ b/drivers/usb/gadget/arcotg_udc.h @@ -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 @@ -46,11 +46,7 @@ #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 */