Skip to contentSkip to conversation

net: macb: Increase halt timeout to accommodate 10Mbps link

PATCH Applied Harini Katakam 3 participants 3 messages Mar 16, 2023 – Mar 18, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: macb: Increase halt timeout to accommodate 10Mbps link

From: Harini Katakam <[email protected]>

Increase halt timeout to accommodate for 16K SRAM at 10Mbps rounded.

---
 drivers/net/ethernet/cadence/macb_main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/cadence/macb_main.c +1 -2
index 51c9fd6f68a4..96fd2aa9ee90 100644
@@ -94,8 +94,7 @@ struct sifive_fu540_macb_mgmt {
 /* Graceful stop timeouts in us. We should allow up to
  * 1 frame time (10 Mbits/s, full-duplex, ignoring collisions)
  */
-#define MACB_HALT_TIMEOUT	1230
-
+#define MACB_HALT_TIMEOUT	14000
 #define MACB_PM_TIMEOUT  100 /* ms */
 
 #define MACB_MDIO_TIMEOUT	1000000 /* in usecs */
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Harini Katakam

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

From: Harini Katakam <[email protected]>

Increase halt timeout to accommodate for 16K SRAM at 10Mbps rounded.

Fine with me:

Best regards,
Nicolas

Quoted 21 lines
---
  drivers/net/ethernet/cadence/macb_main.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/cadence/macb_main.c +1 -3
index 51c9fd6f68a4..96fd2aa9ee90 100644
@@ -94,8 +94,7 @@ struct sifive_fu540_macb_mgmt {
  /* Graceful stop timeouts in us. We should allow up to
   * 1 frame time (10 Mbits/s, full-duplex, ignoring collisions)
   */
-#define MACB_HALT_TIMEOUT      1230
-
+#define MACB_HALT_TIMEOUT      14000
  #define MACB_PM_TIMEOUT  100 /* ms */
 
  #define MACB_MDIO_TIMEOUT      1000000 /* in usecs */
--

2.17.1

Signature · 1 line
Nicolas Ferre
#2 lore raw
In reply to Harini Katakam
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Thu, 16 Mar 2023 14:00:50 +0530 you wrote:

From: Harini Katakam <[email protected]>

Increase halt timeout to accommodate for 16K SRAM at 10Mbps rounded.

[...]

Here is the summary with links:
- [net-next] net: macb: Increase halt timeout to accommodate 10Mbps link

    https://git.kernel.org/netdev/net-next/c/ed0578a46c5f

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html