1. 06 Jun, 2014 2 commits
  2. 03 Apr, 2014 1 commit
  3. 24 Jan, 2014 2 commits
  4. 22 Dec, 2013 1 commit
  5. 20 Dec, 2013 1 commit
  6. 17 Nov, 2013 1 commit
    • Richard Henderson's avatar
      alpha: Reorganize rtc handling · 85d0b3a5
      Richard Henderson authored
      
      Discontinue use of GENERIC_CMOS_UPDATE; rely on the RTC subsystem.
      
      The marvel platform requires that the rtc only be touched from the
      boot cpu.  This had been partially implemented with hooks for
      get/set_rtc_time, but read/update_persistent_clock were not handled.
      Move the hooks from the machine_vec to a special rtc_class_ops struct.
      
      We had read_persistent_clock managing the epoch against which the
      rtc hw is based, but this didn't apply to get_rtc_time or set_rtc_time.
      This resulted in incorrect values when hwclock(8) gets involved.
      
      Allow the epoch to be set from the kernel command-line, overriding
      the autodetection, which is doomed to fail in 2020.  Further, by
      implementing the rtc ioctl function, we can expose this epoch to
      userland.
      
      Elide the alarm functions that RTC_DRV_CMOS implements.  This was
      highly questionable on Alpha, since the interrupt is used by the
      system timer.
      Signed-off-by: default avatarRichard Henderson <rth@twiddle.net>
      85d0b3a5
  7. 13 Nov, 2013 2 commits
  8. 11 Sep, 2013 1 commit
  9. 03 Jul, 2013 2 commits
  10. 14 May, 2013 1 commit
    • John Stultz's avatar
      time: Revert ALWAYS_USE_PERSISTENT_CLOCK compile time optimizaitons · b4f711ee
      John Stultz authored
      
      Kay Sievers noted that the ALWAYS_USE_PERSISTENT_CLOCK config,
      which enables some minor compile time optimization to avoid
      uncessary code in mostly the suspend/resume path could cause
      problems for userland.
      
      In particular, the dependency for RTC_HCTOSYS on
      !ALWAYS_USE_PERSISTENT_CLOCK, which avoids setting the time
      twice and simplifies suspend/resume, has the side effect
      of causing the /sys/class/rtc/rtcN/hctosys flag to always be
      zero, and this flag is commonly used by udev to setup the
      /dev/rtc symlink to /dev/rtcN, which can cause pain for
      older applications.
      
      While the udev rules could use some work to be less fragile,
      breaking userland should strongly be avoided. Additionally
      the compile time optimizations are fairly minor, and the code
      being optimized is likely to be reworked in the future, so
      lets revert this change.
      Reported-by: default avatarKay Sievers <kay@vrfy.org>
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      Cc: stable <stable@vger.kernel.org> #3.9
      Cc: Feng Tang <feng.tang@intel.com>
      Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
      Link: http://lkml.kernel.org/r/1366828376-18124-1-git-send-email-john.stultz@linaro.org
      
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      b4f711ee
  11. 12 Apr, 2013 1 commit
  12. 22 Feb, 2013 5 commits
  13. 13 Feb, 2013 1 commit
  14. 30 Jan, 2013 1 commit
  15. 29 Jan, 2013 1 commit
  16. 16 Jan, 2013 2 commits
    • Feng Tang's avatar
      timekeeping: Add CONFIG_HAS_PERSISTENT_CLOCK option · 05ad717c
      Feng Tang authored
      
      Make the persistent clock check a kernel config option, so that some
      platform can explicitely select it, also make CONFIG_RTC_HCTOSYS and
      RTC_SYSTOHC depend on its non-existence, which could prevent the
      persistent clock and RTC code from doing similar thing twice during
      system's init/suspend/resume phases.
      
      If the CONFIG_HAS_PERSISTENT_CLOCK=n, then no change happens for kernel
      which still does the persistent clock check in timekeeping_init().
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Suggested-by: default avatarJohn Stultz <john.stultz@linaro.org>
      Signed-off-by: default avatarFeng Tang <feng.tang@intel.com>
      [jstultz: Added dependency for RTC_SYSTOHC as well]
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      05ad717c
    • Jason Gunthorpe's avatar
      NTP: Add a CONFIG_RTC_SYSTOHC configuration · 023f333a
      Jason Gunthorpe authored
      
      The purpose of this option is to allow ARM/etc systems that rely on the
      class RTC subsystem to have the same kind of automatic NTP based
      synchronization that we have on PC platforms. Today ARM does not
      implement update_persistent_clock and makes extensive use of the class
      RTC system.
      
      When enabled CONFIG_RTC_SYSTOHC will provide a generic
      rtc_update_persistent_clock that stores the current time in the RTC and
      is intended complement the existing CONFIG_RTC_HCTOSYS option that loads
      the RTC at boot.
      
      Like with RTC_HCTOSYS the platform's update_persistent_clock is used
      first, if it works. Platforms with mixed class RTC and non-RTC drivers
      need to return ENODEV when class RTC should be used. Such an update for
      PPC is included in this patch.
      
      Long term, implementations of update_persistent_clock should migrate to
      proper class RTC drivers and use CONFIG_RTC_SYSTOHC instead.
      
      Tested on ARM kirkwood and PPC405
      Signed-off-by: default avatarJason Gunthorpe <jgunthorpe@obsidianresearch.com>
      Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
      023f333a
  17. 06 Jan, 2013 1 commit
    • Alexander Holler's avatar
      rtc: add rtc-driver for HID sensors of type time · 62e00cb9
      Alexander Holler authored
      
      This driver makes the time from HID sensors (hubs) which are offering
      such available like any other RTC does.
      
      It is necessary that all values like year, month etc, are send as
      8bit values (1 byte each) and all of them in 1 report. Also the
      spec HUTRR39b doesn't define the range of the year field, we
      tread it as 0 - 99 because that's what most RTCs I know about are
      offering.
      
      Currently the time can only be read. Setting the time must be done
      through sending a report (or a feature). The spec currently doesn't
      define how and I'm not sure if I just should define something by myself.
      Signed-off-by: default avatarAlexander Holler <holler@ahsoftware.de>
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      62e00cb9
  18. 05 Jan, 2013 1 commit
  19. 18 Dec, 2012 4 commits
  20. 10 Oct, 2012 1 commit
    • Kevin Hilman's avatar
      rtc: kconfig: fix RTC_INTF defaults connected to RTC_CLASS · 8dc08395
      Kevin Hilman authored
      Commit 6b8029fa
      
       ("rtc: kconfig: remove unnecessary dependencies")
      removed various 'depends on RTC_CLASS' dependencies but also removed a
      few 'default RTC_CLASS' statements, which actually changed default
      behavior.
      
      This resulted in the various RTC interfaces (sysfs, proc, dev) all being
      disabled by default, even when RTC_CLASS is enabled:
      
         # CONFIG_RTC_INTF_SYSFS is not set
         # CONFIG_RTC_INTF_PROC is not set
         # CONFIG_RTC_INTF_DEV is not set
      
      which is different from previous behavior (all of these where enabled.)
      
      To fix, add back the 'default RTC_CLASS' statments to each of the
      RTC_INTF_* options.
      
      I noticed this because some RTC tests started failing on my TI OMAP
      platforms because /dev/rtc0 was not present anymore, even though the
      driver was present and RTC_CLASS was enabled.
      Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
      Acked-by: default avatarVenu Byravarasu <vbyravarasu@nvidia.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      8dc08395
  21. 05 Oct, 2012 8 commits