From: Aleksander Jan Bajkowski <hidden> Date: 2021-09-12 11:58:22
The delay is especially needed by the xRX300 and xRX330 SoCs. Without
this patch, some phys are sometimes not properly detected.
The patch was tested on BT Home Hub 5A and D-Link DWR-966.
Fixes: a09d042b0862 ("net: dsa: lantiq: allow to use all GPHYs on xRX300 and xRX330")
Signed-off-by: Aleksander Jan Bajkowski <redacted>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
drivers/net/dsa/lantiq_gswip.c | 6 ++++++
1 file changed, 6 insertions(+)
@@ -1885,6 +1885,12 @@ static int gswip_gphy_fw_load(struct gswip_priv *priv, struct gswip_gphy_fw *gphreset_control_assert(gphy_fw->reset);+/* The vendor BSP uses a 200ms delay after asserting the reset line.+*WithoutthissomeusersareobservingthatthePHYisnotcomingup+*ontheMDIObus.+*/+msleep(200);+ret=request_firmware(&fw,gphy_fw->fw_name,dev);if(ret){dev_err(dev,"failed to load firmware: %s, error: %i\n",
On 9/12/21 1:58 PM, Aleksander Jan Bajkowski wrote:
The delay is especially needed by the xRX300 and xRX330 SoCs. Without
this patch, some phys are sometimes not properly detected.
The patch was tested on BT Home Hub 5A and D-Link DWR-966.
Fixes: a09d042b0862 ("net: dsa: lantiq: allow to use all GPHYs on xRX300 and xRX330")
Signed-off-by: Aleksander Jan Bajkowski <redacted>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
@@ -1885,6 +1885,12 @@ static int gswip_gphy_fw_load(struct gswip_priv *priv, struct gswip_gphy_fw *gphreset_control_assert(gphy_fw->reset);+/* The vendor BSP uses a 200ms delay after asserting the reset line.+*WithoutthissomeusersareobservingthatthePHYisnotcomingup+*ontheMDIObus.+*/+msleep(200);+ret=request_firmware(&fw,gphy_fw->fw_name,dev);if(ret){dev_err(dev,"failed to load firmware: %s, error: %i\n",
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Sun, 12 Sep 2021 13:58:07 +0200 you wrote:
The delay is especially needed by the xRX300 and xRX330 SoCs. Without
this patch, some phys are sometimes not properly detected.
The patch was tested on BT Home Hub 5A and D-Link DWR-966.
Fixes: a09d042b0862 ("net: dsa: lantiq: allow to use all GPHYs on xRX300 and xRX330")
Signed-off-by: Aleksander Jan Bajkowski <redacted>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
[...]