difos/target/linux/generic/files/drivers/net/phy
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
..
b53 kernel: b53: register switch on probe 2018-11-23 21:45:51 +00:00
adm6996.c generic: provide get_port_stats() on adm6996 switches 2017-09-01 09:30:35 +02:00
adm6996.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
ar8216.c generic: ar8216: add support for get_port_stats() 2019-03-24 01:44:26 +01:00
ar8216.h generic: ar8216: add support for get_port_stats() 2019-03-24 01:44:26 +01:00
ar8327.c generic: ar8216: add support for get_port_stats() 2019-03-24 01:44:26 +01:00
ar8327.h kernel: ar83xx: Add support for three GMAC's connection 2018-12-06 08:15:27 +01:00
ip17xx.c ip17xx: correct aneg_done return value 2017-06-07 11:06:29 +02:00
mvsw61xx.c kernel: add mv88e61xx switch port-mirroring support 2018-12-16 00:57:20 +01:00
mvsw61xx.h kernel: add mv88e61xx switch port-mirroring support 2018-12-16 00:57:20 +01:00
mvswitch.c mvswitch: fix autonegotiation issue 2017-06-07 11:06:12 +02:00
mvswitch.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
psb6970.c kernel: update phy drivers for 4.9 2017-02-03 12:35:44 +01:00
rtl8306.c kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
rtl8366_smi.c generic: rtl836x: support defered probe on mdio-bus 2018-11-26 12:05:46 +01:00
rtl8366_smi.h kernel: rtl8366-smi: add Realtek switch management via mii-bus 2018-06-25 20:52:18 +02:00
rtl8366rb.c generic: rtl836x: support defered probe on mdio-bus 2018-11-26 12:05:46 +01:00
rtl8366s.c generic: rtl836x: support defered probe on mdio-bus 2018-11-26 12:05:46 +01:00
rtl8367.c generic: rtl836x: support defered probe on mdio-bus 2018-11-26 12:05:46 +01:00
rtl8367b.c generic: rtl8367b: make it possible to specify cpu_port via DT 2018-11-26 12:05:46 +01:00
swconfig.c swconfig: convert swdevs_lock from spinlock to mutex 2018-03-12 12:50:46 +01:00
swconfig_leds.c kernel: Make the patches apply on top of 4.19 2018-12-15 14:28:48 +01:00