diff options
Diffstat (limited to 'drivers/usb')
-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 e334d247537..ecab2bf997e 100644 --- a/drivers/usb/musb/ux500_dma.c +++ b/drivers/usb/musb/ux500_dma.c @@ -263,14 +263,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; } /** |