ar71xx: refresh patches
[openwrt.git] / target / linux / ar7 / patches-2.6.32 / 950-cpmac_fallback_switch.patch
1 Index: linux-2.6.32.9/drivers/net/cpmac.c
2 ===================================================================
3 --- linux-2.6.32.9.orig/drivers/net/cpmac.c 2010-03-06 23:12:46.000000000 +0100
4 +++ linux-2.6.32.9/drivers/net/cpmac.c 2010-03-06 23:13:14.000000000 +0100
5 @@ -1132,8 +1132,9 @@
6 }
7
8 if (phy_id == PHY_MAX_ADDR) {
9 - dev_err(&pdev->dev, "no PHY present\n");
10 - return -ENODEV;
11 + dev_err(&pdev->dev, "no PHY present, falling back to switch mode\n");
12 + strncpy(mdio_bus_id, "0", MII_BUS_ID_SIZE); /* fixed phys bus */
13 + phy_id = pdev->id;
14 }
15
16 dev = alloc_etherdev_mq(sizeof(*priv), CPMAC_QUEUES);
This page took 0.038996 seconds and 5 git commands to generate.