Commit 0702794c authored by Sonic Zhang's avatar Sonic Zhang Committed by Greg Kroah-Hartman

USB: musb: error out when anomaly 05000380 is applicable

Since we can't work around anomaly 05000380, throw a build error up and
instruct the user to use a different mode.
Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarAnand Gadiyar <gadiyar@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6bd03e7b
...@@ -41,6 +41,16 @@ ...@@ -41,6 +41,16 @@
* anomaly - 05000465. * anomaly - 05000465.
*/ */
/* The Mentor USB DMA engine on BF52x (silicon v0.0 and v0.1) seems to be
* unstable in host mode. This may be caused by Anomaly 05000380. After
* digging out the root cause, we will change this number accordingly.
* So, need to either use silicon v0.2+ or disable DMA mode in MUSB.
*/
#if ANOMALY_05000380 && defined(CONFIG_BF52x) && \
defined(CONFIG_USB_MUSB_HDRC) && !defined(CONFIG_MUSB_PIO_ONLY)
# error "Please use PIO mode in MUSB driver on bf52x chip v0.0 and v0.1"
#endif
#undef DUMP_FIFO_DATA #undef DUMP_FIFO_DATA
#ifdef DUMP_FIFO_DATA #ifdef DUMP_FIFO_DATA
static void dump_fifo_data(u8 *buf, u16 len) static void dump_fifo_data(u8 *buf, u16 len)
......
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