mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00

[mac80211] ca5ee6e mac80211: Fix potential endless loop 2c14710 mac80211: add more AQL fixes/improvements 91fb3ce mac80211: remove an obsolete patch that is no longer doing anything useful acf1733 mac80211: add preliminary support for enabling 802.11ax in config d717343 mac80211: update encap offload patches to the latest version 673062f mac80211: allow bigger A-MSDU sizes in VHT, even if HT is limited caf7277 mac80211: do not allow bigger VHT MPDUs than the hardware supports cd36c0d mac80211: select the first available channel for 5GHz interfaces 1c6d456 mac80211: fix regression in station connection monitor optimization 4bd7689 mac80211: update sta connection monitor regression fix [target] Sync: at91, ath25, ath79, lantiq, mediatek, mvebu.
27 lines
872 B
Diff
27 lines
872 B
Diff
From: Felix Fietkau <nbd@nbd.name>
|
|
Date: Mon, 8 Jun 2020 17:02:39 +0200
|
|
Subject: [PATCH] net: ethernet: mtk_eth_soc: significantly 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>
|
|
---
|
|
|
|
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
|
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
|
@@ -85,7 +85,7 @@ static int mtk_mdio_busy_wait(struct mtk
|
|
return 0;
|
|
if (time_after(jiffies, t_start + PHY_IAC_TIMEOUT))
|
|
break;
|
|
- usleep_range(10, 20);
|
|
+ cond_resched();
|
|
}
|
|
|
|
dev_err(eth->dev, "mdio: MDIO timeout\n");
|