Skip to content

generic: backport PCS standalone feature - #23271

Merged
openwrt-bot merged 4 commits into
openwrt:mainfrom
Ansuel:pcs-standalone-back
May 12, 2026
Merged

openwrt-bot merged 4 commits into
openwrt:mainfrom
Ansuel:pcs-standalone-back

Conversation

@Ansuel

@Ansuel Ansuel commented May 9, 2026

Copy link
Copy Markdown
Member

No description provided.

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit checks

  • 551c2b50bb "WIP generic: 6.12: backport PCS standalone feature" — subject is prefixed WIP and the body is a placeholder (Backport PCS standalone feature...). The author has effectively self-flagged this as not-ready; please rewrite both before merge.

Generated by Claude Code

Comment on lines +20 to +29
@@ -192,6 +192,11 @@ static inline void phy_interface_copy(un
bitmap_copy(d, s, PHY_INTERFACE_MODE_MAX);
}

+static inline void phy_interface_copy(unsigned long *d, const unsigned long *s)
+{
+ bitmap_copy(d, s, PHY_INTERFACE_MODE_MAX);
+}
+
static inline unsigned int phy_interface_weight(const unsigned long *intf)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch adds a duplicate definition of phy_interface_copy(). The function already exists in 6.12.85 (include/linux/phy.h:190), and the hunk's own context line @@ -192,6 +192,11 @@ static inline void phy_interface_copy(un confirms the existing definition is right above the insertion point. Applying this would yield a redefinition of 'phy_interface_copy' build error.

This appears to be a backport of upstream commit a571f08d3db215dd6ec294d8faac8cc4184bc4e4, but that change must already have made it into 6.12 stable (the helper is present in 6.12.85), so the backport is no longer needed for 6.12 and the patch should be dropped — or, if it is required for some other reason, regenerated against a tree where the function does not yet exist.


Generated by Claude Code

drivers/net/phy/phylink.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/net/phy/phylink.c

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the hunk header targets line 1406, but the matching pcs->phylink = pl; site in 6.12.85 phylink.c is at line 1218 (drivers/net/phy/phylink.c:1216-1218). Quilt will probably apply this with offset, but please regenerate so the line numbers match (make target/linux/refresh) — it makes future re-rolls easier to read. Same comment applies to the 703-01 and 703-02 patches in this directory, whose @@ -1738 and @@ -1738,18 context lines are several hundred lines off the matching code in 6.12.85.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: commit 551c2b50bb is titled WIP generic: 6.12: backport PCS standalone feature with a placeholder body (Backport PCS standalone feature...). Please rewrite the subject and body before this is merge-ready — the WIP prefix signals the commit isn't intended for review yet, and a proper body is required (what series/range is being backported, why, what changes from upstream, etc.).


Generated by Claude Code

@github-actions github-actions Bot added kernel pull request/issue with Linux kernel related changes target/airoha pull request/issue for airoha target labels May 9, 2026

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


To address review feedback, force-push fixes to this branch. Don't close and open a new PR — that loses the review history and the bot starts from scratch.


Generated by Claude Code

From d5fb4ad1beec53ca5d3b44d9b88598ed4ab0b34d Mon Sep 17 00:00:00 2001
From: Christian Marangi <[email protected]>
Date: Fri, 9 May 2025 16:36:22 +0200
Subject: [PATCH 1/6] net: phylink: add .pcs_link_down PCS OP

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this patch leaves kernel 6.12 with no source for the .pcs_link_down PCS OP. The field isn't in v6.12.87 stable (struct phylink_pcs_ops at include/linux/phylink.h:434) and isn't introduced by any of the new target/linux/generic/backport-6.12/ patches in this PR (702 / 703-01 / 703-02 / 704), nor by anything currently in pending-6.12/ (its 6.18 counterpart 737-07-net-phylink-add-.pcs_link_down-PCS-OP.patch only ships under pending-6.18/).

Meanwhile 310-09-net-pcs-airoha-add-PCS-driver-for-Airoha-SoC.patch:904 still contains .pcs_link_down = airoha_pcs_link_down, (with the function defined at line 827). Once 310-08 is gone, the airoha 6.12 build will fail with error: 'struct phylink_pcs_ops' has no member named 'pcs_link_down'.

This PR appears to still need either a backport-6.12/ patch that adds .pcs_link_down (the equivalent of pending-6.18/737-07), or removal of the assignment from 310-09. Probably already on the author's list given the WIP commit subject — flagging so it isn't lost.


Generated by Claude Code

@Ansuel
Ansuel force-pushed the pcs-standalone-back branch 2 times, most recently from d2ed40e to 1e7f386 Compare May 11, 2026 15:59
@github-actions github-actions Bot added the target/layerscape pull request/issue for layerscape target label May 11, 2026

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commit; no new issues found. Prior feedback addressed: WIP prefix removed from the subject, the redundant 704-v6.18-net-phy-add-phy_interface_copy.patch is dropped (helper already in v6.12.87), and the missing .pcs_link_down PCS OP is now provided to pending-6.12/ as 770-07, so the airoha 310-09 use of .pcs_link_down resolves.


Generated by Claude Code

Ansuel added 4 commits May 13, 2026 00:19
Backport phylink_replay_link() API patch from upstream kernel. This is
mostly needed for force_major_config bool in phylink struct needed for new
standalone PCS series.

While at it also rename the current 703 patch to 703-01 as it's part of the
same series merged upstream.

All patch automatically refreshed.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
Backport pending PCS standalone feature for kernel 6.12 and all the
required dependency patch.

All affected patch automatically refreshed.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
Migrate Airoha PCS/Ethernet pending patch to PCS standalone implementation.
This new implementation drop the hack of reading and accessing the dev from
a different device and drop the legacy pcs_create/drop implementation in
favor of fwnode one with a provider/consumer approach.

This is also to sync with the proposed series posted upstream for revision.
The new PCS patch for AN7581 implement full support for USB and PCIe PCS.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
Update the PCS node in AN7581/AN7583 .dtsi for new PCS implementation.

The #pcs-cell is now needed for the produced/consumer implementation.
Also add entry for USB and PCIe PCS for AN7581 but keep them disabled
by default. USB and PCIe PCS for AN7583 node will be added later once PHY
code will stabilize.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
@Ansuel
Ansuel force-pushed the pcs-standalone-back branch from 9ee6df0 to 4d5f579 Compare May 12, 2026 22:19
@openwrt-bot
openwrt-bot merged commit 4d5f579 into openwrt:main May 12, 2026
5 checks passed
dchard pushed a commit to dchard/openwrt that referenced this pull request May 15, 2026
Backport phylink_replay_link() API patch from upstream kernel. This is
mostly needed for force_major_config bool in phylink struct needed for new
standalone PCS series.

While at it also rename the current 703 patch to 703-01 as it's part of the
same series merged upstream.

All patch automatically refreshed.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
dchard pushed a commit to dchard/openwrt that referenced this pull request May 15, 2026
Backport pending PCS standalone feature for kernel 6.12 and all the
required dependency patch.

All affected patch automatically refreshed.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
dchard pushed a commit to dchard/openwrt that referenced this pull request May 15, 2026
Migrate Airoha PCS/Ethernet pending patch to PCS standalone implementation.
This new implementation drop the hack of reading and accessing the dev from
a different device and drop the legacy pcs_create/drop implementation in
favor of fwnode one with a provider/consumer approach.

This is also to sync with the proposed series posted upstream for revision.
The new PCS patch for AN7581 implement full support for USB and PCIe PCS.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
dchard pushed a commit to dchard/openwrt that referenced this pull request May 15, 2026
Update the PCS node in AN7581/AN7583 .dtsi for new PCS implementation.

The #pcs-cell is now needed for the produced/consumer implementation.
Also add entry for USB and PCIe PCS for AN7581 but keep them disabled
by default. USB and PCIe PCS for AN7583 node will be added later once PHY
code will stabilize.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Jun 2, 2026
Backport pending PCS standalone feature for kernel 6.12 and all the
required dependency patch.

All affected patch automatically refreshed.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit e90f3f1)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Jun 2, 2026
Migrate Airoha PCS/Ethernet pending patch to PCS standalone implementation.
This new implementation drop the hack of reading and accessing the dev from
a different device and drop the legacy pcs_create/drop implementation in
favor of fwnode one with a provider/consumer approach.

This is also to sync with the proposed series posted upstream for revision.
The new PCS patch for AN7581 implement full support for USB and PCIe PCS.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit c5427d4)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Jun 2, 2026
Update the PCS node in AN7581/AN7583 .dtsi for new PCS implementation.

The #pcs-cell is now needed for the produced/consumer implementation.
Also add entry for USB and PCIe PCS for AN7581 but keep them disabled
by default. USB and PCIe PCS for AN7583 node will be added later once PHY
code will stabilize.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit 4d5f579)
glassd00r pushed a commit to glassd00r/openwrt that referenced this pull request Jun 19, 2026
Backport pending PCS standalone feature for kernel 6.12 and all the
required dependency patch.

All affected patch automatically refreshed.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit e90f3f1)
glassd00r pushed a commit to glassd00r/openwrt that referenced this pull request Jun 19, 2026
Migrate Airoha PCS/Ethernet pending patch to PCS standalone implementation.
This new implementation drop the hack of reading and accessing the dev from
a different device and drop the legacy pcs_create/drop implementation in
favor of fwnode one with a provider/consumer approach.

This is also to sync with the proposed series posted upstream for revision.
The new PCS patch for AN7581 implement full support for USB and PCIe PCS.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit c5427d4)
glassd00r pushed a commit to glassd00r/openwrt that referenced this pull request Jun 19, 2026
Update the PCS node in AN7581/AN7583 .dtsi for new PCS implementation.

The #pcs-cell is now needed for the produced/consumer implementation.
Also add entry for USB and PCIe PCS for AN7581 but keep them disabled
by default. USB and PCIe PCS for AN7583 node will be added later once PHY
code will stabilize.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit 4d5f579)
glassd00r pushed a commit to glassd00r/openwrt that referenced this pull request Jun 19, 2026
Backport pending PCS standalone feature for kernel 6.12 and all the
required dependency patch.

All affected patch automatically refreshed.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit e90f3f1)
glassd00r pushed a commit to glassd00r/openwrt that referenced this pull request Jun 19, 2026
Migrate Airoha PCS/Ethernet pending patch to PCS standalone implementation.
This new implementation drop the hack of reading and accessing the dev from
a different device and drop the legacy pcs_create/drop implementation in
favor of fwnode one with a provider/consumer approach.

This is also to sync with the proposed series posted upstream for revision.
The new PCS patch for AN7581 implement full support for USB and PCIe PCS.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit c5427d4)
glassd00r pushed a commit to glassd00r/openwrt that referenced this pull request Jun 19, 2026
Update the PCS node in AN7581/AN7583 .dtsi for new PCS implementation.

The #pcs-cell is now needed for the produced/consumer implementation.
Also add entry for USB and PCIe PCS for AN7581 but keep them disabled
by default. USB and PCIe PCS for AN7583 node will be added later once PHY
code will stabilize.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit 4d5f579)
sp4rkiop pushed a commit to sp4rkiop/openwrt that referenced this pull request Jun 23, 2026
Backport phylink_replay_link() API patch from upstream kernel. This is
mostly needed for force_major_config bool in phylink struct needed for new
standalone PCS series.

While at it also rename the current 703 patch to 703-01 as it's part of the
same series merged upstream.

All patch automatically refreshed.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
sp4rkiop pushed a commit to sp4rkiop/openwrt that referenced this pull request Jun 23, 2026
Backport pending PCS standalone feature for kernel 6.12 and all the
required dependency patch.

All affected patch automatically refreshed.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
sp4rkiop pushed a commit to sp4rkiop/openwrt that referenced this pull request Jun 23, 2026
Migrate Airoha PCS/Ethernet pending patch to PCS standalone implementation.
This new implementation drop the hack of reading and accessing the dev from
a different device and drop the legacy pcs_create/drop implementation in
favor of fwnode one with a provider/consumer approach.

This is also to sync with the proposed series posted upstream for revision.
The new PCS patch for AN7581 implement full support for USB and PCIe PCS.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
sp4rkiop pushed a commit to sp4rkiop/openwrt that referenced this pull request Jun 23, 2026
Update the PCS node in AN7581/AN7583 .dtsi for new PCS implementation.

The #pcs-cell is now needed for the produced/consumer implementation.
Also add entry for USB and PCIe PCS for AN7581 but keep them disabled
by default. USB and PCIe PCS for AN7583 node will be added later once PHY
code will stabilize.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Aug 20, 2026
Backport pending PCS standalone feature for kernel 6.12 and all the
required dependency patch.

All affected patch automatically refreshed.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit e90f3f1)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Aug 20, 2026
Migrate Airoha PCS/Ethernet pending patch to PCS standalone implementation.
This new implementation drop the hack of reading and accessing the dev from
a different device and drop the legacy pcs_create/drop implementation in
favor of fwnode one with a provider/consumer approach.

This is also to sync with the proposed series posted upstream for revision.
The new PCS patch for AN7581 implement full support for USB and PCIe PCS.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit c5427d4)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Aug 20, 2026
Update the PCS node in AN7581/AN7583 .dtsi for new PCS implementation.

The #pcs-cell is now needed for the produced/consumer implementation.
Also add entry for USB and PCIe PCS for AN7581 but keep them disabled
by default. USB and PCIe PCS for AN7583 node will be added later once PHY
code will stabilize.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit 4d5f579)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Aug 21, 2026
Backport pending PCS standalone feature for kernel 6.12 and all the
required dependency patch.

All affected patch automatically refreshed.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit e90f3f1)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Aug 21, 2026
Migrate Airoha PCS/Ethernet pending patch to PCS standalone implementation.
This new implementation drop the hack of reading and accessing the dev from
a different device and drop the legacy pcs_create/drop implementation in
favor of fwnode one with a provider/consumer approach.

This is also to sync with the proposed series posted upstream for revision.
The new PCS patch for AN7581 implement full support for USB and PCIe PCS.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit c5427d4)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Aug 21, 2026
Update the PCS node in AN7581/AN7583 .dtsi for new PCS implementation.

The #pcs-cell is now needed for the produced/consumer implementation.
Also add entry for USB and PCIe PCS for AN7581 but keep them disabled
by default. USB and PCIe PCS for AN7583 node will be added later once PHY
code will stabilize.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit 4d5f579)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Aug 21, 2026
Backport pending PCS standalone feature for kernel 6.12 and all the
required dependency patch.

All affected patch automatically refreshed.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit e90f3f1)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Aug 21, 2026
Migrate Airoha PCS/Ethernet pending patch to PCS standalone implementation.
This new implementation drop the hack of reading and accessing the dev from
a different device and drop the legacy pcs_create/drop implementation in
favor of fwnode one with a provider/consumer approach.

This is also to sync with the proposed series posted upstream for revision.
The new PCS patch for AN7581 implement full support for USB and PCIe PCS.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit c5427d4)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Aug 21, 2026
Update the PCS node in AN7581/AN7583 .dtsi for new PCS implementation.

The #pcs-cell is now needed for the produced/consumer implementation.
Also add entry for USB and PCIe PCS for AN7581 but keep them disabled
by default. USB and PCIe PCS for AN7583 node will be added later once PHY
code will stabilize.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit 4d5f579)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Aug 21, 2026
Backport pending PCS standalone feature for kernel 6.12 and all the
required dependency patch.

All affected patch automatically refreshed.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit e90f3f1)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Aug 21, 2026
Migrate Airoha PCS/Ethernet pending patch to PCS standalone implementation.
This new implementation drop the hack of reading and accessing the dev from
a different device and drop the legacy pcs_create/drop implementation in
favor of fwnode one with a provider/consumer approach.

This is also to sync with the proposed series posted upstream for revision.
The new PCS patch for AN7581 implement full support for USB and PCIe PCS.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit c5427d4)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Aug 21, 2026
Update the PCS node in AN7581/AN7583 .dtsi for new PCS implementation.

The #pcs-cell is now needed for the produced/consumer implementation.
Also add entry for USB and PCIe PCS for AN7581 but keep them disabled
by default. USB and PCIe PCS for AN7583 node will be added later once PHY
code will stabilize.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit 4d5f579)
YaleiZang pushed a commit to YaleiZang/openwrt-25.12-airoha that referenced this pull request Aug 22, 2026
Migrate Airoha PCS/Ethernet pending patch to PCS standalone implementation.
This new implementation drop the hack of reading and accessing the dev from
a different device and drop the legacy pcs_create/drop implementation in
favor of fwnode one with a provider/consumer approach.

This is also to sync with the proposed series posted upstream for revision.
The new PCS patch for AN7581 implement full support for USB and PCIe PCS.

The 25.12 variants of 310-10 and 606 are not applicable to this branch and are dropped.

Link: openwrt#23271
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit c5427d4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kernel pull request/issue with Linux kernel related changes target/airoha pull request/issue for airoha target target/layerscape pull request/issue for layerscape target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants