diff options
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0004-tg3-Apply-short-DMA-frag-workaround-to-5906.patch')
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0004-tg3-Apply-short-DMA-frag-workaround-to-5906.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0004-tg3-Apply-short-DMA-frag-workaround-to-5906.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0004-tg3-Apply-short-DMA-frag-workaround-to-5906.patch new file mode 100644 index 00000000..15f59068 --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0004-tg3-Apply-short-DMA-frag-workaround-to-5906.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 389c56a2dfc90eecb97841668a8d61fc3424f2c8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Matt Carlson <mcarlson@broadcom.com> | ||
3 | Date: Thu, 7 Jun 2012 12:56:54 +0000 | ||
4 | Subject: [PATCH 004/109] tg3: Apply short DMA frag workaround to 5906 | ||
5 | |||
6 | commit b7abee6ef888117f92db370620ebf116a38e3f4d upstream. | ||
7 | |||
8 | 5906 devices also need the short DMA fragment workaround. This patch | ||
9 | makes the necessary change. | ||
10 | |||
11 | Signed-off-by: Matt Carlson <mcarlson@broadcom.com> | ||
12 | Tested-by: Christian Kujau <lists@nerdbynature.de> | ||
13 | Signed-off-by: David S. Miller <davem@davemloft.net> | ||
14 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||
15 | --- | ||
16 | drivers/net/ethernet/broadcom/tg3.c | 3 ++- | ||
17 | 1 files changed, 2 insertions(+), 1 deletions(-) | ||
18 | |||
19 | diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c | ||
20 | index 2dcac28..6b258d9 100644 | ||
21 | --- a/drivers/net/ethernet/broadcom/tg3.c | ||
22 | +++ b/drivers/net/ethernet/broadcom/tg3.c | ||
23 | @@ -14046,7 +14046,8 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) | ||
24 | } | ||
25 | } | ||
26 | |||
27 | - if (tg3_flag(tp, 5755_PLUS)) | ||
28 | + if (tg3_flag(tp, 5755_PLUS) || | ||
29 | + GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906) | ||
30 | tg3_flag_set(tp, SHORT_DMA_BUG); | ||
31 | |||
32 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719) | ||
33 | -- | ||
34 | 1.7.7.6 | ||
35 | |||