The HWMON support was only registered in the legacy DSA code. Register it in the newer DSA code (dsa2) as well. --- net/dsa/dsa2.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index 5fff951a0a49..668aa2974d01 100644 --- a/net/dsa/dsa2.c +++ b/net/dsa/dsa2.c @@ -348,6 +348,8 @@ static int dsa_ds_apply(struct dsa_switch_tree *dst, struct dsa_switch *ds) continue; } + dsa_hwmon_register(ds); + return 0; } @@ -356,6 +358,8 @@ static void dsa_ds_unapply(struct dsa_switch_tree *dst, struct dsa_switch *ds) struct device_node *port; u32 index; + dsa_hwmon_unregister(ds); + for (index = 0; index < DSA_MAX_PORTS; index++) { port = ds->ports[index].dn; if (!port) -- 2.11.0