[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1321857493.17419.5.camel@edumazet-laptop>
Date: Mon, 21 Nov 2011 07:38:13 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: Hiroaki SHIMODA <shimoda.hiroaki@...il.com>
Cc: davem@...emloft.net, mcarlson@...adcom.com, mchan@...adcom.com,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next] tg3: Fix advertisement handling
Le lundi 21 novembre 2011 à 08:07 +0900, Hiroaki SHIMODA a écrit :
> Commit 28011cf19b (net: Add ethtool to mii advertisment conversion
> helpers) added a helper function ethtool_adv_to_mii_100bt() and
> tg3_copper_is_advertising_all(), tg3_phy_autoneg_cfg() were
> modified to use this.
> Before that commit, ethtool to mii advertisement conversion was
> done wrt speed, but now pause operation is also taken account.
> So, in tg3_copper_is_advertising_all(), below condition becomes
> true and this makes link up fails.
>
> if ((adv_reg & ADVERTISE_ALL) != all_mask)
> return 0;
>
> To fix this add ADVERTISE_ALL bit and operation to cap speed.
>
> Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@...il.com>
Reported-and-tested-by: Eric Dumazet <eric.dumazet@...il.com>
Thanks a lot !
--
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