aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-04-14 17:26:04 +0200
committerPetr Štetiar <ynezz@true.cz>2019-05-20 21:19:48 +0200
commit6648e9458f2f47cdbe16bd9537f08048a0a252fd (patch)
treea21c3f99c1907ef08b51b1323b17b560da6f3f23 /target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi
parentaac8b52184e727d8ba7a13917a9a3c8b82ec4aa2 (diff)
downloadupstream-6648e9458f2f47cdbe16bd9537f08048a0a252fd.tar.gz
upstream-6648e9458f2f47cdbe16bd9537f08048a0a252fd.tar.bz2
upstream-6648e9458f2f47cdbe16bd9537f08048a0a252fd.zip
ath79: set mib-poll-interval on mdio0 attached ar83xx switch
Commit "generic: ar8216: add mib_poll_interval switch attribute" sets mib-poll-interval as disabled by default (was set to 2s), so it makes switch LEDs trigger disfunctional on devices which don't have mib-poll-interval set. So this patch sets mib-poll-interval to 500ms on devices which have ar83xx switch connected to mdio0 bus, as the same value was set for built in switches in 443fc9ac35 ("ath79: use ar8216 for builtin switch"). Some measurements performed on TP-Link Archer C7-v5: mib-type=0, mib-poll-interval=500ms (10s pidstat) Average: %usr %system %guest %wait %CPU CPU Command Average: 0.00 1.93 0.00 0.00 1.93 - kworker/0:2 iperf3 (30s): 334 Mbits/sec mib-type=0, mib-poll-interval=2s (10s pidstat) Average: %usr %system %guest %wait %CPU CPU Command Average: 0.00 1.14 0.00 0.00 1.14 - kworker/0:2 iperf3 (30s): 334 Mbits/sec So it seems like we get 4x faster LED refresh rate for additional 0.8% CPU load. Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi')
-rw-r--r--target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi b/target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi
index c778cf90ba..42b4b6b8c6 100644
--- a/target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi
+++ b/target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi
@@ -103,6 +103,7 @@
phy0: ethernet-phy@0 {
reg = <0>;
phy-mode = "sgmii";
+ qca,mib-poll-interval = <500>;
qca,ar8327-initvals = <
0x04 0x00080080 /* PORT0 PAD MODE CTRL */