modify dm9000 for power consume and high frequence
authorlyx <lyx@rock-chips.com>
Wed, 14 Jul 2010 00:32:51 +0000 (17:32 -0700)
committerlyx <lyx@rock-chips.com>
Wed, 14 Jul 2010 00:45:14 +0000 (17:45 -0700)
drivers/net/dm9000.c

index 52e0bb94180eb2f303327e626a883526eea7b569..909822a6fd39ccf3bac6de4df80f0a31893de8db 100644 (file)
@@ -959,6 +959,8 @@ dm9000_rx(struct net_device *dev)
        do {
                ior(db, DM9000_MRCMDX); /* Dummy read */
 
+               udelay(1);//add by lyx@20100713,or dm9000_rx will be error in high frequence
+
                /* Get most updated data */
                rxbyte = readb(db->io_data);
 
@@ -1638,6 +1640,9 @@ dm9000_probe(struct platform_device *pdev)
                       ndev->name, dm9000_type_to_char(db->type),
                       db->io_addr, db->io_data, ndev->irq,
                       ndev->dev_addr, mac_src);
+
+       dm9000_shutdown(ndev);//add by lyx@20100713, reduce power consume
+
        return 0;
 
 out: