Messages in this thread | | | Date | Wed, 13 Mar 2024 21:12:39 +0100 | From | Andrew Lunn <> | Subject | Re: [RFC PATCH v3 0/7] Add virtio_rtc module and related changes |
| |
> 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
| |