linux/drivers/net/dsa/sja1105
Aleksandrova Alyona aee5836273 net: dsa: sja1105: round up PTP perout pin duration
pin_duration is converted from the user-provided period to SJA1105
clock ticks and is later passed as the cycle_time argument to
future_base_time().

Very small period values may become zero after the conversion,
which can lead to a division by zero in future_base_time().

Round zero pin_duration up to 1 tick so that the smallest unsupported
periods use the minimum non-zero hardware duration instead of passing
zero to future_base_time().

Fixes: 747e5eb31d ("net: dsa: sja1105: configure the PTP_CLK pin as EXT_TS or PER_OUT")
Signed-off-by: Aleksandrova Alyona <aga@itb.spb.ru>
Link: https://patch.msgid.link/20260618110508.53094-1-aga@itb.spb.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-06-23 14:42:38 -07:00
..
Kconfig
Makefile
sja1105_clocking.c net: dsa: sja1105: make read-only const arrays static 2023-09-21 16:12:12 +02:00
sja1105_devlink.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
sja1105_dynamic_config.c net: dsa: sja1105: fix multicast forwarding working only for last added mdb entry 2023-09-11 08:32:30 +01:00
sja1105_dynamic_config.h
sja1105_ethtool.c net: dsa: sja1105: fix displaced ethtool statistics counters 2025-03-24 15:20:23 -07:00
sja1105_flower.c net: dsa: sja1105: flower: reject cross-chip redirect 2026-06-02 14:35:56 -07:00
sja1105_main.c Networking changes for 7.2. 2026-06-17 08:17:00 +01:00
sja1105_mdio.c net: dsa: sja1105: Use of_get_available_child_by_name() 2025-02-07 13:43:55 +00:00
sja1105_ptp.c net: dsa: sja1105: round up PTP perout pin duration 2026-06-23 14:42:38 -07:00
sja1105_ptp.h net: dsa: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() 2025-05-09 16:34:09 -07:00
sja1105_spi.c net: dsa: sja1105: complete tc-cbs offload support on SJA1110 2023-09-06 06:23:05 +01:00
sja1105_static_config.c net: dsa: sja1105: fix kasan out-of-bounds warning in sja1105_table_delete_entry() 2025-03-24 15:20:23 -07:00
sja1105_static_config.h
sja1105_tas.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sja1105_tas.h
sja1105_vl.c net: dsa: sja1105: fix lastused timestamp in flower stats 2026-06-15 19:01:48 -07:00
sja1105_vl.h
sja1105.h net: dsa: sja1105: use phylink_pcs internally 2024-10-02 17:32:00 -07:00