Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: phy: add Kconfig symbol PHY_PACKAGE

Only a handful of PHY drivers needs the PHY package functionality,
therefore build the module only if needed.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/42c05496-61b2-4b09-b853-3d99b3dfe95c@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Heiner Kallweit and committed by
Jakub Kicinski
7d573869 a1acde1e

+9 -1
+6
drivers/net/phy/Kconfig
··· 25 25 config SWPHY 26 26 bool 27 27 28 + config PHY_PACKAGE 29 + tristate 30 + 28 31 config LED_TRIGGER_PHY 29 32 bool "Support LED triggers for tracking link state" 30 33 depends on LEDS_TRIGGERS ··· 160 157 tristate "Broadcom BCM54140 PHY" 161 158 depends on HWMON || HWMON=n 162 159 select BCM_NET_PHYLIB 160 + select PHY_PACKAGE 163 161 help 164 162 Support the Broadcom BCM54140 Quad SGMII/QSGMII PHY. 165 163 ··· 296 292 config MICREL_PHY 297 293 tristate "Micrel PHYs" 298 294 depends on PTP_1588_CLOCK_OPTIONAL 295 + select PHY_PACKAGE 299 296 help 300 297 Supports the KSZ9021, VSC8201, KS8001 PHYs. 301 298 ··· 328 323 depends on MACSEC || MACSEC=n 329 324 depends on PTP_1588_CLOCK_OPTIONAL || !NETWORK_PHY_TIMESTAMPING 330 325 select CRYPTO_LIB_AES if MACSEC 326 + select PHY_PACKAGE 331 327 help 332 328 Currently supports VSC8514, VSC8530, VSC8531, VSC8540 and VSC8541 PHYs 333 329
+1 -1
drivers/net/phy/Makefile
··· 19 19 obj-$(CONFIG_PHYLINK) += phylink.o 20 20 obj-$(CONFIG_PHYLIB) += libphy.o 21 21 obj-$(CONFIG_PHYLIB) += mdio_devres.o 22 - obj-$(CONFIG_PHYLIB) += phy_package.o 22 + obj-$(CONFIG_PHY_PACKAGE) += phy_package.o 23 23 24 24 obj-$(CONFIG_NETWORK_PHY_TIMESTAMPING) += mii_timestamper.o 25 25
+1
drivers/net/phy/mediatek/Kconfig
··· 27 27 depends on ARCH_AIROHA || (ARCH_MEDIATEK && NVMEM_MTK_EFUSE) || \ 28 28 COMPILE_TEST 29 29 select MTK_NET_PHYLIB 30 + select PHY_PACKAGE 30 31 help 31 32 Supports MediaTek SoC built-in Gigabit Ethernet PHYs. 32 33
+1
drivers/net/phy/qcom/Kconfig
··· 24 24 config QCA807X_PHY 25 25 tristate "Qualcomm QCA807x PHYs" 26 26 select QCOM_NET_PHYLIB 27 + select PHY_PACKAGE 27 28 depends on OF_MDIO 28 29 help 29 30 Currently supports the Qualcomm QCA8072, QCA8075 and the PSGMII