Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Oleksij Rempel <o.rempel@pengutronix.de>
To: Maxime Chevallier <maxime.chevallier@bootlin.com>
Cc: "Andrew Lunn" <andrew+netdev@lunn.ch>,
	"Jakub Kicinski" <kuba@kernel.org>,
	davem@davemloft.net, "Eric Dumazet" <edumazet@google.com>,
	"Paolo Abeni" <pabeni@redhat.com>,
	"Simon Horman" <horms@kernel.org>,
	"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
	"Alexandre Torgue" <alexandre.torgue@foss.st.com>,
	"Russell King" <linux@armlinux.org.uk>,
	"Zxyan Zhu" <zxyan0222@gmail.com>,
	thomas.petazzoni@bootlin.com,
	"Alexis Lothoré" <alexis.lothore@bootlin.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-stm32@st-md-mailman.stormreply.com
Subject: Re: [PATCH net-next 2/2] net: stmmac: Don't rely on the PHY for flow-control testing
Date: Wed, 29 Jul 2026 07:03:54 +0200	[thread overview]
Message-ID: <ammJus9isvL5M-Lx@pengutronix.de> (raw)
In-Reply-To: <20260728155728.1193169-3-maxime.chevallier@bootlin.com>

On Tue, Jul 28, 2026 at 05:57:27PM +0200, Maxime Chevallier wrote:
> For flow-control testing in loopback mode, we don't need to ask what the
> PHY is currently using as pause/asym settings. The PHY is no longer
> involved in selftest, we rely strictly on MAC loopback. We therefore

In case of the Full-Duplex, Link-wide PAUSE (IEEE 802.3 Annex 31B),
the PHY is not involved in actual flow control. PHY role is limited only
to autoneg part - announce own and receive link partners caps.

With this reasoning this patch will have more weight, i guess :)

> only need to know if the MAC supports Symmetric pause for the test, as
> we exercise both TX and RX pause support in the selftest.
> 
> Remove phydev requirement for flowcontrol selftest as well as the
> AsymPause requirement.

This is currently the weak point of generic and stmmac selftests,
we actually need to force the link in some specific state.

On the PHY side we would need to enabled force link mode (disable
autoneg) and bypass link-up status (PHY may still signal link down)

> With that, we can also drop the linux/phy.h include.
> 
> Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>

Otherwise, LGTM:
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>

Thank you!

Best Regards,
Oleksij
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


      reply	other threads:[~2026-07-29  5:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-28 15:57 [PATCH net-next 0/2] net: stmmac: only use MAC loopback for selftests Maxime Chevallier
2026-07-28 15:57 ` [PATCH net-next 1/2] net: stmmac: Don't use PHY " Maxime Chevallier
2026-07-29  5:30   ` Oleksij Rempel
2026-07-28 15:57 ` [PATCH net-next 2/2] net: stmmac: Don't rely on the PHY for flow-control testing Maxime Chevallier
2026-07-29  5:03   ` Oleksij Rempel [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=ammJus9isvL5M-Lx@pengutronix.de \
    --to=o.rempel@pengutronix.de \
    --cc=alexandre.torgue@foss.st.com \
    --cc=alexis.lothore@bootlin.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=linux@armlinux.org.uk \
    --cc=maxime.chevallier@bootlin.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=zxyan0222@gmail.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