lkml.org 
[lkml]   [2010]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[283/289] r8169: (re)init phy on resume
    2.6.36-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Stanislaw Gruszka <sgruszka@redhat.com>

    commit fccec10b33503a2b1197c8e7a3abd30443bedb08 upstream.

    Fix switching device to low-speed mode after resume reported in:
    https://bugzilla.redhat.com/show_bug.cgi?id=502974

    Reported-and-tested-by: Laurentiu Badea <bugzilla-redhat@wotevah.com>
    Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Cc: Francois Romieu <romieu@fr.zoreil.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/net/r8169.c | 5 +++++
    1 file changed, 5 insertions(+)

    --- a/drivers/net/r8169.c
    +++ b/drivers/net/r8169.c
    @@ -4889,6 +4889,9 @@ static int rtl8169_resume(struct 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))
    __rtl8169_resume(dev);
    @@ -4929,6 +4932,8 @@ static int rtl8169_runtime_resume(struct
    tp->saved_wolopts = 0;
    spin_unlock_irq(&tp->lock);

    + rtl8169_init_phy(dev, tp);
    +
    __rtl8169_resume(dev);

    return 0;



    \
     
     \ /
      Last update: 2010-12-08 02:11    [W:4.084 / U:0.368 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site