summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-omap-2.6.29/musb/0022-musb-use-dma-mode-1-for-TX-if-transfer-size-equals.patch
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-kernel/linux/linux-omap-2.6.29/musb/0022-musb-use-dma-mode-1-for-TX-if-transfer-size-equals.patch
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap-2.6.29/musb/0022-musb-use-dma-mode-1-for-TX-if-transfer-size-equals.patch')
-rw-r--r--meta/recipes-kernel/linux/linux-omap-2.6.29/musb/0022-musb-use-dma-mode-1-for-TX-if-transfer-size-equals.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap-2.6.29/musb/0022-musb-use-dma-mode-1-for-TX-if-transfer-size-equals.patch b/meta/recipes-kernel/linux/linux-omap-2.6.29/musb/0022-musb-use-dma-mode-1-for-TX-if-transfer-size-equals.patch
new file mode 100644
index 0000000000..16b5b9908b
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-omap-2.6.29/musb/0022-musb-use-dma-mode-1-for-TX-if-transfer-size-equals.patch
@@ -0,0 +1,38 @@
1From ba59a0812ba0e223bd0af8f4dea6c971b6289696 Mon Sep 17 00:00:00 2001
2From: Anand Gadiyar <gadiyar-l0cyMroinI0@public.gmane.org>
3Date: Thu, 2 Apr 2009 12:07:08 -0700
4Subject: [PATCH] musb: use dma mode 1 for TX if transfer size equals maxpacket (v2)
5
6Currently, with Inventra DMA, we use Mode 0 if transfer size is less
7than or equal to the endpoint's maxpacket size. This requires that
8we explicitly set TXPKTRDY for that transfer.
9
10However the musb_g_tx code will not set TXPKTRDY twice if the last
11transfer is exactly equal to maxpacket, even if request->zero is set.
12Using Mode 1 will solve this; a better fix might be in musb_g_tx().
13
14Without this change, musb will not correctly send out a ZLP if the
15last transfer is the maxpacket size and request->zero is set.
16
17Signed-off-by: Anand Gadiyar <gadiyar-l0cyMroinI0@public.gmane.org>
18Signed-off-by: David Brownell <dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
19---
20 drivers/usb/musb/musb_gadget.c | 2 +-
21 1 files changed, 1 insertions(+), 1 deletions(-)
22
23diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
24index bc197b2..e8f920c 100644
25--- a/drivers/usb/musb/musb_gadget.c
26+++ b/drivers/usb/musb/musb_gadget.c
27@@ -310,7 +310,7 @@ static void txstate(struct musb *musb, struct musb_request *req)
28 /* setup DMA, then program endpoint CSR */
29 request_size = min(request->length,
30 musb_ep->dma->max_len);
31- if (request_size <= musb_ep->packet_sz)
32+ if (request_size < musb_ep->packet_sz)
33 musb_ep->dma->desired_mode = 0;
34 else
35 musb_ep->dma->desired_mode = 1;
36--
371.6.0.4
38