Repository navigation
generic: backport PCS standalone feature - #23271
Conversation
openwrt-ai
left a comment
There was a problem hiding this comment.
Commit checks
551c2b50bb"WIP generic: 6.12: backport PCS standalone feature" — subject is prefixedWIPand 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
| @@ -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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
openwrt-ai
left a comment
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
d2ed40e to
1e7f386
Compare
openwrt-ai
left a comment
There was a problem hiding this comment.
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
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]>
9ee6df0 to
4d5f579
Compare
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]>
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)
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)
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)
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)
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)
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)
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)
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)
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)
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]>
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
No description provided.