From df0c747216063041ba0d786b01f9b1e2aba5316a Mon Sep 17 00:00:00 2001
From: Daniel Golle <daniel@makrotopia.org>
Date: Wed, 22 Apr 2026 15:15:52 +0100
Subject: [PATCH] DO NOT SUBMIT: net: dsa: mxl862xx: increase CMD timeout

Lift the command timeout by 10x from 500ms to 5s.
This is done because older firmware can be extremely slow to respond
and cause -ETIMEOUT during setup, or crash the PHY state machine.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 drivers/net/dsa/mxl862xx/mxl862xx-host.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/dsa/mxl862xx/mxl862xx-host.c
+++ b/drivers/net/dsa/mxl862xx/mxl862xx-host.c
@@ -207,7 +207,7 @@ static int mxl862xx_busy_wait(struct mxl
 	int val;
 
 	return readx_poll_timeout(mxl862xx_ctrl_read, priv, val,
-				  !(val & CTRL_BUSY_MASK), 15, 500000);
+				  !(val & CTRL_BUSY_MASK), 50, 5000000);
 }
 
 /* Issue a firmware command with CRC-6 protection on the ctrl and len_ret
