summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMichael Hsu <mhsu@nvidia.com>2010-06-14 16:49:03 -0700
committerGary King <gking@nvidia.com>2010-06-15 19:21:08 -0700
commit38d061ef82a022f570f06579472f41fa05bc7b83 (patch)
treebce5060f4e2bc3309c7a345de0120bec9d2e13fe /arch
parent162f2d05be3d9a73e164524bcf0c541ca1e21a58 (diff)
[ARM/tegra] Apply 2.6.29 USB network driver fixes to 2.6.32
Bug 596345 Fixes USB CDC class modem, IP packet corruption. Change-Id: Ib703ed1e226d1d659038f3ebb61674e912ec73c4 Reviewed-on: http://git-master/r/2626 Reviewed-by: Michael Hsu <mhsu@nvidia.com> Tested-by: Michael Hsu <mhsu@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/include/mach/memory.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/memory.h b/arch/arm/mach-tegra/include/mach/memory.h
index 6151bab62af2..5bdf6e37848c 100644
--- a/arch/arm/mach-tegra/include/mach/memory.h
+++ b/arch/arm/mach-tegra/include/mach/memory.h
@@ -24,5 +24,13 @@
/* physical offset of RAM */
#define PHYS_OFFSET UL(0)
+/*
+ * Unaligned DMA causes tegra dma to place data on 4-byte boundary after
+ * expected address. Call to skb_reserve(skb, NET_IP_ALIGN) was causing skb
+ * buffers in usbnet.c to become unaligned.
+ */
+#define NET_IP_ALIGN 0
+#define NET_SKB_PAD L1_CACHE_BYTES
+
#endif