[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20101019230647.GA17384@electric-eye.fr.zoreil.com>
Date: Wed, 20 Oct 2010 01:06:47 +0200
From: Francois Romieu <romieu@...zoreil.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Ben Hutchings <ben@...adent.org.uk>,
Arnout Boelens <aboelens@...in.umass.edu>,
595265@...s.debian.org, netdev <netdev@...r.kernel.org>
Subject: Re: Bug#595265: linux-image-2.6.32-5-686: Nerwork card fails to come
up again after suspend
Eric Dumazet <eric.dumazet@...il.com> :
> Le lundi 18 octobre 2010 à 23:45 +0200, Francois Romieu a écrit :
[...]
> > Something like the patch made by Stanislaw at :
> > https://bugzilla.redhat.com/show_bug.cgi?id=502974
> >
>
> Seems to be down at this moment, patch is also here (and included in
> 2.6.36-rc8 ) :
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=aeb19f6052b5e5c8a24aa444fbff73b84341beac
It's from the same author but it is not included in 2.6.36-stg yet :
Subject: [PATCH] r8169 init phy when resume
For unknown reasons some r8169 devices after resume operate at
100 Mb/s speed instead of 1000 Mb/s like before suspend. To fix
reset phy during resume.
Signed-off-by: Stanislaw Gruszka <sgruszka@...hat.com>
---
drivers/net/r8169.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 17382c3..a4ce127 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -4847,6 +4847,9 @@ static int rtl8169_resume(struct device *device)
{
struct pci_dev *pdev = to_pci_dev(device);
struct net_device *dev = pci_get_drvdata(pdev);
+ struct rtl8169_private *tp = netdev_priv(dev);
+
+ rtl8169_init_phy(dev, tp);
if (!netif_running(dev))
goto out;
--
1.7.1
--
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