|
@@ -844,8 +844,12 @@ static int ne_drv_suspend(struct platform_device *pdev, pm_message_t state)
|
|
{
|
|
{
|
|
struct net_device *dev = platform_get_drvdata(pdev);
|
|
struct net_device *dev = platform_get_drvdata(pdev);
|
|
|
|
|
|
- if (netif_running(dev))
|
|
|
|
|
|
+ if (netif_running(dev)) {
|
|
|
|
+ struct pnp_dev *idev = (struct pnp_dev *)ei_status.priv;
|
|
netif_device_detach(dev);
|
|
netif_device_detach(dev);
|
|
|
|
+ if (idev)
|
|
|
|
+ pnp_stop_dev(idev);
|
|
|
|
+ }
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -854,6 +858,9 @@ static int ne_drv_resume(struct platform_device *pdev)
|
|
struct net_device *dev = platform_get_drvdata(pdev);
|
|
struct net_device *dev = platform_get_drvdata(pdev);
|
|
|
|
|
|
if (netif_running(dev)) {
|
|
if (netif_running(dev)) {
|
|
|
|
+ struct pnp_dev *idev = (struct pnp_dev *)ei_status.priv;
|
|
|
|
+ if (idev)
|
|
|
|
+ pnp_start_dev(idev);
|
|
ne_reset_8390(dev);
|
|
ne_reset_8390(dev);
|
|
NS8390p_init(dev, 1);
|
|
NS8390p_init(dev, 1);
|
|
netif_device_attach(dev);
|
|
netif_device_attach(dev);
|