projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
atheros: fix mdio bus registration for multiple ethernet interfaces
[openwrt/svn-archive/archive.git]
/
target
/
linux
/
atheros
/
patches-2.6.28
/
200-ar2313_enable_mvswitch.patch
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 88ffad62d075871ec9daf3920926f9ed7e418a00..8e75d75d84ee647640692ec20537606930c03aa6 100644
(file)
--- 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
--- a/drivers/net/ar231x.c
+++ b/drivers/net/ar231x.c
-@@ -73
5,6 +735
,7 @@ static void ar231x_load_rx_ring(struct n
+@@ -73
6,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;
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;
if (sp->rx_skb[idx])
break;
-@@ -75
3,7 +754
,9 @@ static void ar231x_load_rx_ring(struct n
+@@ -75
4,7 +755
,9 @@ static void ar231x_load_rx_ring(struct n
* Make sure IP header starts on a fresh cache line.
*/
skb->dev = dev;
* 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];
sp->rx_skb[idx] = skb;
rd = (ar231x_descr_t *) & sp->rx_ring[idx];
-@@ -82
8,6 +831
,7 @@ static int ar231x_rx_int(struct net_devi
+@@ -82
9,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) {
/* 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 */
skb = sp->rx_skb[idx];
/* set skb */
-@@ -83
5,13 +839
,17 @@ static int ar231x_rx_int(struct net_devi
+@@ -83
6,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;
((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);
/* reset descriptor's curr_addr */
rxdesc->addr = virt_to_phys(skb_new->data);
-@@ -124
3,6 +1251
,8 @@ static int ar231x_mdiobus_probe (struct
+@@ -124
4,6 +1252
,8 @@ static int ar231x_mdiobus_probe (struct
return PTR_ERR(phydev);
}
return PTR_ERR(phydev);
}