diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2009-11-16 05:49:27 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 14:55:24 -0500 |
commit | 0702794c41c3740e65ec83d393b7cb4d048be954 (patch) | |
tree | e982a1474ad70912116ac85d70b537ff2abc3046 /drivers/usb/musb | |
parent | 6bd03e7b9d0f70928f9cd793326c28e4e08ffc96 (diff) |
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: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/blackfin.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/usb/musb/blackfin.h b/drivers/usb/musb/blackfin.h index b49a362fb9fa..10b7d7584f4b 100644 --- a/drivers/usb/musb/blackfin.h +++ b/drivers/usb/musb/blackfin.h | |||
@@ -41,6 +41,16 @@ | |||
41 | * anomaly - 05000465. | 41 | * anomaly - 05000465. |
42 | */ | 42 | */ |
43 | 43 | ||
44 | /* The Mentor USB DMA engine on BF52x (silicon v0.0 and v0.1) seems to be | ||
45 | * unstable in host mode. This may be caused by Anomaly 05000380. After | ||
46 | * digging out the root cause, we will change this number accordingly. | ||
47 | * So, need to either use silicon v0.2+ or disable DMA mode in MUSB. | ||
48 | */ | ||
49 | #if ANOMALY_05000380 && defined(CONFIG_BF52x) && \ | ||
50 | defined(CONFIG_USB_MUSB_HDRC) && !defined(CONFIG_MUSB_PIO_ONLY) | ||
51 | # error "Please use PIO mode in MUSB driver on bf52x chip v0.0 and v0.1" | ||
52 | #endif | ||
53 | |||
44 | #undef DUMP_FIFO_DATA | 54 | #undef DUMP_FIFO_DATA |
45 | #ifdef DUMP_FIFO_DATA | 55 | #ifdef DUMP_FIFO_DATA |
46 | static void dump_fifo_data(u8 *buf, u16 len) | 56 | static void dump_fifo_data(u8 *buf, u16 len) |