From: David Fries Date: Tue, 9 Sep 2008 03:01:14 +0000 (-0500) Subject: [netdrvr] ne: Fix suspend and resume for ISA PnP cards. X-Git-Tag: v2.6.28-rc1~717^2~195^2~64 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=539b06fc73b1d470b9ecb3fe7af6d5f439322c08;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git [netdrvr] ne: Fix suspend and resume for ISA PnP cards. A call to pnp_stop_dev and pnp_start_dev now shuts down and initializes plug and play devices for suspend and resume. Signed-off-by: David Fries Cc: Atsushi Nemoto Cc: Paul Gortmaker Cc: Alan Cox Cc: Jeff Garzik Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/ne.c b/drivers/net/ne.c index fa3ceca..7959990 100644 --- a/drivers/net/ne.c +++ b/drivers/net/ne.c @@ -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); - if (netif_running(dev)) + if (netif_running(dev)) { + struct pnp_dev *idev = (struct pnp_dev *)ei_status.priv; netif_device_detach(dev); + if (idev) + pnp_stop_dev(idev); + } return 0; } @@ -854,6 +858,9 @@ static int ne_drv_resume(struct platform_device *pdev) struct net_device *dev = platform_get_drvdata(pdev); if (netif_running(dev)) { + struct pnp_dev *idev = (struct pnp_dev *)ei_status.priv; + if (idev) + pnp_start_dev(idev); ne_reset_8390(dev); NS8390p_init(dev, 1); netif_device_attach(dev);