mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
dsa: Rename phys_port_mask to enabled_port_mask
The phys in phys_port_mask suggests this mask is about PHYs. In fact, it means physical ports. Rename to enabled_port_mask, indicating external enabled ports of the switch, which is hopefully less confusing. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e49bad3196
commit
74c3e2a54b
4 changed files with 17 additions and 16 deletions
|
@ -167,7 +167,7 @@ struct dsa_switch {
|
|||
* Slave mii_bus and devices for the individual ports.
|
||||
*/
|
||||
u32 dsa_port_mask;
|
||||
u32 phys_port_mask;
|
||||
u32 enabled_port_mask;
|
||||
u32 phys_mii_mask;
|
||||
struct mii_bus *slave_mii_bus;
|
||||
struct net_device *ports[DSA_MAX_PORTS];
|
||||
|
@ -185,7 +185,7 @@ static inline bool dsa_is_dsa_port(struct dsa_switch *ds, int p)
|
|||
|
||||
static inline bool dsa_is_port_initialized(struct dsa_switch *ds, int p)
|
||||
{
|
||||
return ds->phys_port_mask & (1 << p) && ds->ports[p];
|
||||
return ds->enabled_port_mask & (1 << p) && ds->ports[p];
|
||||
}
|
||||
|
||||
static inline u8 dsa_upstream_port(struct dsa_switch *ds)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue