]> git.baikalelectronics.ru Git - 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)
commit1f53a167b862b302c1412884b25fa041fe497f21
tree0bbff0af58f840afd4c1b4c4e79bfbcca9fac455
parentfa29b8972f37a6be382ac4dde18db23ce2723766
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