From nobody Mon Jun 8 03:20:53 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 81ABC3D412B; Tue, 2 Jun 2026 09:45:53 +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=1780393557; cv=none; b=HaAicn3R+KJEr82n7AbUQ21SUB9tT9ZG70bknm62avWZMnnEr38kUmAW6MZNjBhAbT4zPAKOOv2PKai8aHom/NI3SMA6zoePpFh3Ma0iFRuis4Il6pl/36moPn7JsZDvvjGX3d1v4KTN0Phd/kovuYIuY+RicWzxzIVbBlJ/Hng= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780393557; c=relaxed/simple; bh=t+Vf3KX5PCkgpPAxC1YoWz6D71pXorgMDMRj81AtAyU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=aCO/Oz5OHY58x1jg+ga8ma/kJW2tgCWIXBJq+2oNRsxO1ad+K2nGirm/F2FCVAF7ZF0ShGPJ0yv4Pr/CNMmfeU6i1w1zjDCFV3krYZolV8iZJhbU3xqc5GqTrk43QMNfo9zSd11BEjSyrplBTPQJ3UVFg8sUu5asqR0ArmHvcRY= 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=3CmUQc1d; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=lk3YsrR8; 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="3CmUQc1d"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="lk3YsrR8" Date: Tue, 02 Jun 2026 09:45:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780393551; 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=8DLSeC7D9Hl0YFZjKeBv5Lc51gX2cQaWhhPBPZRSA6M=; b=3CmUQc1d6XPVwonEzkEW8CNb/mIT0zvvo+4v8zYtXA8RONaPaDN461SUaFil8k3/eln+xx Nvu0s9M6nrnVAMLmrk6OPZSyM79c6T1jaG5ipXZKPdp6lQTodeOG3K5kvgXruQNzRKTqmT DyQZuj5yC/3otrGm++LuSs1/N49Dd5Bw+E7xg4hY/0f4EqoGCGuL3iRnIlOFQfvyNwDSYx s/su9qzcX6qFnBqiwpYZSz4Vtz5geQN21zm++ysJ8tyr3l7Ld/YjBeCQFFcsiE5qYIbCdw +ky15EEu/VcnmNRkBhZ2G0hBqWfmIMJ138oj3vkiz/w/S0toCNVjYMKp+CJtsw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780393551; 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=8DLSeC7D9Hl0YFZjKeBv5Lc51gX2cQaWhhPBPZRSA6M=; b=lk3YsrR8h2O2oolF6/dytl7NFG/OQjlG/SZVs38LxrcARxedE7WzEhZ4LBswT9xC5gPvLo iUYqD5ot5cyOgeCg== 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] timekeeping: Add support for AUX clock cross timestamping Cc: Thomas Gleixner , Arthur Kiyanovski , David Woodhouse , thomas.weissschuh@linutronix.de, Jacob Keller , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260529195558.097464513@kernel.org> References: <20260529195558.097464513@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178039355023.2140988.6162124485380183223.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: 7a58ec6a456cad02345cfbd949d8da6d5eaedd1d Gitweb: https://git.kernel.org/tip/7a58ec6a456cad02345cfbd949d8da6d5= eaedd1d Author: Thomas Gleixner AuthorDate: Fri, 29 May 2026 22:01:21 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 02 Jun 2026 11:40:00 +02:00 timekeeping: Add support for AUX clock cross timestamping Now that all prerequisites are in place add the final support for AUX clocks in get_device_system_crosststamp(), which enables the PTP layer to support hardware cross timestamps with a new IOTCL. Signed-off-by: Thomas Gleixner Tested-by: Arthur Kiyanovski Reviewed-by: David Woodhouse Reviewed-by: Thomas Wei=C3=9Fschuh Reviewed-by: Jacob Keller Link: https://patch.msgid.link/20260529195558.097464513@kernel.org --- kernel/time/timekeeping.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index dae61c9..65d870c 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -1517,6 +1517,12 @@ int get_device_system_crosststamp(int (*get_time_fn) tkd =3D &tk_core; offs =3D &tk_core.timekeeper.offs_real; break; + case CLOCK_AUX ... CLOCK_AUX_LAST: + tkd =3D aux_get_tk_data(xtstamp->clock_id); + if (!tkd) + return -ENODEV; + offs =3D &tkd->timekeeper.offs_aux; + break; default: WARN_ON_ONCE(1); return -ENODEV;