]> git.ipfire.org Git - thirdparty/openwrt.git/commit
generic: permit support of standalone PCS for external kernel module 23349/head
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 13 May 2026 16:34:32 +0000 (18:34 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 15 May 2026 17:42:16 +0000 (19:42 +0200)
commit14beb3408d404e4929d3673047616ee5308a2f2f
treeacdc9915c2087a5a15ac82f8f2a1cca9a2cde488
parent3cc55ea28c2b4322c95b3d32d01dae3c32971aed
generic: permit support of standalone PCS for external kernel module

The current code permits support of the standalone PCS feature only for
in-tree kernel module but doesn't correctly support PCS from external
kernel module.

This is caused by the fact that the FWNODE_PCS config flag is internally
selected by any PCS driver and can't be selected directly. This is
problematic for any external kernel module that wants to use the standalone
PCS feature and needs the OPs provided by the generic PCS code.

Moreover compiling the standalone PCS code as a module is problematic and
would cause link error caused by the late PCS code that introduce a
notifier where phylink code depends on.

To address both problem, permit to select the FWNODE_PCS and change it to a
simple bool preventing it to compile as a module.

Link: https://github.com/openwrt/openwrt/pull/23349
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/generic/config-6.12
target/linux/generic/config-6.18
target/linux/generic/pending-6.12/770-04-net-pcs-implement-Firmware-node-support-for-PCS-driv.patch
target/linux/generic/pending-6.18/737-04-net-pcs-implement-Firmware-node-support-for-PCS-driv.patch