From nobody Mon Jun 8 03:20:28 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 6F9973D5C0C; Tue, 2 Jun 2026 09:46:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780393566; cv=none; b=KhGF7o5IWd/z+wX3Lz97feJj2guMhyZPgW1ocCgMY/iukDKMB/2NnwUKI5jUTee4JW3Lox8/7/kiiJI3qYKTnSutzwmNI6AyMcCfodCWTAGQhK7neG4oR1s00KrcR2Uvl0m21nvgeuLhC+xvrOxYYmG7uChPy7xULFI7ZSMWxjc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780393566; c=relaxed/simple; bh=o36iMfQKy4ev2Z8CoXXEabS/k/rCVGl+c9aY4EUqEeA=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=lP/H7CthBtCoAJqJYMupxxXsN4mY1X8fUwWxYI1BeKLvNI9NbhkIO7LLaPaobMi+mAhKWpCWHLem5HbECLhiv43WhhOoxU7xIDcUplhaeWJ2tdwEe3asTpSHs/Op5P6sk6iguAub+JfnUp1tzhwNFFf0/q7B5RyNZtSLFzprcUs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=QRrJEOTP; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=/kIwmGUJ; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="QRrJEOTP"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="/kIwmGUJ" Date: Tue, 02 Jun 2026 09:45:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780393560; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HED9qKDtDIiQboPfo/lVbRvYhRUyzmNVN0h/pKBrJhg=; b=QRrJEOTPMcUlBTYOkLYecpvDqPgw4m1SUXKZ/jMjs56oFsbjso7+BZWpxRjZ+E/eB8NZ+7 JlzegNpMDGvyPgLUS4B2fzdEAIy6QbHkb/6Ht9Ri7dEuC3Ri07A+7W41GBxgj8CrQ7GUt9 MFCjgavds15fylguQOUeMzfCT4oW7aAU2Qxr+U6dKDtKpcA4I/ljG8pDg2RbpqiWdhzVgZ C9W4ovRwgfxthUKUzJij/Ym3qjBlCEkbVYvHVSfhtoIh6M0Beds/P9ZGIkjyRMFQ1S3hv2 tKwkU2Se0bGps8aiGAOlDSv2Wm4UqEvVudCHmwxtNnPbmZim6sJBmNZSGwdkOg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780393560; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HED9qKDtDIiQboPfo/lVbRvYhRUyzmNVN0h/pKBrJhg=; b=/kIwmGUJ49dRXZIY2HOonwbLdDDCsa0L/Ds7o1a64BkyqR8otsH60DZVOVOpiw0/FbT79u QcjRyHK9qJe8wNAw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/ptp] virtio_rtc: Use provided clock ID for history snapshot Cc: Thomas Gleixner , Arthur Kiyanovski , David Woodhouse , Jacob Keller , "Michael S. Tsirkin" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260529195557.744271454@kernel.org> References: <20260529195557.744271454@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178039355950.2140988.5431715086141743383.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/ptp branch of tip: Commit-ID: babe4b6d03be8fe7787490d7b93f593134abc51e Gitweb: https://git.kernel.org/tip/babe4b6d03be8fe7787490d7b93f59313= 4abc51e Author: Thomas Gleixner AuthorDate: Fri, 29 May 2026 22:00:52 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 02 Jun 2026 11:39:59 +02:00 virtio_rtc: Use provided clock ID for history snapshot The PTP core indicates in system_device_crosststamp::clock_id the clock ID for which the system time stamp should be taken. That allows to utilize hardware timestamps with e.g. AUX clocks. Use ktime_get_snapshot_id() and hand the provided clock ID in. No functional change. Signed-off-by: Thomas Gleixner Tested-by: Arthur Kiyanovski Reviewed-by: David Woodhouse Reviewed-by: Jacob Keller Acked-by: Michael S. Tsirkin Link: https://patch.msgid.link/20260529195557.744271454@kernel.org --- drivers/virtio/virtio_rtc_ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_rtc_ptp.c b/drivers/virtio/virtio_rtc_pt= p.c index f845999..ff8d834 100644 --- a/drivers/virtio/virtio_rtc_ptp.c +++ b/drivers/virtio/virtio_rtc_ptp.c @@ -139,7 +139,7 @@ static int viortc_ptp_getcrosststamp(struct ptp_clock_i= nfo *ptp, if (ret) return ret; =20 - ktime_get_snapshot(&history_begin); + ktime_get_snapshot_id(xtstamp->clock_id, &history_begin); if (history_begin.cs_id !=3D cs_id) return -EOPNOTSUPP; =20