mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-29 13:55:31 +02:00
d66d9ebb2e
This will enable the second Ethernet MAC in most cases, but will allow previously non working devices to work. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20022 3c298f89-4303-0410-b956-a3cf2f4a3e73
17 lines
613 B
Diff
17 lines
613 B
Diff
Index: linux-2.6.32.9/drivers/net/cpmac.c
|
|
===================================================================
|
|
--- linux-2.6.32.9.orig/drivers/net/cpmac.c 2010-03-06 23:12:46.000000000 +0100
|
|
+++ linux-2.6.32.9/drivers/net/cpmac.c 2010-03-06 23:13:14.000000000 +0100
|
|
@@ -1132,8 +1132,9 @@
|
|
}
|
|
|
|
if (phy_id == PHY_MAX_ADDR) {
|
|
- dev_err(&pdev->dev, "no PHY present\n");
|
|
- return -ENODEV;
|
|
+ dev_err(&pdev->dev, "no PHY present, falling back to switch mode\n");
|
|
+ strncpy(mdio_bus_id, "0", MII_BUS_ID_SIZE); /* fixed phys bus */
|
|
+ phy_id = pdev->id;
|
|
}
|
|
|
|
dev = alloc_etherdev_mq(sizeof(*priv), CPMAC_QUEUES);
|