From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.free-electrons.com (down.free-electrons.com. [37.187.137.238]) by gmr-mx.google.com with ESMTP id h1si104768wiw.1.2015.06.11.12.08.02 for ; Thu, 11 Jun 2015 12:08:02 -0700 (PDT) Date: Thu, 11 Jun 2015 21:08:01 +0200 From: Alexandre Belloni To: Xunlei Pang Cc: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com, Alessandro Zummo , John Stultz , Arnd Bergmann , Xunlei Pang , Paul Bolle Subject: [rtc-linux] Re: [PATCH v2 1/4] NTP: rtc: Add CONFIG_RTC_SYSTOHC_DEVICE for NTP synchronization Message-ID: <20150611190801.GO5222@piout.net> References: <1433236477-1724-1-git-send-email-xlpang@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 In-Reply-To: <1433236477-1724-1-git-send-email-xlpang@126.com> Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Hi, On 02/06/2015 at 17:14:34 +0800, Xunlei Pang wrote : > +config RTC_SYSTOHC > + bool "Set the RTC time based on NTP synchronization" > + default y > + help > + If you say yes here, the system time (wall clock) will be stored > + in the RTC specified by RTC_HCTOSYS_DEVICE approximately every 11 > + minutes if userspace reports synchronized NTP status. > + > +config RTC_SYSTOHC_DEVICE > + string "RTC used to synchronize NTP adjustment" > + depends on RTC_SYSTOHC > + default "rtc0" To make that working nicely with current configurations, I would use: default RTC_HCTOSYS_DEVICE -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755077AbbFKTIG (ORCPT ); Thu, 11 Jun 2015 15:08:06 -0400 Received: from down.free-electrons.com ([37.187.137.238]:33533 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751133AbbFKTID (ORCPT ); Thu, 11 Jun 2015 15:08:03 -0400 Date: Thu, 11 Jun 2015 21:08:01 +0200 From: Alexandre Belloni To: Xunlei Pang Cc: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com, Alessandro Zummo , John Stultz , Arnd Bergmann , Xunlei Pang , Paul Bolle Subject: Re: [PATCH v2 1/4] NTP: rtc: Add CONFIG_RTC_SYSTOHC_DEVICE for NTP synchronization Message-ID: <20150611190801.GO5222@piout.net> References: <1433236477-1724-1-git-send-email-xlpang@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433236477-1724-1-git-send-email-xlpang@126.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 02/06/2015 at 17:14:34 +0800, Xunlei Pang wrote : > +config RTC_SYSTOHC > + bool "Set the RTC time based on NTP synchronization" > + default y > + help > + If you say yes here, the system time (wall clock) will be stored > + in the RTC specified by RTC_HCTOSYS_DEVICE approximately every 11 > + minutes if userspace reports synchronized NTP status. > + > +config RTC_SYSTOHC_DEVICE > + string "RTC used to synchronize NTP adjustment" > + depends on RTC_SYSTOHC > + default "rtc0" To make that working nicely with current configurations, I would use: default RTC_HCTOSYS_DEVICE -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com