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