aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-08-01 20:47:55 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-08-01 20:47:55 +0000
commit53221b4587800ee4d9c35552568cd1a6e170abcf (patch)
tree9c300c401cfdb1ba062e8d11c4fae7c789f58a3b /target/linux/brcm47xx
parent7b7322f1f22b4baafeee82f4391c23cdae012852 (diff)
downloadmaster-187ad058-53221b4587800ee4d9c35552568cd1a6e170abcf.tar.gz
master-187ad058-53221b4587800ee4d9c35552568cd1a6e170abcf.tar.bz2
master-187ad058-53221b4587800ee4d9c35552568cd1a6e170abcf.zip
brcm47xx: use lib phy when tg3 is in use
This is untested, but probably needed to make it work with the phy lib switch driver. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37649 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx')
-rw-r--r--target/linux/brcm47xx/patches-3.10/780-tg3-phylib.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/patches-3.10/780-tg3-phylib.patch b/target/linux/brcm47xx/patches-3.10/780-tg3-phylib.patch
new file mode 100644
index 0000000000..726be2a067
--- /dev/null
+++ b/target/linux/brcm47xx/patches-3.10/780-tg3-phylib.patch
@@ -0,0 +1,14 @@
+--- a/drivers/net/ethernet/broadcom/tg3.c
++++ b/drivers/net/ethernet/broadcom/tg3.c
+@@ -17176,8 +17176,10 @@ static int tg3_init_one(struct pci_dev *
+ tg3_flag_set(tp, FLUSH_POSTED_WRITES);
+ if (ssb_gige_one_dma_at_once(pdev))
+ tg3_flag_set(tp, ONE_DMA_AT_ONCE);
+- if (ssb_gige_have_roboswitch(pdev))
++ if (ssb_gige_have_roboswitch(pdev)) {
++ tg3_flag_set(tp, USE_PHYLIB);
+ tg3_flag_set(tp, ROBOSWITCH);
++ }
+ if (ssb_gige_is_rgmii(pdev))
+ tg3_flag_set(tp, RGMII_MODE);
+ }