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:
committed by
David S. Miller
parent
4a5b85ffe2
commit
02bc6e546e
@@ -136,7 +136,7 @@ static int dsa_switch_setup_one(struct dsa_switch *ds,
|
||||
/* Make the built-in MII bus mask match the number of ports,
|
||||
* switch drivers can override this later
|
||||
*/
|
||||
ds->phys_mii_mask = ds->enabled_port_mask;
|
||||
ds->phys_mii_mask |= dsa_user_ports(ds);
|
||||
|
||||
/*
|
||||
* If the CPU connects to this switch, set the switch tree
|
||||
|
||||
Reference in New Issue
Block a user