diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-05-14 23:00:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-14 15:30:22 -0700 |
commit | 617960d72e93de0f3fa52407e2d39e8c43e73b0a (patch) | |
tree | 488eda154f1481f39895986fce39aa5834435af6 /drivers/net/dsa/qca8k.c | |
parent | 60df02b6ea4581d72eb7a3ab7204504a54059b72 (diff) |
net: dsa: qca8k: enlarge mdio delay and timeout
The witch require some extra delay after setting page or the next
read/write can use still use the old page. Add a delay after the
set_page function to address this as it's done in QSDK legacy driver.
Some timeouts were notice with VLAN and phy function, enlarge the
mdio busy wait timeout to fix these problems.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/qca8k.c')
-rw-r--r-- | drivers/net/dsa/qca8k.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/qca8k.c b/drivers/net/dsa/qca8k.c index 1f8bfe0a78f4..df4cf6d75074 100644 --- a/drivers/net/dsa/qca8k.c +++ b/drivers/net/dsa/qca8k.c @@ -143,6 +143,7 @@ qca8k_set_page(struct mii_bus *bus, u16 page) } qca8k_current_page = page; + usleep_range(1000, 2000); return 0; } |