public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 8139cp - redetect link after suspend
@ 2005-07-03 22:22 Pierre Ossman
  2005-07-05 14:59 ` John W. Linville
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Ossman @ 2005-07-03 22:22 UTC (permalink / raw)
  To: LKML, jgarzik

[-- Attachment #1: Type: text/plain, Size: 169 bytes --]

After suspend the driver needs to retest link status in case the cable
has been inserted or removed during the suspend.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

[-- Attachment #2: 8139cp-mii-suspend.patch --]
[-- Type: text/x-patch, Size: 608 bytes --]

Index: linux-wbsd/drivers/net/8139cp.c
===================================================================
--- linux-wbsd/drivers/net/8139cp.c	(revision 153)
+++ linux-wbsd/drivers/net/8139cp.c	(working copy)
@@ -1858,6 +1858,7 @@
 {
 	struct net_device *dev;
 	struct cp_private *cp;
+	unsigned long flags;
 
 	dev = pci_get_drvdata (pdev);
 	cp  = netdev_priv(dev);
@@ -1871,6 +1872,12 @@
 	
 	cp_init_hw (cp);
 	netif_start_queue (dev);
+
+	spin_lock_irqsave (&cp->lock, flags);
+
+	mii_check_media(&cp->mii_if, netif_msg_link(cp), FALSE);
+
+	spin_unlock_irqrestore (&cp->lock, flags);
 	
 	return 0;
 }

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] 8139cp - redetect link after suspend
  2005-07-03 22:22 [PATCH] 8139cp - redetect link after suspend Pierre Ossman
@ 2005-07-05 14:59 ` John W. Linville
  2005-08-04 13:42   ` Pierre Ossman
  0 siblings, 1 reply; 3+ messages in thread
From: John W. Linville @ 2005-07-05 14:59 UTC (permalink / raw)
  To: Pierre Ossman; +Cc: LKML, jgarzik

On Mon, Jul 04, 2005 at 12:22:53AM +0200, Pierre Ossman wrote:
> After suspend the driver needs to retest link status in case the cable
> has been inserted or removed during the suspend.
> 
> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>

Please copy netdev@vger.kernel.org for network driver patches.

Other than that, the patch looks acceptable to me, fwiw...

John
-- 
John W. Linville
linville@tuxdriver.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] 8139cp - redetect link after suspend
  2005-07-05 14:59 ` John W. Linville
@ 2005-08-04 13:42   ` Pierre Ossman
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre Ossman @ 2005-08-04 13:42 UTC (permalink / raw)
  To: jgarzik; +Cc: John W. Linville, LKML, netdev

John W. Linville wrote:

>On Mon, Jul 04, 2005 at 12:22:53AM +0200, Pierre Ossman wrote:
>  
>
>>After suspend the driver needs to retest link status in case the cable
>>has been inserted or removed during the suspend.
>>
>>Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
>>    
>>
>
>Please copy netdev@vger.kernel.org for network driver patches.
>
>Other than that, the patch looks acceptable to me, fwiw...
>  
>

Has anyone had else had the time to review this? Jeff especially.

Rgds
Pierre


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-04 13:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-03 22:22 [PATCH] 8139cp - redetect link after suspend Pierre Ossman
2005-07-05 14:59 ` John W. Linville
2005-08-04 13:42   ` Pierre Ossman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox