* the same VLAN.
         */
        for (i = 0; i < priv->hw_params.num_ports; i++) {
-               if (!((1 << i) & ds->phys_port_mask))
+               if (!((1 << i) & ds->enabled_port_mask))
                        continue;
 
                reg = core_readl(priv, CORE_PORT_VLAN_CTL_PORT(i));
        /* Enable all valid ports and disable those unused */
        for (port = 0; port < priv->hw_params.num_ports; port++) {
                /* IMP port receives special treatment */
-               if ((1 << port) & ds->phys_port_mask)
+               if ((1 << port) & ds->enabled_port_mask)
                        bcm_sf2_port_setup(ds, port, NULL);
                else if (dsa_is_cpu_port(ds, port))
                        bcm_sf2_imp_setup(ds, port);
         * 7445D0, since 7445E0 disconnects the internal switch pseudo-PHY such
         * that we can use the regular SWITCH_MDIO master controller instead.
         *
-        * By default, DSA initializes ds->phys_mii_mask to ds->phys_port_mask
-        * to have a 1:1 mapping between Port address and PHY address in order
-        * to utilize the slave_mii_bus instance to read from Port PHYs. This is
-        * not what we want here, so we initialize phys_mii_mask 0 to always
-        * utilize the "master" MDIO bus backed by the "mdio-unimac" driver.
+        * By default, DSA initializes ds->phys_mii_mask to
+        * ds->enabled_port_mask to have a 1:1 mapping between Port address
+        * and PHY address in order to utilize the slave_mii_bus instance to
+        * read from Port PHYs. This is not what we want here, so we
+        * initialize phys_mii_mask 0 to always utilize the "master" MDIO
+        * bus backed by the "mdio-unimac" driver.
         */
        if (of_machine_is_compatible("brcm,bcm7445d0"))
                ds->phys_mii_mask |= ((1 << BRCM_PSEUDO_PHY_ADDR) | (1 << 0));
         * bcm_sf2_sw_setup
         */
        for (port = 0; port < DSA_MAX_PORTS; port++) {
-               if ((1 << port) & ds->phys_port_mask ||
+               if ((1 << port) & ds->enabled_port_mask ||
                    dsa_is_cpu_port(ds, port))
                        bcm_sf2_port_disable(ds, port, NULL);
        }
                bcm_sf2_gphy_enable_set(ds, true);
 
        for (port = 0; port < DSA_MAX_PORTS; port++) {
-               if ((1 << port) & ds->phys_port_mask)
+               if ((1 << port) & ds->enabled_port_mask)
                        bcm_sf2_port_setup(ds, port, NULL);
                else if (dsa_is_cpu_port(ds, port))
                        bcm_sf2_imp_setup(ds, port);
 
                } else if (!strcmp(name, "dsa")) {
                        ds->dsa_port_mask |= 1 << i;
                } else {
-                       ds->phys_port_mask |= 1 << i;
+                       ds->enabled_port_mask |= 1 << i;
                }
                valid_name_found = true;
        }
        /* Make the built-in MII bus mask match the number of ports,
         * switch drivers can override this later
         */
-       ds->phys_mii_mask = ds->phys_port_mask;
+       ds->phys_mii_mask = ds->enabled_port_mask;
 
        /*
         * If the CPU connects to this switch, set the switch tree
         * Create network devices for physical switch ports.
         */
        for (i = 0; i < DSA_MAX_PORTS; i++) {
-               if (!(ds->phys_port_mask & (1 << i)))
+               if (!(ds->enabled_port_mask & (1 << i)))
                        continue;
 
                ret = dsa_slave_create(ds, parent, i, pd->port_names[i]);
 
        /* Destroy network devices for physical switch ports. */
        for (port = 0; port < DSA_MAX_PORTS; port++) {
-               if (!(ds->phys_port_mask & (1 << port)))
+               if (!(ds->enabled_port_mask & (1 << port)))
                        continue;
 
                if (!ds->ports[port])