apm821xx: set mib-poll-interval on emac0 attached ar83xx switch
authorPetr Štetiar <ynezz@true.cz>
Sun, 14 Apr 2019 15:23:38 +0000 (17:23 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 20 May 2019 19:19:48 +0000 (21:19 +0200)
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 emac0, as the same value was set for built in
switches in 443fc9ac35 ("ath79: use ar8216 for builtin switch").

Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/apm821xx/dts/meraki-mx60.dts
target/linux/apm821xx/dts/netgear-wndr4700.dts

index fc3213e92ccbb219173585d38480c5e5ae7f29fd..638bfe5c16d67d807edb8b20102f3d8a03ecadda 100644 (file)
                phy0: ethernet-phy@0 {
                        compatible = "ethernet-phy-id004d.d034";
                        reg = <0>;
                phy0: ethernet-phy@0 {
                        compatible = "ethernet-phy-id004d.d034";
                        reg = <0>;
+                       qca,mib-poll-interval = <500>;
+
                        qca,ar8327-initvals = <
                                0x0010 0x40000000
                                0x0624 0x007f7f7f
                        qca,ar8327-initvals = <
                                0x0010 0x40000000
                                0x0624 0x007f7f7f
index 14f6762110f5715a2f3d831b21a19abed06c60c9..0f1e97a921d7a075c010f6dd6a57a5a9f849ebea 100644 (file)
                phy0: ethernet-phy@0 {
                        device_type = "ethernet-phy";
                        reg = <0>;
                phy0: ethernet-phy@0 {
                        device_type = "ethernet-phy";
                        reg = <0>;
+                       qca,mib-poll-interval = <500>;
+
                        qca,ar8327-initvals = <
                                0x0010 0x40000000
                                0x0624 0x007f7f7f
                        qca,ar8327-initvals = <
                                0x0010 0x40000000
                                0x0624 0x007f7f7f