mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
net: dsa: introduce dsa_user_ports helper
Introduce a dsa_user_ports() helper to return the ds->enabled_port_mask mask which is more explicit. This will also minimize diffs when touching this internal mask. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4a5b85ffe2
commit
02bc6e546e
6 changed files with 11 additions and 8 deletions
|
@ -312,7 +312,7 @@ static int dsa_ds_apply(struct dsa_switch_tree *dst, struct dsa_switch *ds)
|
|||
* the slave MDIO bus driver rely on these values for probing PHY
|
||||
* devices or not
|
||||
*/
|
||||
ds->phys_mii_mask = ds->enabled_port_mask;
|
||||
ds->phys_mii_mask |= dsa_user_ports(ds);
|
||||
|
||||
/* Add the switch to devlink before calling setup, so that setup can
|
||||
* add dpipe tables
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue