summaryrefslogtreecommitdiff
path: root/target/linux/brcm47xx
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-08-01 20:47:55 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2013-08-01 20:47:55 +0000
commit7e14fd55fd7b90321f5cc7ba339c8ac8c634034f (patch)
tree776e997a6b57ef0e987b0eeec2196c02d7f3a8bb /target/linux/brcm47xx
parent8966b860678b5cc6586e4adfabc651a8923b46f3 (diff)
downloadmtk-20170518-7e14fd55fd7b90321f5cc7ba339c8ac8c634034f.zip
mtk-20170518-7e14fd55fd7b90321f5cc7ba339c8ac8c634034f.tar.gz
mtk-20170518-7e14fd55fd7b90321f5cc7ba339c8ac8c634034f.tar.bz2
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> SVN-Revision: 37649
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 0000000..726be2a
--- /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);
+ }