Commit 9720faec authored by Sonic Zhang's avatar Sonic Zhang Committed by Greg Kroah-Hartman

USB: musb: add work around for Blackfin anomaly 05000456

Only allow USE_MODE1 when the Blackfin part is not affected by anomaly
05000456 (USB Receive Interrupt Is Not Generated in DMA Mode 1) since we
can't support the mode in that case.
Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: default avatarCliff Cai <cliff.cai@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 daf5822f
...@@ -80,6 +80,17 @@ struct musb_hw_ep; ...@@ -80,6 +80,17 @@ struct musb_hw_ep;
#define tusb_dma_omap() 0 #define tusb_dma_omap() 0
#endif #endif
/* Anomaly 05000456 - USB Receive Interrupt Is Not Generated in DMA Mode 1
* Only allow DMA mode 1 to be used when the USB will actually generate the
* interrupts we expect.
*/
#ifdef CONFIG_BLACKFIN
# undef USE_MODE1
# if !ANOMALY_05000456
# define USE_MODE1
# endif
#endif
/* /*
* DMA channel status ... updated by the dma controller driver whenever that * DMA channel status ... updated by the dma controller driver whenever that
* status changes, and protected by the overall controller spinlock. * status changes, and protected by the overall controller spinlock.
......
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