linux-xiaomi-chiron/drivers/net/ethernet/ti
Grygorii Strashko 4614792eeb net: ethernet: ti: cpts: fix ethtool output when no ptp_clock registered
The CPTS driver registers PTP PHC clock when first netif is going up and
unregister it when all netif are down. Now ethtool will show:
 - PTP PHC clock index 0 after boot until first netif is up;
 - the last assigned PTP PHC clock index even if PTP PHC clock is not
registered any more after all netifs are down.

This patch ensures that -1 is returned by ethtool when PTP PHC clock is not
registered any more.

Fixes: 8a2c9a5ab4 ("net: ethernet: ti: cpts: rework initialization/deinitialization")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Link: https://lore.kernel.org/r/20201224162405.28032-1-grygorii.strashko@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-12-28 13:32:34 -08:00
..
am65-cpsw-ethtool.c
am65-cpsw-nuss.c
am65-cpsw-nuss.h
am65-cpsw-qos.c
am65-cpsw-qos.h
am65-cpts.c
am65-cpts.h
cpmac.c
cpsw-common.c
cpsw-phy-sel.c
cpsw.c
cpsw.h
cpsw_ale.c
cpsw_ale.h
cpsw_ethtool.c
cpsw_new.c
cpsw_priv.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-11 22:29:38 -08:00
cpsw_priv.h
cpsw_sl.c
cpsw_sl.h
cpsw_switchdev.c
cpsw_switchdev.h
cpts.c net: ethernet: ti: cpts: fix ethtool output when no ptp_clock registered 2020-12-28 13:32:34 -08:00
cpts.h
davinci_cpdma.c
davinci_cpdma.h
davinci_emac.c
davinci_mdio.c
k3-cppi-desc-pool.c
k3-cppi-desc-pool.h
Kconfig
Makefile
netcp.h
netcp_core.c
netcp_ethss.c
netcp_sgmii.c
netcp_xgbepcsr.c
tlan.c
tlan.h