1. 10 Jun, 2020 4 commits
    • Maciej Lipinski's avatar
      Detect change to new foreign master only if already synchronized to a foreign master · bd2f31ab
      Maciej Lipinski authored
      Do it only if a foreign master is changed to a new one,
      do not do it if this is the first foreign master, i.e.
      we were not synchronized to any PTP master and the clockIdentity
      in the parent DS was our own. In other words, the flag
      newGrandmaster is meant to detect change between foreign
      masters, and not connection to a foreign master when
      before there was none). The "if" was added to prevent
      unnecessary trashing between SLAVE and UNCALIBRATED
      state (without the if, the UNCALIBRATED would be forced
      unnecesserily when connecting the link).
      bd2f31ab
    • Maciej Lipinski's avatar
      Prevent re-entring UNCALIBRATED from SLAVE when WR slave port connects to nonWR port · 7d72d594
      Maciej Lipinski authored
      Set the parentDetect flag to NOT_WR_PARENT only if we think
      that the parent is WR_PARENT, i.e. thsi flag is not set in
      case that parentDetection=PD_NO_DETECTION because that means
      we already know whether we are speaking with WR guy or not.
      Previously, this condition was parentDetection!=PD_NOT_WR_PARENT
      and there was some trashing when WR slave port was speaking
      to nonWR port. This is because parentDetection=PD_NO_DETECTION
      was set and then parentDetection=PD_NOT_WR_PARENT was re-set
      which cause the slave to go back to UNCALIBRATED from SLAVE.
      7d72d594
    • Maciej Lipinski's avatar
      [fix issue #25] set doRestart flag when servo is resetted on link down · 10315b89
      Maciej Lipinski authored
      When link goes down, the servo_reset function is called, this is
      the perfect place to force the restart of WR link Setup. Yet, this
      function is called also when WR link setup times out. In this case,
      we do not want to force its re-running. Thus, the doRestart flag is
      set only on link down detection.
      10315b89
    • Maciej Lipinski's avatar
      Revert "[fix issue #25] force WR handshake if the servo is in WRH_UNINITIALIZED" · f7d54404
      Maciej Lipinski authored
      This reverts commit a3b0cbac.
      
      It was a bad idea in the case when a slave WR port speaks with a
      non-WR port. In such case, the servo is not initialized and we
      have trashing of states. Next commit will fix the problem in a
      different way
      f7d54404
  2. 08 Jun, 2020 3 commits
  3. 15 May, 2020 1 commit
  4. 25 Mar, 2020 1 commit
  5. 06 Mar, 2020 1 commit
  6. 04 Mar, 2020 1 commit
  7. 24 Feb, 2020 2 commits
  8. 20 Feb, 2020 1 commit
    • Jean-Claude BAU's avatar
      Fix issue: up/down/up interface transition · 6239ca56
      Jean-Claude BAU authored
      When a transition of a interface form up->down->up occured, the Slave port was restarted sometimes with the extension OFF.
      It has been fixed by re-enabling the extension when a transition state from SLAVE to UNCALIBRATED is detected.
      6239ca56
  9. 07 Feb, 2020 1 commit
  10. 06 Feb, 2020 2 commits
  11. 03 Feb, 2020 10 commits
  12. 28 Jan, 2020 1 commit
    • Alessandro Rubini's avatar
      general: include <limits.h> · f283f0e2
      Alessandro Rubini authored
      This version of ppsi, currently submodule of proposed_master of
      wr-switch-sw, is not building because of INT_MAX, UINT_MAX and the like.
      
      This includes <limits.h> in all files where this is needed.
      
      Obviously, <limits.h> will be missing in wrpc-sw and bare builds, but
      this version does not build for most architectures anyways (including
      arch-unix).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      f283f0e2
  13. 17 Jan, 2020 1 commit
  14. 09 Jan, 2020 1 commit
  15. 08 Jan, 2020 1 commit
  16. 19 Dec, 2019 1 commit
  17. 18 Dec, 2019 1 commit
  18. 13 Dec, 2019 3 commits
  19. 20 Nov, 2019 2 commits
  20. 15 Nov, 2019 1 commit
    • Jean-Claude BAU's avatar
      Fix issue selecting ErBest · 724ce5a3
      Jean-Claude BAU authored
      Issue detected by IOL test in ICALEPS2019
      The selection of the ErBest was not taking account all the time of the
      qualification.
      724ce5a3
  21. 14 Nov, 2019 1 commit
    • Jean-Claude BAU's avatar
      Clock degradation · 04f722fe
      Jean-Claude BAU authored
      - New mechanism for clock degradation (degrade clock class, clock
      accuracy, clock variance, timeSource, ptpTimeScale, frequencyTraceable,
      timeTraceable)
      - timeSource can be configured now
      - If clock accuracy, clock variance and timeSource are not set in
      ppsi.conf, default values are used depending of the clock class.
      04f722fe