[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200809222110.m8MLALvH029893@imap1.linux-foundation.org>
Date: Mon, 22 Sep 2008 14:10:21 -0700
From: akpm@...ux-foundation.org
To: jeff@...zik.org
Cc: netdev@...r.kernel.org, akpm@...ux-foundation.org, david@...es.net,
alan@...rguk.ukuu.org.uk, anemo@....ocn.ne.jp,
p_gortmaker@...oo.com
Subject: [patch for 2.6.27? 07/10] ne.c: fix suspend and resume for ISA PnP cards
From: David Fries <david@...es.net>
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 <david@...es.net>
Cc: Atsushi Nemoto <anemo@....ocn.ne.jp>
Cc: Paul Gortmaker <p_gortmaker@...oo.com>
Cc: Alan Cox <alan@...rguk.ukuu.org.uk>
Cc: Jeff Garzik <jeff@...zik.org>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
---
drivers/net/ne.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff -puN drivers/net/ne.c~nec-fix-suspend-and-resume-for-isa-pnp-cards drivers/net/ne.c
--- a/drivers/net/ne.c~nec-fix-suspend-and-resume-for-isa-pnp-cards
+++ a/drivers/net/ne.c
@@ -895,8 +895,12 @@ static int ne_drv_suspend(struct platfor
{
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;
}
@@ -905,6 +909,9 @@ static int ne_drv_resume(struct platform
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);
_
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists