Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp822427pxu; Fri, 11 Dec 2020 15:35:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRgaNX838HBoUde8kWA05zWmsXUvUUUeaxedsi7U+TQRbxYr19obcZ7F4I26Zu5NPS/L6r X-Received: by 2002:a05:6402:1153:: with SMTP id g19mr14343291edw.312.1607729744757; Fri, 11 Dec 2020 15:35:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607729744; cv=none; d=google.com; s=arc-20160816; b=krycf2Amc7t4V69qGeMjpao02gfK6UZ64CwLsq9pTIG2k4inGUwEY/KIF9fW7Gqdx1 MJ5LMNs5+QkbzR0OT8IZNTX4JQNqu1Y0vAX1II9+f0ba49v12+9C829cZM0+tSJd2ztW wBJQ2Dusv1xRhffuH9S3pRiQrUu5FTBjCjxxqVz9PMaLdIhNyzp+0+lkQp3Z9FaSzvvj Rpw3EWIKZ1/LGBk17KKjVvz6mIsDCPeYTy9Un22uCTBVbt2W+ObzEI4X66uALhaCfAmb btwZ7jc7Z3z4cqZ4novuZ0Pzrp5hNtbzldY5QPNUvvPMrA7XeO3c5YAf9gDJXIacD7m4 ZRow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=MxfQM41I/JHdGAPtOE62NQwgsz+Gd67FL7vEU7noGAA=; b=vnT/K82tSOJFO3g6zagC9I96Km+H+BFXZtLAihef6u0crZvlG6yWFIUxGC2HNvdikN XSfbiKd1XfQk4WIpLsGh/Pn2oQEWcbZalGViNANWryB/iKIf0WvPdAfv7uyTczeVFNxX z3S4sNsd/J6eLchVUzAOllfDOcIfl9ie7HNj3CgJYaP/g6CoT5Qclt2+kGIQj/wFKyuU FGZ2mGnqobfT63JEzga77KnpDjm68BG7eE25In1seibBfi28F7CJROVCBzWYN39wG8Dr 71fMpSuP3ohJl0EslE+VmcD+J1uqMJfkdgnTX75+JL6M7phZc4lZhVVx1xQuKWPTlu1B KN5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=iltMrifl; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=QqiI+bsh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d8si5152166ejw.38.2020.12.11.15.35.22; Fri, 11 Dec 2020 15:35:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=iltMrifl; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=QqiI+bsh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394557AbgLKAZE (ORCPT + 99 others); Thu, 10 Dec 2020 19:25:04 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:59326 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394203AbgLKAYj (ORCPT ); Thu, 10 Dec 2020 19:24:39 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607646237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MxfQM41I/JHdGAPtOE62NQwgsz+Gd67FL7vEU7noGAA=; b=iltMriflmw6FTepVzYVvASUEAksTy7vG05SxeLUloFB0XzALVdnZr3jJl+AVxFKpCKwDrx qPCNy39LNXYnQ1gQs+uznySPwANnswB51Embe9SD+YD3acJmJZvZpI1b4CnDIwwvTD+EZ6 i2YDR+CNaPROvpGFazuEFwIQBBmdK9zjfrRIklaILPvQ4mv5xgaDqqR6l/UxHrHzfzY7cy Y74ivoriPtOkUITpFbXOpnjF8re1FSVQV8LvE1RT1wTaIM5BYCAPbBPYwaIYajIpzjFM/b 2EyFQ5BBT1NQTlouBsrRIjhAs2m0jr1/Et/l8azl7U3N3lzam6dlMrvHxITucg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607646237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=MxfQM41I/JHdGAPtOE62NQwgsz+Gd67FL7vEU7noGAA=; b=QqiI+bsh1hGvP6fDMEc8TrQ+8uZnQJdkK9bX6mjWgWCxtjRnAYMIK640bGWVlOx7QIcBem XiL7HqfqrutrB4Cg== To: Alexandre Belloni Cc: LKML , Jason Gunthorpe , Miroslav Lichvar , John Stultz , Prarit Bhargava , Alessandro Zummo , linux-rtc@vger.kernel.org, Peter Zijlstra Subject: Re: [patch 4/8] rtc: core: Make the sync offset default more realistic In-Reply-To: <20201210235908.GA1781038@piout.net> References: <20201206214613.444124194@linutronix.de> <20201206220541.960333166@linutronix.de> <20201210235908.GA1781038@piout.net> Date: Fri, 11 Dec 2020 01:23:57 +0100 Message-ID: <87czzhi40y.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alexandre, On Fri, Dec 11 2020 at 00:59, Alexandre Belloni wrote: > On 06/12/2020 22:46:17+0100, Thomas Gleixner wrote: >> /* Drivers can revise this default after allocating the device. */ >> - rtc->set_offset_nsec = NSEC_PER_SEC / 2; >> + rtc->set_offset_nsec = 10 * NSEC_PER_MSEC; > > I did retest, on a slow 100kHz i2c bus, with a fairly inconvenient RTC, > The maximum offset to set the RTC was 4845533ns so I'd say 10ms is too > large. Should we make that 5ms ? Sure. As I said I pulled the 10 out of thin air. > Apart from that, on the series, you can add my > Acked-by: Alexandre Belloni I'll amend the s/10/5/ throughout the series while queueing the whole pile in the timers/core branch unless you want it to be handled differently. Thanks, tglx