-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding workaround for tx disable issue from Marvell
Signed-off-by: Steve Noble <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
packages/base/any/kernels/5.6-lts/patches/0022-marvell-wa-tx-disable.patch
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
diff --git a/drivers/net/ethernet/marvell/prestera_sw/prestera.c b/drivers/net/ethernet/marvell/prestera_sw/prestera.c | ||
index 2f7a758..1f36a88 100644 | ||
--- a/drivers/net/ethernet/marvell/prestera_sw/prestera.c | ||
+++ b/drivers/net/ethernet/marvell/prestera_sw/prestera.c | ||
@@ -367,6 +367,11 @@ static int mvsw_pr_port_state_set(struct net_device *dev, bool is_up) | ||
|
||
static int mvsw_pr_port_open(struct net_device *dev) | ||
{ | ||
+ struct mvsw_pr_port *port = netdev_priv(dev); | ||
+ | ||
+ if (port->caps.transceiver == MVSW_PORT_TRANSCEIVER_SFP) | ||
+ phylink_start(port->phy_link); | ||
+ | ||
return mvsw_pr_port_state_set(dev, true); | ||
} | ||
|
||
@@ -376,6 +381,9 @@ static int mvsw_pr_port_close(struct net_device *dev) | ||
|
||
mvsw_pr_fdb_flush_port(port, MVSW_PR_FDB_FLUSH_MODE_DYNAMIC); | ||
|
||
+ if (port->caps.transceiver == MVSW_PORT_TRANSCEIVER_SFP) | ||
+ phylink_stop(port->phy_link); | ||
+ | ||
return mvsw_pr_port_state_set(dev, false); | ||
} | ||
|
||
@@ -1565,7 +1573,7 @@ static int mvsw_pr_port_create(struct mvsw_pr_switch *sw, u32 id) | ||
net_dev = alloc_etherdev(sizeof(*port)); | ||
if (!net_dev) | ||
return -ENOMEM; | ||
- | ||
+ SET_NETDEV_DEV(net_dev, sw->dev->dev); | ||
port = netdev_priv(net_dev); | ||
|
||
INIT_LIST_HEAD(&port->vlans_list); |
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