Ticket #6185: 950-cpmac-force-fixed-mdio.patch

File 950-cpmac-force-fixed-mdio.patch, 439 bytes (added by Xin Zhen (LoneStar) <xlonestar2000@…>, 8 years ago)

This patch is a hack that forces the two cpmac connect to Fixed Mdio Bus. Put it into target/linux/ar7/patches-2.6.30/ before building

  • drivers/net/cpmac.c

    diff -X /home/xinzhen/dontdiff -urN a/drivers/net/cpmac.c b/drivers/net/cpmac.c
    a b  
    11231123                return -ENODEV; 
    11241124        } 
    11251125 
     1126        strncpy(mdio_bus_id, "0", BUS_ID_SIZE); /* fixed phys bus */ 
     1127        phy_id = pdev->id; 
     1128 
    11261129        dev = alloc_etherdev_mq(sizeof(*priv), CPMAC_QUEUES); 
    11271130        //~ dev = alloc_etherdev(sizeof(*priv)); 
    11281131