summaryrefslogtreecommitdiff
path: root/target/linux/atheros/patches-2.6.28/200-ar2313_enable_mvswitch.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-22 22:10:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-22 22:10:54 +0000
commit8d217b716266993846d4d6921ed75158230d8fb1 (patch)
tree4f58bbb141bcb9a0c6825b9d90fb3414b39de5df /target/linux/atheros/patches-2.6.28/200-ar2313_enable_mvswitch.patch
parentfd11bfec64d313b1d629ac454ebba7cab4339a72 (diff)
downloadmtk-20170518-8d217b716266993846d4d6921ed75158230d8fb1.zip
mtk-20170518-8d217b716266993846d4d6921ed75158230d8fb1.tar.gz
mtk-20170518-8d217b716266993846d4d6921ed75158230d8fb1.tar.bz2
atheros: fix mdio bus registration for multiple ethernet interfaces
SVN-Revision: 14984
Diffstat (limited to 'target/linux/atheros/patches-2.6.28/200-ar2313_enable_mvswitch.patch')
-rw-r--r--target/linux/atheros/patches-2.6.28/200-ar2313_enable_mvswitch.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/atheros/patches-2.6.28/200-ar2313_enable_mvswitch.patch b/target/linux/atheros/patches-2.6.28/200-ar2313_enable_mvswitch.patch
index 88ffad6..8e75d75 100644
--- a/target/linux/atheros/patches-2.6.28/200-ar2313_enable_mvswitch.patch
+++ b/target/linux/atheros/patches-2.6.28/200-ar2313_enable_mvswitch.patch
@@ -1,6 +1,6 @@
--- a/drivers/net/ar231x.c
+++ b/drivers/net/ar231x.c
-@@ -735,6 +735,7 @@ static void ar231x_load_rx_ring(struct n
+@@ -736,6 +736,7 @@ static void ar231x_load_rx_ring(struct n
for (i = 0; i < nr_bufs; i++) {
struct sk_buff *skb;
ar231x_descr_t *rd;
@@ -8,7 +8,7 @@
if (sp->rx_skb[idx])
break;
-@@ -753,7 +754,9 @@ static void ar231x_load_rx_ring(struct n
+@@ -754,7 +755,9 @@ static void ar231x_load_rx_ring(struct n
* Make sure IP header starts on a fresh cache line.
*/
skb->dev = dev;
@@ -19,7 +19,7 @@
sp->rx_skb[idx] = skb;
rd = (ar231x_descr_t *) & sp->rx_ring[idx];
-@@ -828,6 +831,7 @@ static int ar231x_rx_int(struct net_devi
+@@ -829,6 +832,7 @@ static int ar231x_rx_int(struct net_devi
/* alloc new buffer. */
skb_new = dev_alloc_skb(AR2313_BUFSIZE + RX_OFFSET + 128);
if (skb_new != NULL) {
@@ -27,7 +27,7 @@
skb = sp->rx_skb[idx];
/* set skb */
-@@ -835,13 +839,17 @@ static int ar231x_rx_int(struct net_devi
+@@ -836,13 +840,17 @@ static int ar231x_rx_int(struct net_devi
((status >> DMA_RX_LEN_SHIFT) & 0x3fff) - CRC_LEN);
dev->stats.rx_bytes += skb->len;
@@ -48,7 +48,7 @@
/* reset descriptor's curr_addr */
rxdesc->addr = virt_to_phys(skb_new->data);
-@@ -1243,6 +1251,8 @@ static int ar231x_mdiobus_probe (struct
+@@ -1244,6 +1252,8 @@ static int ar231x_mdiobus_probe (struct
return PTR_ERR(phydev);
}