On Sun, Oct 18, 2026 at 03:06:49AM +0800, Kuan-Wei Chiu wrote:
> On Sun, Oct 18, 2026 at 02:46:18AM +0800, Hung-Chun Tseng wrote:
> > Linux registers an RTC class device only for such a clock and skips
> > VIRTIO_RTC_CLOCK_UTC and VIRTIO_RTC_CLOCK_UTC_MAYBE_SMEARED, which may
> > step on leap seconds. QEMU, however, exposes a single clock of type
> > VIRTIO_RTC_CLOCK_UTC, so following Linux strictly would leave U-Boot
>
> This could confuse people who are looking at the current upstream qemu
> code, since my patch [1] has already been merged into the qemu main
> branch.
>
> [1]: 
> https://lore.kernel.org/qemu-devel/[email protected]/

Thanks, I missed that your patch is already in QEMU master, and it
matches the UTC plus smeared UTC case you pointed out on v2. v11.1.2,
which I tested with, still reports VIRTIO_RTC_CLOCK_UTC, so I'd like to
keep the fallback for released versions, but I'll reword the commit
message to say that newer QEMU reports a smeared clock and the driver
picks it directly.

Reply via email to