mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Heiner Kallweit <hkallweit1@gmail.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: "David S. Miller" <davem@davemloft.net>,
	Florian Fainelli <f.fainelli@gmail.com>,
	Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>,
	Simon Horman <horms+renesas@verge.net.au>,
	netdev <netdev@vger.kernel.org>,
	Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: net: phy: improve pause mode reporting in phy_print_status
Date: Tue, 21 May 2019 19:19:22 +0200	[thread overview]
Message-ID: <ca30d4db-628b-f70f-5849-1b1fcbc44ad9@gmail.com> (raw)
In-Reply-To: <CAMuHMdXH4A96CUuSkmnL8RVubRyd9eswz9VPqBsDqXGbNCWncw@mail.gmail.com>

On 21.05.2019 15:07, Geert Uytterhoeven wrote:
> Hi Heiner,
> 
Hi Geert,

> On Wed, May 8, 2019 at 8:02 AM Linux Kernel Mailing List
> <linux-kernel@vger.kernel.org> wrote:
>> Commit:     23bfaa594002f4bba085e0a1ae3c9847b988d816
>> Parent:     5db9c74042e3c2168b1f1104d691063f5b662a8b
>> Refname:    refs/heads/master
>> Web:        https://git.kernel.org/torvalds/c/23bfaa594002f4bba085e0a1ae3c9847b988d816
>> Author:     Heiner Kallweit <hkallweit1@gmail.com>
>> AuthorDate: Sun May 5 19:03:51 2019 +0200
>> Committer:  David S. Miller <davem@davemloft.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@gmail.com>
>>     Signed-off-by: David S. Miller <davem@davemloft.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?
> 
Yes. Both local pause parameters being 0 means no pause support is advertised.
Seems like both network drivers miss calls to phy_support_sym_pause or
phy_support_asym_pause respectively to indicate if and which pause modes
the MAC supports.
Before this patch only the remote pause capability was considered.

> Thanks!
> 
> Gr{oetje,eeting}s,
> 
>                         Geert
> 
Heiner

      reply	other threads:[~2019-05-21 17:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <git-mailbomb-linux-master-23bfaa594002f4bba085e0a1ae3c9847b988d816@kernel.org>
2019-05-21 13:07 ` Geert Uytterhoeven
2019-05-21 17:19   ` Heiner Kallweit [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ca30d4db-628b-f70f-5849-1b1fcbc44ad9@gmail.com \
    --to=hkallweit1@gmail.com \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=horms+renesas@verge.net.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=sergei.shtylyov@cogentembedded.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®