openwrt/target/linux
Chuanhong Guo 9fc506e9b2 generic: ar8216: add support for get_port_stats()
Partially reverts commit eff3549c58.

AR7240 and AR9341 have buggy hardware switch LED trigger. The AR7240
one doesn't blink and the blinking of port0/port5 is reversed on
AR9341 if we swap PHY0 and PHY4. (Only blinking is reversed, which
means LED for PHY0 will lit when PHY0 is link up and will blink when
PHY4 has active link and vice versa.) On these two chips a software
swconfig LED trigger is required.

This commit adds swconfig port stats back but:
 1. move checking of mib_t/rxb_id into ar8xxx_chip since we can't
    distinguish ar7240sw and ar8216 using only chip id.
 2. don't update mib counter in get_port_stat. This function is called
    every 0.01s and this capturing procedure will take up a lot of CPU.
    We already have a mib_work_func updating mib counters every 2s so
    return the saved counter instead of fetching new data. The blinking
    rate will be weird but it should solve the previously mentioned CPU
    time problem.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2019-03-24 01:44:26 +01:00
..
adm5120 kernel: bump 3.18 to 3.18.133 2019-01-28 18:17:32 +01:00
adm8668 kernel: bump 3.18 to 3.18.133 2019-01-28 18:17:32 +01:00
apm821xx apm821xx: usb: xhci: fix semicolon.cocci warnings 2019-03-13 16:25:37 +01:00
ar7 kernel: bump 4.9 to 4.9.153 2019-01-28 18:17:32 +01:00
ar71xx kernel: bump 4.14 to 4.14.107 2019-03-22 18:14:28 +01:00
arc770 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
archs38 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
armvirt armvirt: 32: enable CONFIG_ARM_LPAE 2019-02-19 13:13:49 +00:00
at91 kernel: Build: Split kmod-regmap 2019-01-27 00:16:13 +01:00
ath25 kernel: bump 4.14 to 4.14.79 2018-11-05 16:00:00 +01:00
ath79 ath79: add support for linux 4.19 2019-03-24 01:44:25 +01:00
au1000 treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
bcm53xx bcm53xx: add first DTS changes queued for the Linux 5.1 2019-02-01 07:09:27 +01:00
brcm47xx kernel: bump 4.14 to 4.14.107 2019-03-22 18:14:28 +01:00
brcm63xx kernel: bump 4.9 to 4.9.164 2019-03-22 18:14:28 +01:00
brcm2708 kernel: bump 4.14 to 4.14.107 2019-03-22 18:14:28 +01:00
cns3xxx kernel: bump 4.19 to 4.19.21 2019-02-14 16:45:01 +01:00
gemini gemini: Generate padded kernel+rootfs images for DIR-685 2019-03-13 16:25:36 +01:00
generic generic: ar8216: add support for get_port_stats() 2019-03-24 01:44:26 +01:00
imx6 imx6: fix legacy IRQ support (4.19) 2019-03-22 18:14:28 +01:00
ipq40xx ipq40xx: add support for EnGenius ENS620EXT 2019-03-21 00:57:54 +01:00
ipq806x ipq806x: Enlarge R7500v2 flash - use netgear partition 2019-03-18 20:55:52 +01:00
ixp4xx kernel: bump 4.9 to 4.9.160 2019-02-25 17:33:16 +01:00
kirkwood kernel: bump 4.19 to 4.19.24 2019-02-22 10:53:42 +01:00
lantiq lantiq: kernel 4.14: fix usb_phy1 reset status bit in vr9.dts 2019-03-18 20:42:30 +01:00
layerscape kernel: bump 4.14 to 4.14.107 2019-03-22 18:14:28 +01:00
malta malta: Add support for kernel 4.19 2019-01-13 16:31:40 +01:00
mcs814x kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
mediatek kernel: bump 4.14 to 4.14.99 2019-02-14 16:45:01 +01:00
mpc85xx mpc85xx: Fix Aerohive HiveAP-330 initramfs image 2019-03-02 13:04:54 +01:00
mvebu kernel: bump 4.14 to 4.14.106 2019-03-18 10:02:51 +01:00
mxs mxs: disable unused serial drivers 2019-03-11 19:35:43 +01:00
octeon octeon: fix typo in platform.sh 2019-01-12 19:40:13 +01:00
octeontx kernel: enable memory compaction 2018-10-09 14:29:55 +02:00
omap kernel: bump 4.14 to 4.14.77 2018-10-19 10:01:57 +02:00
omap24xx omap24xx: remove referece to not existing kmod-usb-musb-tusb6010 2018-01-15 13:13:34 +01:00
orion treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
oxnas kernel: bump 4.14 to 4.14.106 2019-03-18 10:02:51 +01:00
pistachio kernel: bump 4.14 to 4.14.91 2019-01-07 17:09:06 +01:00
ppc40x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ppc44x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ramips ramips: add support for DLINK DIR-510L 2019-03-24 01:44:24 +01:00
rb532 kernel: bump 4.14 to 4.14.86 2018-12-10 11:48:44 +01:00
samsung kernel: Deactivate CONFIG_COMPAT_BRK 2018-12-26 17:32:48 +01:00
sunxi sunxi: add support for Orange Pi PC Plus 2019-03-09 18:55:15 +01:00
uml treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
x86 x86: video: disable buildtin amdgpu DRM driver 2019-02-17 19:22:39 +01:00
xburst kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
zynq kernel: Deactivate CONFIG_COMPAT_BRK 2018-12-26 17:32:48 +01:00
Makefile