aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.19/950-0754-Revert-net-bcmgenet-Workaround-for-Pi-4B-network-iss.patch
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2019-09-04 19:01:23 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2019-09-04 19:02:48 +0200
commit662394fb30fdbcc89ec387918714aebee6868a9f (patch)
treec308c5f1a650abf9d9ccbb2a1747469a0d8570c0 /target/linux/brcm2708/patches-4.19/950-0754-Revert-net-bcmgenet-Workaround-for-Pi-4B-network-iss.patch
parent99a5e285887c4a10aaf06d8e01fae0707995da00 (diff)
downloadupstream-662394fb30fdbcc89ec387918714aebee6868a9f.tar.gz
upstream-662394fb30fdbcc89ec387918714aebee6868a9f.tar.bz2
upstream-662394fb30fdbcc89ec387918714aebee6868a9f.zip
brcm2708: update to latest patches from RPi foundation
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.19/950-0754-Revert-net-bcmgenet-Workaround-for-Pi-4B-network-iss.patch')
-rw-r--r--target/linux/brcm2708/patches-4.19/950-0754-Revert-net-bcmgenet-Workaround-for-Pi-4B-network-iss.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.19/950-0754-Revert-net-bcmgenet-Workaround-for-Pi-4B-network-iss.patch b/target/linux/brcm2708/patches-4.19/950-0754-Revert-net-bcmgenet-Workaround-for-Pi-4B-network-iss.patch
new file mode 100644
index 0000000000..18cc3edd6f
--- /dev/null
+++ b/target/linux/brcm2708/patches-4.19/950-0754-Revert-net-bcmgenet-Workaround-for-Pi-4B-network-iss.patch
@@ -0,0 +1,56 @@
+From 93a6cc6b04f305aca589828b70449a873474847d Mon Sep 17 00:00:00 2001
+From: Phil Elwell <phil@raspberrypi.org>
+Date: Fri, 9 Aug 2019 08:52:16 +0100
+Subject: [PATCH 754/782] Revert "net: bcmgenet: Workaround for Pi 4B network
+ issue"
+
+This reverts commit 9c0770ea7682a84a22c33410ef6870af258abacc.
+---
+ .../net/ethernet/broadcom/genet/bcmgenet.c | 22 -------------------
+ 1 file changed, 22 deletions(-)
+
+--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
++++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
+@@ -72,10 +72,6 @@
+ #define GENET_RDMA_REG_OFF (priv->hw_params->rdma_offset + \
+ TOTAL_DESC * DMA_DESC_SIZE)
+
+-static bool force_reneg = false;
+-module_param(force_reneg, bool, 0444);
+-MODULE_PARM_DESC(force_reneg, "Force a renegotiation after the initial link-up");
+-
+ static inline void bcmgenet_writel(u32 value, void __iomem *offset)
+ {
+ /* MIPS chips strapped for BE will automagically configure the
+@@ -2614,7 +2610,6 @@ static void bcmgenet_irq_task(struct wor
+ unsigned int status;
+ struct bcmgenet_priv *priv = container_of(
+ work, struct bcmgenet_priv, bcmgenet_irq_work);
+- static int first_link = 1;
+
+ netif_dbg(priv, intr, priv->dev, "%s\n", __func__);
+
+@@ -2627,23 +2622,6 @@ static void bcmgenet_irq_task(struct wor
+ if (status & UMAC_IRQ_LINK_EVENT) {
+ priv->dev->phydev->link = !!(status & UMAC_IRQ_LINK_UP);
+ phy_mac_interrupt(priv->dev->phydev);
+-
+- if (priv->dev->phydev->link && first_link) {
+- first_link = 0;
+- /*
+- * HACK: Some Pi4Bs, when paired with some switches,
+- * come up in a strange state where they are unable to
+- * transmit, causing them to fail to get an IP address.
+- * Although the failure mechanism is not yet understood,
+- * forcing renegotiation at this point has been shown
+- * to be effective in avoiding the problem.
+- */
+- if (force_reneg) {
+- dev_info(&priv->pdev->dev,
+- "Forcing renegotiation\n");
+- genphy_restart_aneg(priv->dev->phydev);
+- }
+- }
+ }
+ }
+