netif_start_queue(ndev);
+ mdp->is_opened = 1;
+
return ret;
out_free_irq:
if (mdp->cd->no_tx_cntrs)
return &ndev->stats;
- if (!netif_running(ndev))
+ if (!mdp->is_opened)
return &ndev->stats;
sh_eth_update_stat(ndev, &ndev->stats.tx_dropped, TROCR);
/* Free all the skbuffs in the Rx queue and the DMA buffer. */
sh_eth_ring_free(ndev);
+ mdp->is_opened = 0;
+
pm_runtime_put(&mdp->pdev->dev);
return 0;
unsigned no_ether_link:1;
unsigned ether_link_active_low:1;
+ unsigned is_opened:1;
unsigned wol_enabled:1;
};