1. 03 Mar, 2022 4 commits
  2. 26 Feb, 2022 1 commit
    • Mateusz Jończyk's avatar
      selftests/rtc: continuously read RTC in a loop for 30s · 2aaa36e9
      Mateusz Jończyk authored
      Some problems with reading the RTC time may happen rarely, for example
      while the RTC is updating. So read the RTC many times to catch these
      problems. For example, a previous attempt for my
      commit ea6fa496 ("rtc: mc146818-lib: fix RTC presence check")
      was incorrect and would have triggered this selftest.
      
      To avoid the risk of damaging the hardware, wait 11ms before consecutive
      reads.
      
      In rtc_time_to_timestamp I copied values manually instead of casting -
      just to be on the safe side. The 11ms wait period was chosen so that it is
      not a divisor of 1000ms.
      Signed-off-by: default avatarMateusz Jończyk <mat.jonczyk@o2.pl>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
      Cc: Shuah Khan <shuah@kernel.org>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      2aaa36e9
  3. 24 Feb, 2022 16 commits
  4. 20 Feb, 2022 13 commits
  5. 19 Feb, 2022 5 commits
  6. 18 Feb, 2022 1 commit