Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1963250lql; Wed, 13 Mar 2024 13:12:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjrWNlP+BUbuYqX6mi9O6chR6ln/YS1Sn7V/NHYjDlxqvTtAFOyi5TqezvuiZQKDYWeI1ltYlWBrMLIvGOAm/YMDIf/UwvvzEr+eFl9A== X-Google-Smtp-Source: AGHT+IF9o17ZPVQ2ajAQgiZbnrqf/7wc1lBSDDqdj4nj3F1PcHhsMEw0c8yWQW36CJUc7H+gG0ro X-Received: by 2002:a17:90a:db8c:b0:29b:b1cd:4ea5 with SMTP id h12-20020a17090adb8c00b0029bb1cd4ea5mr4506887pjv.11.1710360740968; Wed, 13 Mar 2024 13:12:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710360740; cv=pass; d=google.com; s=arc-20160816; b=XkoEpVu50k0MdMpHGTPvEuynfPlnB5DmnoY2vk2we51UMBARgo9mZidw1uTo1371b3 ru01s+9peN1tpt8+KC6PlthfJjSgGv2iYhUiN2Zg751F3F+ytWJh54GfYCg2WFxArnyA pkkeHwS3Sx2AxKQmwBMpzt6rcBiZdrJ8XzUoWtxrTSMgWt2n5tsSnvhsnwLFz2VN47SL 3OD4g2lcji2fB9k4AYnXcW10NG3ZlO9rPxuWNZd6bzoQafzhabMFuyfJ3wjBcnxwu1WY SCwSNiAm+p7TD22whVR1wMh0Y49VnDzOSS6zkvEsPkTXquvHn2ocQyoEoTFWNQRW7ZvL HcWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Xp82gEIbZeLnmlswzlNrQpFNfajF/0oeJJd0n1Kue3M=; fh=+7WGs03nHF9dTD1hgnEhhRVdGFg6hxUVtCiY4x4WjuQ=; b=F9F4QGLlPoNq+FWYd04nax6FQ9Y338LgTEVbZJe/+EHMZUy2oWR+4+PawkXCC4jzJT FGnXuUgDtfkU//csGNVwjK5jMSYXPpbyNJN7PwsX0rZjChES2lfCEg4SCLjA42cCKF/i BM7m2rcHqGksXGIYBIalezPJBF9wLrw298db0CCY/l7kbQ0jNxg3jbE9RfyhGzvkOloF pJgFy7jTGDmlaSeLReySHd5De8VSPl4A5eSBbUqK0vVqOIDvCtO9Q7nuITCrdbEbiAC0 kLGYIrw0h1XsvSpmJo0Gw8eMi2TTrYF9joUJqQh9ZhBeTVnpvegRuNXNfC6EyK0esIST kaew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="uyO/mUu3"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-102476-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102476-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g2-20020a17090a9b8200b0029baf846891si1960883pjp.174.2024.03.13.13.12.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 13:12:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102476-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="uyO/mUu3"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-102476-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102476-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8EB5328C51C for ; Wed, 13 Mar 2024 20:12:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 644EE4D9FB; Wed, 13 Mar 2024 20:12:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="uyO/mUu3" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F03E225AF; Wed, 13 Mar 2024 20:12:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710360731; cv=none; b=knbnzCY8VMT1+6hbzRejxNX5dc28qz+FsOg7CLeTXdPP9QSWY/jh4B8hmhED1rUq39c2g0ZPhScNxNqPfs9++cBgxazdcWYaJGOl4yCSLuNx3xWPDC2tCOlZTkWyMMKHdGDXoxjEEiNmrTzHYk8cJmPUfVJtKXP6KnmMV3ZcIvQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710360731; c=relaxed/simple; bh=vxiSIG1jZQwlWtR6AV5q/3NgPvGpxmDe0qfJ03T7J/I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ugvHWAn7wYkK6pouxzkfDHXmb464PSxAVf8JEetUepNvw/PAZcoiD9fxDh9LooOnRkQUueyg0MbBmVzE7bvd9f059qzt90AoYDWvSiNuM0GTxFOH1o4LxpiYQeILcKHg/lRFfix6G+roN9lNF/b9TgnVHNdg+GDrLuDeKcPdhIc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=uyO/mUu3; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=Xp82gEIbZeLnmlswzlNrQpFNfajF/0oeJJd0n1Kue3M=; b=uyO/mUu37qErfYKSWEqKd3wmSq R92vQ0Yv/x3wGFeS61sdERP3c8R58AiQJcDKZWMDD2tYjU7aAfpuSODq8UsXekoI0N+bYq8lpWfoj 5mZtGQ4mTrXRiz83cgieU7Sw/vfr469Fi6WdYPCEebdmgUvvXdQsJhMbOrBqKgYnW6CI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rkUxr-00AGOu-Ik; Wed, 13 Mar 2024 21:12:39 +0100 Date: Wed, 13 Mar 2024 21:12:39 +0100 From: Andrew Lunn To: Alexandre Belloni Cc: David Woodhouse , Peter Hilber , linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, virtio-dev@lists.oasis-open.org, linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, "virtio-comment@lists.oasis-open.org" , "Christopher S. Hall" , Jason Wang , John Stultz , "Michael S. Tsirkin" , netdev@vger.kernel.org, Richard Cochran , Stephen Boyd , Thomas Gleixner , Xuan Zhuo , Marc Zyngier , Mark Rutland , Daniel Lezcano , Alessandro Zummo , "Ridoux, Julien" Subject: Re: [RFC PATCH v3 0/7] Add virtio_rtc module and related changes Message-ID: <04246331-e890-4c9a-95fb-9673580e6d30@lunn.ch> References: <204c6339-e80d-4a98-8d07-a11eeb729497@opensynergy.com> <667c8d944ce9ea5c570b82b1858a70cc67b2f3e4.camel@infradead.org> <57704b2658e643fce30468dffd8c1477607f59fb.camel@infradead.org> <202403131118010e7ed5bf@mail.local> <20240313125813ec78d5a9@mail.local> <96be7312f7bddaf06c690e082a8028fa8b511deb.camel@infradead.org> <202403131450547f373268@mail.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202403131450547f373268@mail.local> > As long as it doesn't behave differently from the other RTC, I'm fine > with this. This is important because I don't want to carry any special > infrastructure for this driver or to have to special case this driver > later on because it is incompatible with some evolution of the > subsystem. Maybe deliberately throw away all the sub-second accuracy when accessing the time via the RTC API? That helps to make it look like an RTC. And when doing the rounding, add a constant offset of 10ms to emulate the virtual i2c bus it is hanging off, like most RTCs? Andrew