[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdXH4A96CUuSkmnL8RVubRyd9eswz9VPqBsDqXGbNCWncw@mail.gmail.com>
Date: Tue, 21 May 2019 15:07:08 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Heiner Kallweit <hkallweit1@...il.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Florian Fainelli <f.fainelli@...il.com>,
Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
Simon Horman <horms+renesas@...ge.net.au>,
netdev <netdev@...r.kernel.org>,
Linux-Renesas <linux-renesas-soc@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: net: phy: improve pause mode reporting in phy_print_status
Hi Heiner,
On Wed, May 8, 2019 at 8:02 AM Linux Kernel Mailing List
<linux-kernel@...r.kernel.org> wrote:
> Commit: 23bfaa594002f4bba085e0a1ae3c9847b988d816
> Parent: 5db9c74042e3c2168b1f1104d691063f5b662a8b
> Refname: refs/heads/master
> Web: https://git.kernel.org/torvalds/c/23bfaa594002f4bba085e0a1ae3c9847b988d816
> Author: Heiner Kallweit <hkallweit1@...il.com>
> AuthorDate: Sun May 5 19:03:51 2019 +0200
> Committer: David S. Miller <davem@...emloft.net>
> CommitDate: Tue May 7 12:40:39 2019 -0700
>
> net: phy: improve pause mode reporting in phy_print_status
>
> So far we report symmetric pause only, and we don't consider the local
> pause capabilities. Let's properly consider local and remote
> capabilities, and report also asymmetric pause.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@...il.com>
> Signed-off-by: David S. Miller <davem@...emloft.net>
Due to this commit, I see the folllowing change on Renesas development
boards using either the sh_eth or ravb Ethernet driver:
-sh-eth ee700000.ethernet eth0: Link is Up - 100Mbps/Full - flow
control rx/tx
+sh-eth ee700000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
and
-ravb e6800000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
+ravb e6800000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
Adding debug prints reveals that:
phydev->autoneg = 1
phydev->pause = 1
phydev->asym_pause = 0 or 1 (depending on the board)
local_pause = 0
local_asym_pause = 0
Is this expected behavior?
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Powered by blists - more mailing lists