summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/patches-3.7
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-12-19 16:20:24 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-12-19 16:20:24 +0000
commit3d8c2250dcc381ef7b6f9a2a77a3f7928a347fe5 (patch)
treeb47ae77daf5c7afa6075f4bfb11a5f238b105fd4 /target/linux/lantiq/patches-3.7
parentc8e772f18ff31566e342cd44fbd7a6b2bc11efb2 (diff)
[lantiq] adds a fix for ar8216 mii detection on etop driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34795 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-3.7')
-rw-r--r--target/linux/lantiq/patches-3.7/0304-etop.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-3.7/0304-etop.patch b/target/linux/lantiq/patches-3.7/0304-etop.patch
new file mode 100644
index 0000000000..df69894577
--- /dev/null
+++ b/target/linux/lantiq/patches-3.7/0304-etop.patch
@@ -0,0 +1,33 @@
+Index: linux-3.7.1/drivers/net/ethernet/lantiq_etop.c
+===================================================================
+--- linux-3.7.1.orig/drivers/net/ethernet/lantiq_etop.c 2012-12-19 17:06:46.282857707 +0100
++++ linux-3.7.1/drivers/net/ethernet/lantiq_etop.c 2012-12-19 17:09:26.710861534 +0100
+@@ -335,16 +335,17 @@
+ ltq_etop_hw_init(struct net_device *dev)
+ {
+ struct ltq_etop_priv *priv = netdev_priv(dev);
++ int mii_mode = priv->mii_mode;
+
+ clk_enable(priv->clk_ppe);
+
+ if (of_machine_is_compatible("lantiq,ar9")) {
+ ltq_etop_gbit_init(dev);
+ /* force the etops link to the gbit to MII */
+- priv->mii_mode = PHY_INTERFACE_MODE_MII;
++ mii_mode = PHY_INTERFACE_MODE_MII;
+ }
+
+- switch (priv->mii_mode) {
++ switch (mii_mode) {
+ case PHY_INTERFACE_MODE_RMII:
+ ltq_etop_w32_mask(ETOP_MII_MASK,
+ ETOP_MII_REVERSE, LTQ_ETOP_CFG);
+@@ -369,7 +370,7 @@
+ break;
+ }
+ netdev_err(dev, "unknown mii mode %d\n",
+- priv->mii_mode);
++ mii_mode);
+ return -ENOTSUPP;
+ }
+