]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: enlarge mdio delay and timeout
authorAnsuel Smith <ansuelsmth@gmail.com>
Fri, 14 May 2021 21:00:09 +0000 (23:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:30:22 +0000 (15:30 -0700)
commit7578e888c1e9bad5e2216932dfe5d002bb3fce8d
tree488eda154f1481f39895986fce39aa5834435af6
parentbd9c7a7f4d6d5a34e24ed34cc3f199b101f820da
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>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h