Re: [RFC PATCH v3 0/7] Add virtio_rtc module and related changes
From: Peter Hilber <hidden>
Date: 2024-03-14 09:13:40
Also in:
linux-arm-kernel, linux-rtc, lkml, virtualization
From: Peter Hilber <hidden>
Date: 2024-03-14 09:13:40
Also in:
linux-arm-kernel, linux-rtc, lkml, virtualization
On 13.03.24 21:12, Andrew Lunn wrote:
quoted
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
The truncating to whole seconds is already done. As to the offset, I do not understand how this would help. I can read out my CMOS RTC in ~50 us. Thanks for the comment, Peter