The kernel test robot kindly pointed out that Global 2 support in mv88e6xxx is optional.
This also made me realize that we should verify that the hardware actually supports LAG offloading before trying to configure it. v1 -> v2: - Do not allocate LAG ID mappings on unsupported hardware (Vladimir). - Simplify _has_lag predicate (Vladimir). Tobias Waldekranz (2): net: dsa: mv88e6xxx: Provide dummy implementations for trunk setters net: dsa: mv88e6xxx: Only allow LAG offload on supported hardware drivers/net/dsa/mv88e6xxx/chip.c | 6 +++++- drivers/net/dsa/mv88e6xxx/chip.h | 5 +++++ drivers/net/dsa/mv88e6xxx/global2.h | 12 ++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) -- 2.17.1