mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Add a directory by kernel instead of a common root, add qnap-301w and rpi4 kernel 6.1 suppport
This commit is contained in:
parent
e910436a7a
commit
46837ec4c0
9459 changed files with 362648 additions and 116345 deletions
|
|
@ -0,0 +1,51 @@
|
|||
From 941657a50b9fbf73af465d27751299a7088d88e1 Mon Sep 17 00:00:00 2001
|
||||
From: Phil Elwell <phil@raspberrypi.com>
|
||||
Date: Wed, 14 Dec 2022 15:00:51 +0000
|
||||
Subject: [PATCH 531/726] net: bcmgenet: Add 'eee' module parameter
|
||||
|
||||
On some switches, having EEE enabled causes the link to become
|
||||
unstable. With this patch, adding 'genet.eee=N' to the kernel command
|
||||
line will cause EEE to be disabled on the link.
|
||||
|
||||
See: https://github.com/raspberrypi/linux/issues/4289
|
||||
|
||||
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
---
|
||||
drivers/net/ethernet/broadcom/genet/bcmgenet.c | 14 ++++++++++++++
|
||||
1 file changed, 14 insertions(+)
|
||||
|
||||
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
|
||||
index 2e157aceb7c8..1174684a7f23 100644
|
||||
--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
|
||||
+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
|
||||
@@ -70,6 +70,9 @@ static void bcmgenet_set_rx_mode(struct net_device *dev);
|
||||
static bool skip_umac_reset = false;
|
||||
module_param(skip_umac_reset, bool, 0444);
|
||||
MODULE_PARM_DESC(skip_umac_reset, "Skip UMAC reset step");
|
||||
+static bool eee = true;
|
||||
+module_param(eee, bool, 0444);
|
||||
+MODULE_PARM_DESC(eee, "Enable EEE (default Y)");
|
||||
|
||||
static inline void bcmgenet_writel(u32 value, void __iomem *offset)
|
||||
{
|
||||
@@ -3441,6 +3444,17 @@ static int bcmgenet_open(struct net_device *dev)
|
||||
|
||||
bcmgenet_phy_pause_set(dev, priv->rx_pause, priv->tx_pause);
|
||||
|
||||
+ if (!eee) {
|
||||
+ struct ethtool_eee eee_data;
|
||||
+
|
||||
+ ret = bcmgenet_get_eee(dev, &eee_data);
|
||||
+ if (ret == 0) {
|
||||
+ eee_data.eee_enabled = 0;
|
||||
+ bcmgenet_set_eee(dev, &eee_data);
|
||||
+ netdev_warn(dev, "EEE disabled\n");
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
bcmgenet_netif_start(dev);
|
||||
|
||||
netif_tx_start_all_queues(dev);
|
||||
--
|
||||
2.33.1
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue