From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 A66F343DA2E; Fri, 29 May 2026 20:00:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780084856; cv=none; b=irEQDNr2OPetqN05xFqQUgt0Ug0JDg2LJOL0SauyWAGAQYca6/wDtmdnY1zYWklN+AOs1sc8B3567a6KFkHDnzx62aKT7lcRBQFoGaiYVOHDdO1iC7ftgNRuWt3Qfdd3ploSYbn/U58Fyd01T1ETn8Df6wIAf3uchK6ZOWqnbfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780084856; c=relaxed/simple; bh=jfnjk0DrjAfvGqJQtbk2xk50gds9efqlBLmxRtifTf0=; h=Date:Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=IjH/EYAcxDWOyVJKuthdhYCj1c+R+KhmrIwBrNWqXAN/rthUx2kmn1Yzju5xHoAW/RLiWjdILgD9LRJaxJliV3CVtGEaMyYvy4/TC0O/jq43TcHfsX5JUGF/ib9utFJr5qcem38XLvX78arL60HuGHs5VTwUKVkS7pkg6wFgcuY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jYsyJQ0X; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jYsyJQ0X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EBEB1F00893; Fri, 29 May 2026 20:00:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780084855; bh=4Dl2AVIauMqhvyfPh4Lxz1+YVPAwec+mGhNTlZwpJas=; h=Date:From:To:Cc:Subject:References; b=jYsyJQ0X3zcmMMvTpDZ4XN353dTHqIvBzb8N5oTCJVeIITP/stpRtWKlT9l8UPEtO WHeKC7dFhCm8eNg/rosugMW6Guze3ONqe6/6MKMiSJvEhclZs9GY1rughm1xaBqoAd BWfiC0V5g9be8EUpur/sHK5uSy1BXm+OFH6kkaUqxBRyW+BUExitWyDOmqaWIqBaUy gFYGtZ70XhtJh1cMZbdmARtKplhM32EjGnWq2Z4sesBWCp5DgxXlwDMZakn08a05aY QSO+ebcNBCpv2/wlHA/+uy5WmI4og4N4ckVe7jKktfIq2JpiyXRGdbScQtyfn3/FE7 mRm2oZdz0PZeg== Date: Fri, 29 May 2026 22:00:52 +0200 Message-ID: <20260529195557.744271454@kernel.org> User-Agent: quilt/0.69 From: Thomas Gleixner To: LKML Cc: David Woodhouse , Miroslav Lichvar , John Stultz , Stephen Boyd , Anna-Maria Behnsen , Frederic Weisbecker , thomas.weissschuh@linutronix.de, Arthur Kiyanovski , Rodolfo Giometti , Vincent Donnefort , Marc Zyngier , Oliver Upton , kvmarm@lists.linux.dev, Oliver Upton , Richard Cochran , netdev@vger.kernel.org, Takashi Iwai , Miri Korenblit , Johannes Berg , Jacob Keller , Tony Nguyen , Saeed Mahameed , Peter Hilber , "Michael S. Tsirkin" , virtualization@lists.linux.dev, linux-wireless@vger.kernel.org, linux-sound@vger.kernel.org, David Woodhouse , Vadim Fedorenko Subject: [patch V2 16/25] virtio_rtc: Use provided clock ID for history snapshot References: <20260529193435.921555544@kernel.org> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 From: Thomas Gleixner 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 --- drivers/virtio/virtio_rtc_ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/virtio/virtio_rtc_ptp.c +++ b/drivers/virtio/virtio_rtc_ptp.c @@ -139,7 +139,7 @@ static int viortc_ptp_getcrosststamp(str if (ret) return ret; - ktime_get_snapshot(&history_begin); + ktime_get_snapshot_id(xtstamp->clock_id, &history_begin); if (history_begin.cs_id != cs_id) return -EOPNOTSUPP;