net: dsa: MxL862xx: don't force-enable MAXLINEAR_GPHYThe newly added dsa driver attempts to enable the corresponding PHY driver,but that one has additional dependencies that may not be available:
net: dsa: MxL862xx: don't force-enable MAXLINEAR_GPHYThe newly added dsa driver attempts to enable the corresponding PHY driver,but that one has additional dependencies that may not be available:WARNING: unmet direct dependencies detected for MAXLINEAR_GPHY Depends on [m]: NETDEVICES [=y] && PHYLIB [=y] && (HWMON [=m] || HWMON [=m]=n [=n]) Selected by [y]: - NET_DSA_MXL862 [=y] && NETDEVICES [=y] && NET_DSA [=y]aarch64-linux-ld: drivers/net/phy/mxl-gpy.o: in function `gpy_probe':mxl-gpy.c:(.text.gpy_probe+0x13c): undefined reference to `devm_hwmon_device_register_with_info'aarch64-linux-ld: drivers/net/phy/mxl-gpy.o: in function `gpy_hwmon_read':mxl-gpy.c:(.text.gpy_hwmon_read+0x48): undefined reference to `polynomial_calc'There is actually no compile-time dependency, as DSA correctly uses thePHY abstractions. Remove the 'select' statement to reduce the complexity.Fixes: 23794bec1cb6 ("net: dsa: add basic initial driver for MxL862xx switches")Signed-off-by: Arnd Bergmann <arnd@arndb.de>Reviewed-by: Daniel Golle <daniel@makrotopia.org>Link: https://patch.msgid.link/20260216105522.2382373-1-arnd@kernel.orgSigned-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
net: dsa: add basic initial driver for MxL862xx switchesAdd very basic DSA driver for MaxLinear's MxL862xx switches.In contrast to previous MaxLinear switches the MxL862xx has a built-inprocesso
net: dsa: add basic initial driver for MxL862xx switchesAdd very basic DSA driver for MaxLinear's MxL862xx switches.In contrast to previous MaxLinear switches the MxL862xx has a built-inprocessor that runs a sophisticated firmware based on Zephyr RTOS.Interaction between the host and the switch hence is organized using asoftware API of that firmware rather than accessing hardware registersdirectly.Add descriptions of the most basic firmware API calls to access thebuilt-in MDIO bus hosting the 2.5GE PHYs, basic port control as well assetting up the CPU port.Implement a very basic DSA driver using that API which is sufficient toget packets flowing between the user ports and the CPU port.The firmware offers all features one would expect from a modern switchhardware, they are going to be added one by one in follow-up patchseries.Signed-off-by: Daniel Golle <daniel@makrotopia.org>Link: https://patch.msgid.link/ccde07e8cf33d8ae243000013b57cfaa2695e0a9.1770433307.git.daniel@makrotopia.orgReviewed-by: Vladimir Oltean <olteanv@gmail.com>Signed-off-by: Paolo Abeni <pabeni@redhat.com>