From: Russell King - ARM Linux admin <linux@armlinux.org.uk>
To: Andrew Lunn <andrew@lunn.ch>,
Florian Fainelli <f.fainelli@gmail.com>,
Heiner Kallweit <hkallweit1@gmail.com>
Cc: linux-doc@vger.kernel.org,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
linux-stm32@st-md-mailman.stormreply.com,
Felix Fietkau <nbd@openwrt.org>,
Ioana Radulescu <ruxandra.radulescu@nxp.com>,
Jonathan Corbet <corbet@lwn.net>,
Michal Simek <michal.simek@xilinx.com>,
Jose Abreu <joabreu@synopsys.com>,
Jakub Kicinski <kuba@kernel.org>,
Mark Lee <Mark-MC.Lee@mediatek.com>,
Sean Wang <sean.wang@mediatek.com>,
Alexandre Torgue <alexandre.torgue@st.com>,
Hauke Mehrtens <hauke@hauke-m.de>,
Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>,
linux-mediatek@lists.infradead.org,
John Crispin <john@phrozen.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
Giuseppe Cavallaro <peppe.cavallaro@st.com>,
linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org,
Vivien Didelot <vivien.didelot@gmail.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Vladimir Oltean <olteanv@gmail.com>,
"David S. Miller" <davem@davemloft.net>
Subject: [CFT 0/8] rework phylink interface for split MAC/PCS support
Date: Mon, 17 Feb 2020 17:22:43 +0000 [thread overview]
Message-ID: <20200217172242.GZ25745@shell.armlinux.org.uk> (raw)
Hi,
The following series changes the phylink interface to allow us to
better support split MAC / MAC PCS setups. The fundamental change
required for this turns out to be quite simple.
Today, mac_config() is used for everything to do with setting the
parameters for the MAC, and mac_link_up() is used to inform the
MAC driver that the link is now up (and so to allow packet flow.)
mac_config() also has had a few implementation issues, with folk
who believe that members such as "speed" and "duplex" are always
valid, where "link" gets used inappropriately, etc.
With the proposed patches, all this changes subtly - but in a
backwards compatible way at this stage.
We pass the the full resolved link state (speed, duplex, pause) to
mac_link_up(), and it is now guaranteed that these parameters to
this function will always be valid (no more SPEED_UNKNOWN or
DUPLEX_UNKNOWN here - unless phylink is fed with such things.)
Drivers should convert over to using the state in mac_link_up()
rather than configuring the speed, duplex and pause in the
mac_config() method. The patch series includes a number of MAC
drivers which I've thought have been easy targets - I've left the
remainder as I think they need maintainer input. However, *all*
drivers will need conversion for future phylink development.
Documentation/networking/sfp-phylink.rst | 17 +++-
drivers/net/dsa/b53/b53_common.c | 4 +-
drivers/net/dsa/b53/b53_priv.h | 4 +-
drivers/net/dsa/bcm_sf2.c | 4 +-
drivers/net/dsa/lantiq_gswip.c | 4 +-
drivers/net/dsa/mt7530.c | 4 +-
drivers/net/dsa/mv88e6xxx/chip.c | 79 +++++++++++++----
drivers/net/dsa/sja1105/sja1105_main.c | 4 +-
drivers/net/ethernet/cadence/macb.h | 1 -
drivers/net/ethernet/cadence/macb_main.c | 53 ++++++-----
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c | 61 ++++++++-----
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h | 1 +
drivers/net/ethernet/marvell/mvneta.c | 63 ++++++++-----
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 102 +++++++++++++---------
drivers/net/ethernet/mediatek/mtk_eth_soc.c | 7 +-
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 +-
drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 37 ++++----
drivers/net/phy/phylink.c | 9 +-
include/linux/phylink.h | 57 ++++++++----
include/net/dsa.h | 4 +-
net/dsa/port.c | 7 +-
21 files changed, 350 insertions(+), 176 deletions(-)
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2020-02-17 17:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-17 17:22 Russell King - ARM Linux admin [this message]
2020-02-17 17:33 ` [CFT 0/8] rework phylink interface for split MAC/PCS support Andrew Lunn
2020-02-17 18:51 ` Russell King - ARM Linux admin
2020-02-18 10:29 ` Russell King - ARM Linux admin
[not found] ` <E1j3k7e-00071q-3R@rmk-PC.armlinux.org.uk>
2020-02-17 18:03 ` [CFT 1/8] net: phylink: propagate resolved link config via mac_link_up() Matthew Wilcox
2020-02-17 18:48 ` Russell King - ARM Linux admin
2020-02-17 21:54 ` Florian Fainelli
2020-02-18 1:53 ` Russell King - ARM Linux admin
[not found] ` <E1j3k7t-00072J-RS@rmk-PC.armlinux.org.uk>
2020-02-20 10:29 ` [CFT 4/8] net: axienet: use resolved link config in mac_link_up() Russell King - ARM Linux admin
2020-02-24 12:24 ` Andre Przywara
2020-02-24 13:01 ` Russell King - ARM Linux admin
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=20200217172242.GZ25745@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=Mark-MC.Lee@mediatek.com \
--cc=alexandre.torgue@st.com \
--cc=andrew@lunn.ch \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=hauke@hauke-m.de \
--cc=hkallweit1@gmail.com \
--cc=joabreu@synopsys.com \
--cc=john@phrozen.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=matthias.bgg@gmail.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=michal.simek@xilinx.com \
--cc=nbd@openwrt.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=peppe.cavallaro@st.com \
--cc=radhey.shyam.pandey@xilinx.com \
--cc=ruxandra.radulescu@nxp.com \
--cc=sean.wang@mediatek.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=vivien.didelot@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;
as well as URLs for NNTP newsgroup(s).