summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorThirupathi Chippakurthy <thirupathi.chippakurthy@stericsson.com>2011-09-13 16:35:14 +0530
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 16:07:33 +0200
commit366c6d0c0f2f8d1e65212d22dab4a312e92b20dd (patch)
treebd7f7a4c809aac0183787abe75f558da9e78ae09 /drivers/usb
parent3775861c930e459caa1ce6090138822a383bc51d (diff)
musb: host: linux Kernel3.0 host dma disabled
The dma driver disabled in Host Mode. Only enabled in Device mode. ST-Ericsson ID: 352334 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by:<thirupathi.chippakurthy@stericsson.com> Change-Id: I5d26d2990d1c01a2ce461eb87f2e8d4518f0e40a Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30823 Reviewed-by: Praveena NADAHALLY <praveen.nadahally@stericsson.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/musb/musb_core.c1
-rw-r--r--drivers/usb/musb/musb_host.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 0981925deb8..f882a2a47fd 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -1932,7 +1932,6 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
status = -ENODEV;
goto fail0;
}
- dev->dma_mask = 0 ;
/* allocate */
musb = allocate_instance(dev, plat->config, ctrl);
if (!musb) {
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index ff02e5924fb..ed496068192 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -46,6 +46,7 @@
#include "musb_core.h"
#include "musb_host.h"
+static bool is_host_dma_enabled;
/* MUSB HOST status 22-mar-2006
*
@@ -710,7 +711,7 @@ static void musb_ep_program(struct musb *musb, u8 epnum,
musb_ep_select(mbase, epnum);
/* candidate for DMA? */
- dma_controller = musb->dma_controller;
+ dma_controller = is_host_dma_enabled ? musb->dma_controller : NULL;
if (is_dma_capable() && epnum && dma_controller) {
dma_channel = is_out ? hw_ep->tx_channel : hw_ep->rx_channel;
if (!dma_channel) {
@@ -2274,6 +2275,7 @@ static int musb_h_start(struct usb_hcd *hcd)
*/
hcd->state = HC_STATE_RUNNING;
musb->port1_status = 0;
+ is_host_dma_enabled = false;
return 0;
}