linux_dsm_epyc7002/drivers/net/ethernet/ti
Grygorii Strashko 20138cf9ef net: ethernet: ti: cpts: fix overflow check period
The CPTS drivers uses 8sec period for overflow checking with
assumption that CPTS retclk will not exceed 500MHz. But that's not
true on some TI platforms (Kesytone 2). As result, it is possible that
CPTS counter will overflow more than once between two readings.

Hence, fix it by selecting overflow check period dynamically as
max_sec_before_overflow/2, where
 max_sec_before_overflow = max_counter_val / rftclk_freq.

Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-07 11:13:48 -05:00
..
cpmac.c
cpsw_ale.c
cpsw_ale.h
cpsw-common.c
cpsw-phy-sel.c net: ethernet: ti: cpsw: fix device and of_node leaks 2016-11-07 13:17:30 -05:00
cpsw.c net: ethernet: ti: cpts: move dt props parsing to cpts driver 2016-12-07 11:13:48 -05:00
cpsw.h net: ethernet: ti: cpts: move dt props parsing to cpts driver 2016-12-07 11:13:48 -05:00
cpts.c net: ethernet: ti: cpts: fix overflow check period 2016-12-07 11:13:48 -05:00
cpts.h net: ethernet: ti: cpts: fix overflow check period 2016-12-07 11:13:48 -05:00
davinci_cpdma.c net: ethernet: ti: davinci_cpdma: add missing EXPORTs 2016-12-03 15:27:38 -05:00
davinci_cpdma.h net: ethernet: ti: davinci_cpdma: add set rate for a channel 2016-11-30 14:37:13 -05:00
davinci_emac.c net: ethernet: ti: davinci_emac: fix fixed-link phydev and of-node leaks 2016-11-29 23:17:02 -05:00
davinci_mdio.c
Kconfig net: ethernet: ti: allow cpts to be built separately 2016-12-07 11:13:46 -05:00
Makefile net: ethernet: ti: allow cpts to be built separately 2016-12-07 11:13:46 -05:00
netcp_core.c net: netcp: replace IS_ERR_OR_NULL by IS_ERR 2016-11-16 23:26:36 -05:00
netcp_ethss.c
netcp_sgmii.c
netcp_xgbepcsr.c
netcp.h
tlan.c
tlan.h