Commit 3a6fdfa4 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Jeff Garzik

Update eepro100 net driver to enable/disable its software timer

at suspend/resume time.
parent 39a70d79
......@@ -2205,6 +2205,8 @@ static int eepro100_suspend(struct pci_dev *pdev, u32 state)
if (!netif_running(dev))
return 0;
del_timer_sync(&sp->timer);
netif_device_detach(dev);
outl(PortPartialReset, ioaddr + SCBPort);
......@@ -2237,6 +2239,8 @@ static int eepro100_resume(struct pci_dev *pdev)
sp->rx_mode = -1;
sp->flow_ctrl = sp->partner = 0;
set_rx_mode(dev);
sp->timer.expires = RUN_AT(2*HZ);
add_timer(&sp->timer);
return 0;
}
#endif /* CONFIG_PM */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment