|
|
@@ -81,7 +81,7 @@ Tested-by: Frank Wunderlich <[email protected]>
|
|
|
#include <linux/phylink.h>
|
|
|
#include <linux/regmap.h>
|
|
|
#include <linux/regulator/consumer.h>
|
|
|
-@@ -2597,128 +2598,11 @@ static int mt7531_rgmii_setup(struct mt7
|
|
|
+@@ -2611,128 +2612,11 @@ static int mt7531_rgmii_setup(struct mt7
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
@@ -210,7 +210,7 @@ Tested-by: Frank Wunderlich <[email protected]>
|
|
|
static int
|
|
|
mt7531_mac_config(struct dsa_switch *ds, int port, unsigned int mode,
|
|
|
phy_interface_t interface)
|
|
|
-@@ -2741,11 +2625,11 @@ mt7531_mac_config(struct dsa_switch *ds,
|
|
|
+@@ -2755,11 +2639,11 @@ mt7531_mac_config(struct dsa_switch *ds,
|
|
|
phydev = dp->slave->phydev;
|
|
|
return mt7531_rgmii_setup(priv, port, interface, phydev);
|
|
|
case PHY_INTERFACE_MODE_SGMII:
|
|
|
@@ -224,7 +224,7 @@ Tested-by: Frank Wunderlich <[email protected]>
|
|
|
default:
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
-@@ -2770,11 +2654,11 @@ mt753x_phylink_mac_select_pcs(struct dsa
|
|
|
+@@ -2784,11 +2668,11 @@ mt753x_phylink_mac_select_pcs(struct dsa
|
|
|
|
|
|
switch (interface) {
|
|
|
case PHY_INTERFACE_MODE_TRGMII:
|
|
|
@@ -238,7 +238,7 @@ Tested-by: Frank Wunderlich <[email protected]>
|
|
|
default:
|
|
|
return NULL;
|
|
|
}
|
|
|
-@@ -3015,86 +2899,6 @@ static void mt7530_pcs_get_state(struct
|
|
|
+@@ -3029,86 +2913,6 @@ static void mt7530_pcs_get_state(struct
|
|
|
state->pause |= MLO_PAUSE_TX;
|
|
|
}
|
|
|
|
|
|
@@ -325,7 +325,7 @@ Tested-by: Frank Wunderlich <[email protected]>
|
|
|
static int mt753x_pcs_config(struct phylink_pcs *pcs, unsigned int mode,
|
|
|
phy_interface_t interface,
|
|
|
const unsigned long *advertising,
|
|
|
-@@ -3114,18 +2918,57 @@ static const struct phylink_pcs_ops mt75
|
|
|
+@@ -3128,18 +2932,57 @@ static const struct phylink_pcs_ops mt75
|
|
|
.pcs_an_restart = mt7530_pcs_an_restart,
|
|
|
};
|
|
|
|
|
|
@@ -389,7 +389,7 @@ Tested-by: Frank Wunderlich <[email protected]>
|
|
|
int i, ret;
|
|
|
|
|
|
/* Initialise the PCS devices */
|
|
|
-@@ -3133,8 +2976,6 @@ mt753x_setup(struct dsa_switch *ds)
|
|
|
+@@ -3147,8 +2990,6 @@ mt753x_setup(struct dsa_switch *ds)
|
|
|
priv->pcs[i].pcs.ops = priv->info->pcs_ops;
|
|
|
priv->pcs[i].priv = priv;
|
|
|
priv->pcs[i].port = i;
|
|
|
@@ -398,7 +398,7 @@ Tested-by: Frank Wunderlich <[email protected]>
|
|
|
}
|
|
|
|
|
|
ret = priv->info->sw_setup(ds);
|
|
|
-@@ -3149,6 +2990,16 @@ mt753x_setup(struct dsa_switch *ds)
|
|
|
+@@ -3163,6 +3004,16 @@ mt753x_setup(struct dsa_switch *ds)
|
|
|
if (ret && priv->irq)
|
|
|
mt7530_free_irq_common(priv);
|
|
|
|
|
|
@@ -415,7 +415,7 @@ Tested-by: Frank Wunderlich <[email protected]>
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-@@ -3240,7 +3091,7 @@ static const struct mt753x_info mt753x_t
|
|
|
+@@ -3254,7 +3105,7 @@ static const struct mt753x_info mt753x_t
|
|
|
},
|
|
|
[ID_MT7531] = {
|
|
|
.id = ID_MT7531,
|
|
|
@@ -424,7 +424,7 @@ Tested-by: Frank Wunderlich <[email protected]>
|
|
|
.sw_setup = mt7531_setup,
|
|
|
.phy_read = mt7531_ind_phy_read,
|
|
|
.phy_write = mt7531_ind_phy_write,
|
|
|
-@@ -3348,7 +3199,7 @@ static void
|
|
|
+@@ -3362,7 +3213,7 @@ static void
|
|
|
mt7530_remove(struct mdio_device *mdiodev)
|
|
|
{
|
|
|
struct mt7530_priv *priv = dev_get_drvdata(&mdiodev->dev);
|
|
|
@@ -433,7 +433,7 @@ Tested-by: Frank Wunderlich <[email protected]>
|
|
|
|
|
|
if (!priv)
|
|
|
return;
|
|
|
-@@ -3367,6 +3218,10 @@ mt7530_remove(struct mdio_device *mdiode
|
|
|
+@@ -3381,6 +3232,10 @@ mt7530_remove(struct mdio_device *mdiode
|
|
|
mt7530_free_irq(priv);
|
|
|
|
|
|
dsa_unregister_switch(priv->ds);
|
|
|
@@ -446,7 +446,7 @@ Tested-by: Frank Wunderlich <[email protected]>
|
|
|
|
|
|
--- a/drivers/net/dsa/mt7530.h
|
|
|
+++ b/drivers/net/dsa/mt7530.h
|
|
|
-@@ -364,47 +364,8 @@ enum mt7530_vlan_port_acc_frm {
|
|
|
+@@ -369,47 +369,8 @@ enum mt7530_vlan_port_acc_frm {
|
|
|
CCR_TX_OCT_CNT_BAD)
|
|
|
|
|
|
/* MT7531 SGMII register group */
|
|
|
@@ -496,7 +496,7 @@ Tested-by: Frank Wunderlich <[email protected]>
|
|
|
|
|
|
/* Register for system reset */
|
|
|
#define MT7530_SYS_CTRL 0x7000
|
|
|
-@@ -703,13 +664,13 @@ struct mt7530_fdb {
|
|
|
+@@ -708,13 +669,13 @@ struct mt7530_fdb {
|
|
|
* @pm: The matrix used to show all connections with the port.
|
|
|
* @pvid: The VLAN specified is to be considered a PVID at ingress. Any
|
|
|
* untagged frames will be assigned to the related VLAN.
|