lkml.org 
[lkml]   [2013]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.12 011/116] alx: Reset phy speed after resume
    Date
    3.12-stable review patch.  If anyone has any objections, please let me know.

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

    From: hahnjo <hahnjo@hahnjo.de>

    commit b54629e226d196e802abdd30c5e34f2a47cddcf2 upstream.

    This fixes bug 62491 (https://bugzilla.kernel.org/show_bug.cgi?id=62491).
    After resuming some users got the following error flooding the kernel log:
    alx 0000:02:00.0: invalid PHY speed/duplex: 0xffff

    Signed-off-by: Jonas Hahnfeld <linux@hahnjo.de>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Cc: hahnjo <linux@hahnjo.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/net/ethernet/atheros/alx/main.c | 3 +++
    1 file changed, 3 insertions(+)

    --- a/drivers/net/ethernet/atheros/alx/main.c
    +++ b/drivers/net/ethernet/atheros/alx/main.c
    @@ -1389,6 +1389,9 @@ static int alx_resume(struct device *dev
    {
    struct pci_dev *pdev = to_pci_dev(dev);
    struct alx_priv *alx = pci_get_drvdata(pdev);
    + struct alx_hw *hw = &alx->hw;
    +
    + alx_reset_phy(hw);

    if (!netif_running(alx->dev))
    return 0;



    \
     
     \ /
      Last update: 2013-11-27 10:21    [W:2.386 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site