summaryrefslogtreecommitdiff
path: root/drivers/zorro
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-04-22 22:20:58 -0700
committerDavid S. Miller <davem@davemloft.net>2021-04-23 13:31:58 -0700
commit3630d519d7c3eab92567658690e44ffe0517d109 (patch)
tree1d7014b129e5cdbd09ec5c37551a24fefec9bea9 /drivers/zorro
parentc30c4a82739090a2de4a4e3f245355ea4fb3ec14 (diff)
net: ethernet: mtk_eth_soc: reduce MDIO bus access latency
usleep_range often ends up sleeping much longer than the 10-20us provided as a range here. This causes significant latency in mdio bus acceses, which easily adds multiple seconds to the boot time on MT7621 when polling DSA slave ports. Use cond_resched instead of usleep_range, since the MDIO access does not take much time Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/zorro')
0 files changed, 0 insertions, 0 deletions