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 B9E1A43DA59; Fri, 29 May 2026 20:00:51 +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=1780084854; cv=none; b=kPoJ3T90TqQN3iSZjug9nO1qqUtTi1Z0GHCq/ePtvoRVIBj76g0fjcPtL4Tn5bTICtI/fZIER00f5ErGbtPJg5I+QiRppLCYBys6/Petqtov9Mc2ajeLpl/AqGSWsJg33qnFCDNfmH26kCOHTfiPcqLtkw/DwqOxjVF7/YFzvFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780084854; c=relaxed/simple; bh=If9J1GmjwMtQvSz+pg01slinGqWkmlTrsmHY4xb16eY=; h=Date:Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=Hv0tzuSHGlKjsIm9/LHkz4gte1izi4psEfEYSo1FNg6ZIBtJAuu3WjbehX6PSvzCIrsPkKaWEUI5wEPt4LVuyQEv3e1azL1o/bB9atB/xU5h2fkAcTnWPurquKxmrRsQ/hSi319XAXuj/7KhuN+b85bxZ4L5HOWJC+8L/EeEF7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VTZlNGjn; 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="VTZlNGjn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9355A1F00893; Fri, 29 May 2026 20:00:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780084851; bh=AGLK7Fz7hIMtNoUOd7+F7HYWK+G9Ck5b7ho1TTE1Pao=; h=Date:From:To:Cc:Subject:References; b=VTZlNGjnLQP82nAQIT5UXLMUjmtNDd2A7v2a9GSV7+LB8qhmhymXij7snJ2ijv6kN KTdy1XkjypwTq9kPo4ilNBj0b5zfGwAjKVJbYIsB1qHmHdk4uuN2Dty88VnsmXoedW e8Pka5j0qjC6HZFEJyVtTG19XWy3aPFJOr3Jpn5ug5Bx9Uhx+2VC8ragZfOl9vqs/l kkhLWomfTnMG+xZ5Bh7kaIP63O48yvmn34yWvZy2EKV35ltrsbn25yhZGHoTp2a22N FxjdhvMc0q00uhHjTWm33owx9xRQWm83SJDDpcJOrEju0F3MBA2N2IYmGsCXQJO99q /SrY1IBYrgS9w== Date: Fri, 29 May 2026 22:00:48 +0200 Message-ID: <20260529195557.689836531@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 15/25] net/mlx5: 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/net/ethernet/mellanox/mlx5/core/lib/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c @@ -340,7 +340,7 @@ static int mlx5_ptp_getcrosststamp(struc goto unlock; } - ktime_get_snapshot(&history_begin); + ktime_get_snapshot_id(cts->clock_id, &history_begin); err = get_device_system_crosststamp(mlx5_mtctr_syncdevicetime, mdev, &history_begin, cts); @@ -366,7 +366,7 @@ static int mlx5_ptp_getcrosscycles(struc goto unlock; } - ktime_get_snapshot(&history_begin); + ktime_get_snapshot_id(cts->clock_id, &history_begin); err = get_device_system_crosststamp(mlx5_mtctr_syncdevicecyclestime, mdev, &history_begin, cts);