-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No manual changes needed. Signed-off-by: Hauke Mehrtens <[email protected]>
- Loading branch information
Showing
30 changed files
with
142 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-5.15 = .155 | ||
LINUX_KERNEL_HASH-5.15.155 = c85859b86d2e6d1fc91ca1be8b44f24a9b5bb9f86869b04a8665a3a6559126e4 | ||
LINUX_VERSION-5.15 = .156 | ||
LINUX_KERNEL_HASH-5.15.156 = 9f0465d14c93691056f5f94de647601f94f083ad8ce2e5d306564394b13e7778 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ Signed-off-by: Jakub Kicinski <[email protected]> | |
|
||
--- a/drivers/net/dsa/mt7530.c | ||
+++ b/drivers/net/dsa/mt7530.c | ||
@@ -1243,27 +1243,31 @@ static int | ||
@@ -1404,27 +1404,31 @@ static int | ||
mt7530_port_bridge_join(struct dsa_switch *ds, int port, | ||
struct net_device *bridge) | ||
{ | ||
|
@@ -65,7 +65,7 @@ Signed-off-by: Jakub Kicinski <[email protected]> | |
} | ||
|
||
/* Add the all other ports to this port matrix. */ | ||
@@ -1368,24 +1372,28 @@ static void | ||
@@ -1529,24 +1533,28 @@ static void | ||
mt7530_port_bridge_leave(struct dsa_switch *ds, int port, | ||
struct net_device *bridge) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
|
||
--- a/drivers/net/dsa/mt7530.c | ||
+++ b/drivers/net/dsa/mt7530.c | ||
@@ -2499,6 +2499,32 @@ mt7531_setup(struct dsa_switch *ds) | ||
@@ -2660,6 +2660,32 @@ mt7531_setup(struct dsa_switch *ds) | ||
return 0; | ||
} | ||
|
||
|
@@ -56,7 +56,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
static bool | ||
mt7530_phy_mode_supported(struct dsa_switch *ds, int port, | ||
const struct phylink_link_state *state) | ||
@@ -2535,6 +2561,37 @@ static bool mt7531_is_rgmii_port(struct | ||
@@ -2696,6 +2722,37 @@ static bool mt7531_is_rgmii_port(struct | ||
return (port == 5) && (priv->p5_intf_sel != P5_INTF_SEL_GMAC5_SGMII); | ||
} | ||
|
||
|
@@ -94,7 +94,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
static bool | ||
mt7531_phy_mode_supported(struct dsa_switch *ds, int port, | ||
const struct phylink_link_state *state) | ||
@@ -3011,6 +3068,18 @@ mt7531_cpu_port_config(struct dsa_switch | ||
@@ -3172,6 +3229,18 @@ mt7531_cpu_port_config(struct dsa_switch | ||
return 0; | ||
} | ||
|
||
|
@@ -113,39 +113,39 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
static void | ||
mt7530_mac_port_validate(struct dsa_switch *ds, int port, | ||
unsigned long *supported) | ||
@@ -3246,6 +3315,7 @@ static const struct dsa_switch_ops mt753 | ||
@@ -3407,6 +3476,7 @@ static const struct dsa_switch_ops mt753 | ||
.port_vlan_del = mt7530_port_vlan_del, | ||
.port_mirror_add = mt753x_port_mirror_add, | ||
.port_mirror_del = mt753x_port_mirror_del, | ||
+ .phylink_get_caps = mt753x_phylink_get_caps, | ||
.phylink_validate = mt753x_phylink_validate, | ||
.phylink_mac_link_state = mt753x_phylink_mac_link_state, | ||
.phylink_mac_config = mt753x_phylink_mac_config, | ||
@@ -3263,6 +3333,7 @@ static const struct mt753x_info mt753x_t | ||
@@ -3424,6 +3494,7 @@ static const struct mt753x_info mt753x_t | ||
.phy_read = mt7530_phy_read, | ||
.phy_write = mt7530_phy_write, | ||
.pad_setup = mt7530_pad_clk_setup, | ||
+ .mac_port_get_caps = mt7530_mac_port_get_caps, | ||
.phy_mode_supported = mt7530_phy_mode_supported, | ||
.mac_port_validate = mt7530_mac_port_validate, | ||
.mac_port_get_state = mt7530_phylink_mac_link_state, | ||
@@ -3274,6 +3345,7 @@ static const struct mt753x_info mt753x_t | ||
@@ -3435,6 +3506,7 @@ static const struct mt753x_info mt753x_t | ||
.phy_read = mt7530_phy_read, | ||
.phy_write = mt7530_phy_write, | ||
.pad_setup = mt7530_pad_clk_setup, | ||
+ .mac_port_get_caps = mt7530_mac_port_get_caps, | ||
.phy_mode_supported = mt7530_phy_mode_supported, | ||
.mac_port_validate = mt7530_mac_port_validate, | ||
.mac_port_get_state = mt7530_phylink_mac_link_state, | ||
@@ -3286,6 +3358,7 @@ static const struct mt753x_info mt753x_t | ||
@@ -3447,6 +3519,7 @@ static const struct mt753x_info mt753x_t | ||
.phy_write = mt7531_ind_phy_write, | ||
.pad_setup = mt7531_pad_setup, | ||
.cpu_port_config = mt7531_cpu_port_config, | ||
+ .mac_port_get_caps = mt7531_mac_port_get_caps, | ||
.phy_mode_supported = mt7531_phy_mode_supported, | ||
.mac_port_validate = mt7531_mac_port_validate, | ||
.mac_port_get_state = mt7531_phylink_mac_link_state, | ||
@@ -3348,6 +3421,7 @@ mt7530_probe(struct mdio_device *mdiodev | ||
@@ -3509,6 +3582,7 @@ mt7530_probe(struct mdio_device *mdiodev | ||
*/ | ||
if (!priv->info->sw_setup || !priv->info->pad_setup || | ||
!priv->info->phy_read || !priv->info->phy_write || | ||
|
@@ -155,7 +155,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
!priv->info->mac_port_get_state || !priv->info->mac_port_config) | ||
--- a/drivers/net/dsa/mt7530.h | ||
+++ b/drivers/net/dsa/mt7530.h | ||
@@ -796,6 +796,8 @@ struct mt753x_info { | ||
@@ -801,6 +801,8 @@ struct mt753x_info { | ||
int (*phy_write)(struct mt7530_priv *priv, int port, int regnum, u16 val); | ||
int (*pad_setup)(struct dsa_switch *ds, phy_interface_t interface); | ||
int (*cpu_port_config)(struct dsa_switch *ds, int port); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
|
||
--- a/drivers/net/dsa/mt7530.c | ||
+++ b/drivers/net/dsa/mt7530.c | ||
@@ -2525,37 +2525,6 @@ static void mt7530_mac_port_get_caps(str | ||
@@ -2686,37 +2686,6 @@ static void mt7530_mac_port_get_caps(str | ||
} | ||
} | ||
|
||
|
@@ -59,7 +59,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
static bool mt7531_is_rgmii_port(struct mt7530_priv *priv, u32 port) | ||
{ | ||
return (port == 5) && (priv->p5_intf_sel != P5_INTF_SEL_GMAC5_SGMII); | ||
@@ -2592,44 +2561,6 @@ static void mt7531_mac_port_get_caps(str | ||
@@ -2753,44 +2722,6 @@ static void mt7531_mac_port_get_caps(str | ||
} | ||
} | ||
|
||
|
@@ -104,7 +104,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
static int | ||
mt753x_pad_setup(struct dsa_switch *ds, const struct phylink_link_state *state) | ||
{ | ||
@@ -2884,9 +2815,6 @@ mt753x_phylink_mac_config(struct dsa_swi | ||
@@ -3045,9 +2976,6 @@ mt753x_phylink_mac_config(struct dsa_swi | ||
struct mt7530_priv *priv = ds->priv; | ||
u32 mcr_cur, mcr_new; | ||
|
||
|
@@ -114,7 +114,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
switch (port) { | ||
case 0 ... 4: /* Internal phy */ | ||
if (state->interface != PHY_INTERFACE_MODE_GMII) | ||
@@ -3102,12 +3030,6 @@ mt753x_phylink_validate(struct dsa_switc | ||
@@ -3263,12 +3191,6 @@ mt753x_phylink_validate(struct dsa_switc | ||
__ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, }; | ||
struct mt7530_priv *priv = ds->priv; | ||
|
||
|
@@ -127,31 +127,31 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
phylink_set_port_modes(mask); | ||
|
||
if (state->interface != PHY_INTERFACE_MODE_TRGMII && | ||
@@ -3334,7 +3256,6 @@ static const struct mt753x_info mt753x_t | ||
@@ -3495,7 +3417,6 @@ static const struct mt753x_info mt753x_t | ||
.phy_write = mt7530_phy_write, | ||
.pad_setup = mt7530_pad_clk_setup, | ||
.mac_port_get_caps = mt7530_mac_port_get_caps, | ||
- .phy_mode_supported = mt7530_phy_mode_supported, | ||
.mac_port_validate = mt7530_mac_port_validate, | ||
.mac_port_get_state = mt7530_phylink_mac_link_state, | ||
.mac_port_config = mt7530_mac_config, | ||
@@ -3346,7 +3267,6 @@ static const struct mt753x_info mt753x_t | ||
@@ -3507,7 +3428,6 @@ static const struct mt753x_info mt753x_t | ||
.phy_write = mt7530_phy_write, | ||
.pad_setup = mt7530_pad_clk_setup, | ||
.mac_port_get_caps = mt7530_mac_port_get_caps, | ||
- .phy_mode_supported = mt7530_phy_mode_supported, | ||
.mac_port_validate = mt7530_mac_port_validate, | ||
.mac_port_get_state = mt7530_phylink_mac_link_state, | ||
.mac_port_config = mt7530_mac_config, | ||
@@ -3359,7 +3279,6 @@ static const struct mt753x_info mt753x_t | ||
@@ -3520,7 +3440,6 @@ static const struct mt753x_info mt753x_t | ||
.pad_setup = mt7531_pad_setup, | ||
.cpu_port_config = mt7531_cpu_port_config, | ||
.mac_port_get_caps = mt7531_mac_port_get_caps, | ||
- .phy_mode_supported = mt7531_phy_mode_supported, | ||
.mac_port_validate = mt7531_mac_port_validate, | ||
.mac_port_get_state = mt7531_phylink_mac_link_state, | ||
.mac_port_config = mt7531_mac_config, | ||
@@ -3422,7 +3341,6 @@ mt7530_probe(struct mdio_device *mdiodev | ||
@@ -3583,7 +3502,6 @@ mt7530_probe(struct mdio_device *mdiodev | ||
if (!priv->info->sw_setup || !priv->info->pad_setup || | ||
!priv->info->phy_read || !priv->info->phy_write || | ||
!priv->info->mac_port_get_caps || | ||
|
@@ -161,7 +161,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
return -EINVAL; | ||
--- a/drivers/net/dsa/mt7530.h | ||
+++ b/drivers/net/dsa/mt7530.h | ||
@@ -798,8 +798,6 @@ struct mt753x_info { | ||
@@ -803,8 +803,6 @@ struct mt753x_info { | ||
int (*cpu_port_config)(struct dsa_switch *ds, int port); | ||
void (*mac_port_get_caps)(struct dsa_switch *ds, int port, | ||
struct phylink_config *config); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
|
||
--- a/drivers/net/dsa/mt7530.c | ||
+++ b/drivers/net/dsa/mt7530.c | ||
@@ -3054,11 +3054,6 @@ mt753x_phylink_validate(struct dsa_switc | ||
@@ -3215,11 +3215,6 @@ mt753x_phylink_validate(struct dsa_switc | ||
|
||
linkmode_and(supported, supported, mask); | ||
linkmode_and(state->advertising, state->advertising, mask); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
|
||
--- a/drivers/net/dsa/mt7530.c | ||
+++ b/drivers/net/dsa/mt7530.c | ||
@@ -2632,12 +2632,13 @@ static int mt7531_rgmii_setup(struct mt7 | ||
@@ -2793,12 +2793,13 @@ static int mt7531_rgmii_setup(struct mt7 | ||
} | ||
|
||
static void mt7531_sgmii_validate(struct mt7530_priv *priv, int port, | ||
|
@@ -38,7 +38,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
phylink_set(supported, 2500baseX_Full); | ||
phylink_set(supported, 2500baseT_Full); | ||
} | ||
@@ -3010,16 +3011,18 @@ static void mt753x_phylink_get_caps(stru | ||
@@ -3171,16 +3172,18 @@ static void mt753x_phylink_get_caps(stru | ||
|
||
static void | ||
mt7530_mac_port_validate(struct dsa_switch *ds, int port, | ||
|
@@ -58,7 +58,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
} | ||
|
||
static void | ||
@@ -3042,12 +3045,13 @@ mt753x_phylink_validate(struct dsa_switc | ||
@@ -3203,12 +3206,13 @@ mt753x_phylink_validate(struct dsa_switc | ||
} | ||
|
||
/* This switch only supports 1G full-duplex. */ | ||
|
@@ -76,7 +76,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
phylink_set(mask, Asym_Pause); | ||
--- a/drivers/net/dsa/mt7530.h | ||
+++ b/drivers/net/dsa/mt7530.h | ||
@@ -799,6 +799,7 @@ struct mt753x_info { | ||
@@ -804,6 +804,7 @@ struct mt753x_info { | ||
void (*mac_port_get_caps)(struct dsa_switch *ds, int port, | ||
struct phylink_config *config); | ||
void (*mac_port_validate)(struct dsa_switch *ds, int port, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
|
||
--- a/drivers/net/dsa/mt7530.c | ||
+++ b/drivers/net/dsa/mt7530.c | ||
@@ -2631,19 +2631,6 @@ static int mt7531_rgmii_setup(struct mt7 | ||
@@ -2792,19 +2792,6 @@ static int mt7531_rgmii_setup(struct mt7 | ||
return 0; | ||
} | ||
|
||
|
@@ -40,7 +40,7 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
static void | ||
mt7531_sgmii_link_up_force(struct dsa_switch *ds, int port, | ||
unsigned int mode, phy_interface_t interface, | ||
@@ -3010,51 +2997,21 @@ static void mt753x_phylink_get_caps(stru | ||
@@ -3171,51 +3158,21 @@ static void mt753x_phylink_get_caps(stru | ||
} | ||
|
||
static void | ||
|
@@ -97,31 +97,31 @@ Signed-off-by: Paolo Abeni <[email protected]> | |
|
||
linkmode_and(supported, supported, mask); | ||
linkmode_and(state->advertising, state->advertising, mask); | ||
@@ -3255,7 +3212,6 @@ static const struct mt753x_info mt753x_t | ||
@@ -3416,7 +3373,6 @@ static const struct mt753x_info mt753x_t | ||
.phy_write = mt7530_phy_write, | ||
.pad_setup = mt7530_pad_clk_setup, | ||
.mac_port_get_caps = mt7530_mac_port_get_caps, | ||
- .mac_port_validate = mt7530_mac_port_validate, | ||
.mac_port_get_state = mt7530_phylink_mac_link_state, | ||
.mac_port_config = mt7530_mac_config, | ||
}, | ||
@@ -3266,7 +3222,6 @@ static const struct mt753x_info mt753x_t | ||
@@ -3427,7 +3383,6 @@ static const struct mt753x_info mt753x_t | ||
.phy_write = mt7530_phy_write, | ||
.pad_setup = mt7530_pad_clk_setup, | ||
.mac_port_get_caps = mt7530_mac_port_get_caps, | ||
- .mac_port_validate = mt7530_mac_port_validate, | ||
.mac_port_get_state = mt7530_phylink_mac_link_state, | ||
.mac_port_config = mt7530_mac_config, | ||
}, | ||
@@ -3278,7 +3233,6 @@ static const struct mt753x_info mt753x_t | ||
@@ -3439,7 +3394,6 @@ static const struct mt753x_info mt753x_t | ||
.pad_setup = mt7531_pad_setup, | ||
.cpu_port_config = mt7531_cpu_port_config, | ||
.mac_port_get_caps = mt7531_mac_port_get_caps, | ||
- .mac_port_validate = mt7531_mac_port_validate, | ||
.mac_port_get_state = mt7531_phylink_mac_link_state, | ||
.mac_port_config = mt7531_mac_config, | ||
.mac_pcs_an_restart = mt7531_sgmii_restart_an, | ||
@@ -3340,7 +3294,6 @@ mt7530_probe(struct mdio_device *mdiodev | ||
@@ -3501,7 +3455,6 @@ mt7530_probe(struct mdio_device *mdiodev | ||
if (!priv->info->sw_setup || !priv->info->pad_setup || | ||
!priv->info->phy_read || !priv->info->phy_write || | ||
!priv->info->mac_port_get_caps || | ||
|
Oops, something went wrong.