diff options
author | Aleksander Jan Bajkowski <olek2@wp.pl> | 2021-09-12 13:58:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-13 13:01:44 +0100 |
commit | 111b64e35ea03d58c882832744f571a88bb2e2e2 (patch) | |
tree | f365aca6f72e294623f74867e94dcc9d0dc656e8 /drivers/net | |
parent | e87b5052271e39d62337ade531992b7e5d8c2cfa (diff) | |
download | linux-stable-111b64e35ea03d58c882832744f571a88bb2e2e2.tar.gz linux-stable-111b64e35ea03d58c882832744f571a88bb2e2e2.tar.bz2 linux-stable-111b64e35ea03d58c882832744f571a88bb2e2e2.zip |
net: dsa: lantiq_gswip: Add 200ms assert delay
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 <olek2@wp.pl>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/dsa/lantiq_gswip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswip.c index 64d6dfa83122..267324889dd6 100644 --- a/drivers/net/dsa/lantiq_gswip.c +++ b/drivers/net/dsa/lantiq_gswip.c @@ -1885,6 +1885,12 @@ static int gswip_gphy_fw_load(struct gswip_priv *priv, struct gswip_gphy_fw *gph reset_control_assert(gphy_fw->reset); + /* The vendor BSP uses a 200ms delay after asserting the reset line. + * Without this some users are observing that the PHY is not coming up + * on the MDIO bus. + */ + msleep(200); + ret = request_firmware(&fw, gphy_fw->fw_name, dev); if (ret) { dev_err(dev, "failed to load firmware: %s, error: %i\n", |