From nobody Mon Jun 8 03:20:29 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 4757C3F7879; Thu, 4 Jun 2026 09:07:41 +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=1780564062; cv=none; b=adagEf19Rg9rVvy06KOJPPv/yoim/8lL4dkYJqZw4iL5GUHlJJ/RpG415VsSB1IUU3FQ2XOyKmbQpkIDb/fYgcx3WOhlGyx7Ek+F5WqCJZKII3bqWg4UtCKUG327+zh4+Pzw+ZJxp+3j7FWGg9B3jhzk6NU6VycyAKBjchX5TKg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780564062; c=relaxed/simple; bh=kz7dSwct/qDci8JWBHwzQAq1eObLMqiSDg7oD1o7Muc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=bFJGnTEjsQvSUUXRXSkn0u+W1lAA6tNDCk6fz5GU+QbEvpegw9rthPEeC/F1qDfRXIIEzEFTP2DtDxUZkI+SJ+h6G6TYcPgsaGLuG0aN7vlq2yU3EK2Al4O8oHdFOSiCF9BWYwa4E4qmlxqwCuHqbKZLublYUp9YQha/N42IEd8= 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=PNBn5MhS; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=E0Pdustn; 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="PNBn5MhS"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="E0Pdustn" Date: Thu, 04 Jun 2026 09:07:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780564059; 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=e/YQ3St6BTUh4xpQwV30VGVrjXfA6X2UVvBZpixHWpA=; b=PNBn5MhSyS8y4bQ3zOYO0hq8sUL/GQ0Bt0AjCY33eKzuPPLAFyfdXEIy/FTn4is4IX/vlZ UoVEMktEAPWDkopoB4F+JI+t8WAHsFx8Zg4n+lVebWMAQgJkzLFtIV6aVF08mhxf3bsjcV exvp8IFK0M7y8R2AF4dSoYhaVdZmbbh7YUCB2ctr40XP8hUGcUouyWSWC+QskJddKafJmP LrU6F4gX079C/Y3skNXtjcJNTvZGSpiuEv7PWZ0zLs7ZLipAoZ4k6tLGpNq180qp08X28i LXX6Co5JxyLSPPIv0/1J4fSClfmVk32ZXu1VO0f3nxTZt8Dn5I5ywgLqzdWWTw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780564059; 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=e/YQ3St6BTUh4xpQwV30VGVrjXfA6X2UVvBZpixHWpA=; b=E0PdustnM5K7/McYoV92Qo/4rsf2LqRc7RFsImFLydozrUUF96OjdDOE00VLbiSehtNcVi BIpYydQUM3lhVSDQ== 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: <178056405844.710.10790209330923800341.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: 9aebde8af6fe247d92816c197badf7e236c8f037 Gitweb: https://git.kernel.org/tip/9aebde8af6fe247d92816c197badf7e23= 6c8f037 Author: Thomas Gleixner AuthorDate: Fri, 29 May 2026 22:01:21 +02:00 Committer: Thomas Gleixner CommitterDate: Thu, 04 Jun 2026 11:04:18 +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;