]> git.baikalelectronics.ru Git - uboot.git/commit
net: dsa: introduce a .port_probe() method in struct dsa_ops
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 24 Aug 2021 12:00:41 +0000 (15:00 +0300)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:50:56 +0000 (18:50 +0300)
commitea30b4b2c66dd82cec9d3c1f05a995db523c0c0b
tree5643b559ecab5f15a2cc2127ef094de13f2e74b6
parent42607b6427f3b1b121615a7c7b41c4af42adc26e
net: dsa: introduce a .port_probe() method in struct dsa_ops

Some drivers might want to execute code for each port at probe time, as
opposed to executing code just-in-time for the port selected for
networking.

To cater to that use case, introduce a .port_probe() callback method
into the DSA switch operations which is called for each available port,
at the end of dsa_port_probe().

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Tested-by: Michael Walle <michael@walle.cc>
include/net/dsa.h
net/dsa-uclass.c