From 4c44658c0f1eeab7c5b02e618fab8cc18ec7e158 Mon Sep 17 00:00:00 2001 From: hauke Date: Thu, 1 Aug 2013 20:47:55 +0000 Subject: 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37649 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/brcm47xx/patches-3.10/780-tg3-phylib.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 target/linux/brcm47xx/patches-3.10/780-tg3-phylib.patch (limited to 'target') 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); + } -- cgit v1.2.3