Update driver to be ready for the upcoming firmware release. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
26 lines
969 B
Diff
26 lines
969 B
Diff
From 332dd61f50b096256f889ecb4d730d385e58aec2 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
Date: Wed, 22 Apr 2026 15:15:52 +0100
|
|
Subject: [PATCH 19/19] 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
|