diff options
author | Thirupathi Chippakurthy <thirupathi.chippakurthy@stericsson.com> | 2011-09-26 19:48:44 +0530 |
---|---|---|
committer | Rabin VINCENT <rabin.vincent@stericsson.com> | 2011-09-27 08:15:32 +0200 |
commit | b986d4e86ab7beb5562716d1721c9d4c6ba6de98 (patch) | |
tree | 844eb67d6ce4a962aed693a3e8998c9632cfa0ac | |
parent | b50fb2e96cd87e8851f6788eecf6381f8eabde6a (diff) |
Revert "ux500:USB:Disable DMA for device mode"
This reverts commit cc851c0c7146330d1fe1b44f10ff8d88e2c09bb7.
Change-Id: I437b587c6566170ea3f65cad6f2f72531b5fe33b
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31992
Tested-by: Thirupathi CHIPPAKURTHY <thirupathi.chippakurthy@stericsson.com>
Reviewed-by: Praveena NADAHALLY <praveen.nadahally@stericsson.com>
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
-rw-r--r-- | drivers/usb/musb/ux500_dma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/musb/ux500_dma.c b/drivers/usb/musb/ux500_dma.c index 1e2fe3198f1..53925443ebd 100644 --- a/drivers/usb/musb/ux500_dma.c +++ b/drivers/usb/musb/ux500_dma.c @@ -258,14 +258,13 @@ static void ux500_dma_channel_release(struct dma_channel *channel) static int ux500_dma_is_compatible(struct dma_channel *channel, u16 maxpacket, void *buf, u32 length) { - /*if ((maxpacket & 0x3) || + if ((maxpacket & 0x3) || ((int)buf & 0x3) || (length < 512) || (length & 0x3)) return false; else - return true;*/ - return false; + return true; } /** |