#elif defined(CONFIG_CPU_SUBTYPE_SH7757)
 #define SH_ETH_HAS_BOTH_MODULES        1
 #define SH_ETH_HAS_TSU 1
+static int sh_eth_check_reset(struct net_device *ndev);
+
 static void sh_eth_set_duplex(struct net_device *ndev)
 {
        struct sh_eth_private *mdp = netdev_priv(ndev);
 }
 
 static int sh_eth_is_gether(struct sh_eth_private *mdp);
-static void sh_eth_reset(struct net_device *ndev)
+static int sh_eth_reset(struct net_device *ndev)
 {
        struct sh_eth_private *mdp = netdev_priv(ndev);
-       int cnt = 100;
+       int ret = 0;
 
        if (sh_eth_is_gether(mdp)) {
                sh_eth_write(ndev, 0x03, EDSR);
                sh_eth_write(ndev, sh_eth_read(ndev, EDMR) | EDMR_SRST_GETHER,
                                EDMR);
-               while (cnt > 0) {
-                       if (!(sh_eth_read(ndev, EDMR) & 0x3))
-                               break;
-                       mdelay(1);
-                       cnt--;
-               }
-               if (cnt < 0)
-                       printk(KERN_ERR "Device reset fail\n");
+
+               ret = sh_eth_check_reset(ndev);
+               if (ret)
+                       goto out;
 
                /* Table Init */
                sh_eth_write(ndev, 0x0, TDLAR);
                sh_eth_write(ndev, sh_eth_read(ndev, EDMR) & ~EDMR_SRST_ETHER,
                                EDMR);
        }
+
+out:
+       return ret;
 }
 
 static void sh_eth_set_duplex_giga(struct net_device *ndev)
 
 #elif defined(CONFIG_CPU_SUBTYPE_SH7734) || defined(CONFIG_CPU_SUBTYPE_SH7763)
 #define SH_ETH_HAS_TSU 1
+static int sh_eth_check_reset(struct net_device *ndev);
 static void sh_eth_reset_hw_crc(struct net_device *ndev);
 
 static void sh_eth_chip_reset(struct net_device *ndev)
 #endif
 };
 
-static void sh_eth_reset(struct net_device *ndev)
+static int sh_eth_reset(struct net_device *ndev)
 {
-       int cnt = 100;
+       int ret = 0;
 
        sh_eth_write(ndev, EDSR_ENALL, EDSR);
        sh_eth_write(ndev, sh_eth_read(ndev, EDMR) | EDMR_SRST_GETHER, EDMR);
-       while (cnt > 0) {
-               if (!(sh_eth_read(ndev, EDMR) & 0x3))
-                       break;
-               mdelay(1);
-               cnt--;
-       }
-       if (cnt == 0)
-               printk(KERN_ERR "Device reset fail\n");
+
+       ret = sh_eth_check_reset(ndev);
+       if (ret)
+               goto out;
 
        /* Table Init */
        sh_eth_write(ndev, 0x0, TDLAR);
        /* Select MII mode */
        if (sh_eth_my_cpu_data.select_mii)
                sh_eth_select_mii(ndev);
+out:
+       return ret;
 }
 
 static void sh_eth_reset_hw_crc(struct net_device *ndev)
 
 #elif defined(CONFIG_ARCH_R8A7740)
 #define SH_ETH_HAS_TSU 1
+static int sh_eth_check_reset(struct net_device *ndev);
+
 static void sh_eth_chip_reset(struct net_device *ndev)
 {
        struct sh_eth_private *mdp = netdev_priv(ndev);
        sh_eth_select_mii(ndev);
 }
 
-static void sh_eth_reset(struct net_device *ndev)
+static int sh_eth_reset(struct net_device *ndev)
 {
-       int cnt = 100;
+       int ret = 0;
 
        sh_eth_write(ndev, EDSR_ENALL, EDSR);
        sh_eth_write(ndev, sh_eth_read(ndev, EDMR) | EDMR_SRST_GETHER, EDMR);
-       while (cnt > 0) {
-               if (!(sh_eth_read(ndev, EDMR) & 0x3))
-                       break;
-               mdelay(1);
-               cnt--;
-       }
-       if (cnt == 0)
-               printk(KERN_ERR "Device reset fail\n");
+
+       ret = sh_eth_check_reset(ndev);
+       if (ret)
+               goto out;
 
        /* Table Init */
        sh_eth_write(ndev, 0x0, TDLAR);
        sh_eth_write(ndev, 0x0, RDFAR);
        sh_eth_write(ndev, 0x0, RDFXR);
        sh_eth_write(ndev, 0x0, RDFFR);
+
+out:
+       return ret;
 }
 
 static void sh_eth_set_duplex(struct net_device *ndev)
 
 #if defined(SH_ETH_RESET_DEFAULT)
 /* Chip Reset */
-static void sh_eth_reset(struct net_device *ndev)
+static int  sh_eth_reset(struct net_device *ndev)
 {
        sh_eth_write(ndev, sh_eth_read(ndev, EDMR) | EDMR_SRST_ETHER, EDMR);
        mdelay(3);
        sh_eth_write(ndev, sh_eth_read(ndev, EDMR) & ~EDMR_SRST_ETHER, EDMR);
+
+       return 0;
+}
+#else
+static int sh_eth_check_reset(struct net_device *ndev)
+{
+       int ret = 0;
+       int cnt = 100;
+
+       while (cnt > 0) {
+               if (!(sh_eth_read(ndev, EDMR) & 0x3))
+                       break;
+               mdelay(1);
+               cnt--;
+       }
+       if (cnt < 0) {
+               printk(KERN_ERR "Device reset fail\n");
+               ret = -ETIMEDOUT;
+       }
+       return ret;
 }
 #endif
 
        u32 val;
 
        /* Soft Reset */
-       sh_eth_reset(ndev);
+       ret = sh_eth_reset(ndev);
+       if (ret)
+               goto out;
 
        /* Descriptor format */
        sh_eth_ring_format(ndev);
 
        netif_start_queue(ndev);
 
+out:
        return ret;
 }