diff options
| author | Sakethram Bommisetti <sakethram.bommisetti@stericsson.com> | 2011-09-08 17:53:19 +0530 |
|---|---|---|
| committer | Ulf Hansson <ulf.hansson@stericsson.com> | 2011-09-19 16:07:26 +0200 |
| commit | cc851c0c7146330d1fe1b44f10ff8d88e2c09bb7 (patch) | |
| tree | fffa768c191dd9871cf082aa674648cc62d57ad6 /drivers/usb/musb | |
| parent | 582d742fbb9f0b6ee03294a6b51198a1698da00a (diff) | |
ux500:USB:Disable DMA for device mode
Checking the compatibility and disabling the dma.
ST-Ericsson ID: NA
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: NA
Signed-off-by: Sakethram Bommisetti <sakethram.bommisetti@stericsson.com>
Change-Id: Ic52084e5439932ea688d687c4a61cf76fd861e79
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30467
Diffstat (limited to 'drivers/usb/musb')
| -rw-r--r-- | drivers/usb/musb/ux500_dma.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/musb/ux500_dma.c b/drivers/usb/musb/ux500_dma.c index a9afca7af06..90a26263efd 100644 --- a/drivers/usb/musb/ux500_dma.c +++ b/drivers/usb/musb/ux500_dma.c @@ -259,13 +259,14 @@ 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 true;*/ + return false; } /** |
