]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: dsa: sja1105: make future_base_time a common helper
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 23 Mar 2020 22:59:22 +0000 (00:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 05:15:07 +0000 (22:15 -0700)
commit4bfa1616d95fcb2a4e39c1032c49347770f821e7
tree0bbff0af58f840afd4c1b4c4e79bfbcca9fac455
parent79d5511cc0eedbb2e49b543507d795f927db311b
net: dsa: sja1105: make future_base_time a common helper

Because the PTP_CLK pin starts toggling only at a time higher than the
current PTP clock, this helper from the time-aware shaper code comes in
handy here as well. We'll use it to transform generic user input for the
perout request into valid input for the sja1105 hardware.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_ptp.h
drivers/net/dsa/sja1105/sja1105_tas.c