Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp460769lql; Mon, 11 Mar 2024 07:49:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1QWqSuM8Orb4Dz3nTWxf1b6NM1Omk5FnjPmDnR+OoA162dzULs8kRGIU5Xu28rpcHQAjHbtqE0VtoFZxE+lAkyWERe/dfpqVyDdS4cw== X-Google-Smtp-Source: AGHT+IEPoMg226k/7VlrHdOA0Mtzk0diiKclD7RHx00uqG0FiIFj5OopRmC2eju6HLSR4fSwD2rP X-Received: by 2002:a25:be52:0:b0:dcd:a9ad:7d67 with SMTP id d18-20020a25be52000000b00dcda9ad7d67mr3860069ybm.8.1710168549839; Mon, 11 Mar 2024 07:49:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710168549; cv=pass; d=google.com; s=arc-20160816; b=fSbq9TA69pOOZ64GhS1avbWoOoMiZGP53OJgD7cmkYe0JEOFUeKISJBn3SxV/FfCLe i96DA63OpcmHfVPAYRCfWgY56NSE6XbVNI3aKpo/TRIiHWuZLwOgB0aBMj97N+Y+aq+r q/cZ83X47xQkVZr5D5zBpc1IO3Euzvz9I9Vr11Apj7KMNvtjGMdOZmICZAmbKwY9xL0t TFsBvYM2yIv8yngv5vUW5SWTQXlnnLTPBQX3O1btQggIHeKzvlXe19hRFCoxjZ1my0KW KBBvDiFau/8wsPn8HYOv+LmvDAcCmHoBTiTaeNg7Q1ii+6zAOkdoJFzGh9Qt2Tddzjg2 ENVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=gHkB9NZrCsX2vkEuwpPMC3STTmQwvzFReSv12yY2sNs=; fh=ELtPOXqJ+ES/ESGbKJ6mSNel1CTjhxNlmUIdp4XRCic=; b=mB1yASeG9QXV39dl3EpJT+Xjn4gbvhorps6QguKL0M6aWwQobl9Z1hFc1+3brFh+DV RxCeuuKEXANTcVwo6rNjswLaXfE2aXVDkMjHYboieL8tEOPrH3D7jgRa6b++8zJh0SDC A/R5lGvEg0BEF4tX7PH7mtkzgPB5KPeLRtD+tfU6HWH7LHi7LnaJ8m9XOASf5ACKNd5N D3FCNGwatClK8l3Al4FYBTYQ4OPqNXp5xg7vlMe1MU/CEVXAzaTw8tZ2Qwlo8zh2DbyG 5RyRekSJZmmBFmQSFPe5wE7mROUKyQESSxNlkV1vh6xpm+K17b17FBMw4ZjY2MFpA7is 76oA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=nSwfDdDt; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-98991-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id xz22-20020a05620a5e1600b00786fe4117fcsi5227566qkn.388.2024.03.11.07.49.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 07:49:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98991-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=nSwfDdDt; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-98991-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8A0FD1C20CD1 for ; Mon, 11 Mar 2024 14:49:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33A7E42075; Mon, 11 Mar 2024 14:48:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="nSwfDdDt" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 47FA841C7C; Mon, 11 Mar 2024 14:48:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710168520; cv=none; b=GBHDoFAVzJbYRFknh0nEBxYX5oMrexfD2S+msRhdGqacmmQZ13zTpWYU1ivC4pUnF560s+vQYPW53cZyBLg5FgqO3B2AIyP0dR7XgsiS8r9Ax6X64b8IwBY6m1VYBUIyeoZksNCee3/h3dfAfgigB03LGV16j15c2gQ0kqYVZbc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710168520; c=relaxed/simple; bh=523jfBI1xIENsUirvelfVlDKtMZSRfA3IrXt++11hTQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RqzpGIUWypoYjDRHo38sU9G5qNBVH/Hk44UeJJxn9NIIv1F8vESLE5XJ1xxdYNG4mTbcHRDVJKHJM7cIkI52TMXdyoh6m0fmi+gvwnF1+OIldMuqIaB2AZnYQiXQbsE22OCqm7BbM/AKJlecbtEPtE9/WDk0aacPcBtmBkNyY2Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=nSwfDdDt; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 2607820010; Mon, 11 Mar 2024 14:48:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1710168516; h=from:from: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=gHkB9NZrCsX2vkEuwpPMC3STTmQwvzFReSv12yY2sNs=; b=nSwfDdDtzQzgjXbzdlv/a/rtvXf8qlWVrJyV9HKKfLfvwmRbw6cZkQv70TcZYmtvmVCp0g nyOYbro5RCPsCnu1Te4uvlA6hUQremIqJGoHI82Ny4zCytYbQi9HRqrQB6Tuia6DL9Aqey ZGTU2WBEF9JiEF+qRHcjpgHB1v/KG0bBbiWAO3Ib9fyNlHOxLkynTR4vsIEuRy3AO9QnZi KwJIWD+uW+FebkVzPF/IdM8KRsdviA5DQAE6wEG/g5MUtiTD4LxvcYCXgKlk8lnvTEQPWm v0uB5otsre3ZnKXNGz8EtH+1A9CMqCdXnThb9VBqISRwtqNuQgFvBWyU4Sk4uQ== Date: Mon, 11 Mar 2024 15:48:35 +0100 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Przemek Kitszel Cc: Jakub Kicinski , Simon Horman , , , , Richard Cochran Subject: Re: [PATCH v3 net-next] ptp: Move from simple ida to xarray Message-ID: <20240311154835.23679b89@kmaincent-XPS-13-7390> In-Reply-To: <43b0b4ad-69ac-450f-8b39-ae264355622e@intel.com> References: <20240311135949.1180157-1-kory.maincent@bootlin.com> <43b0b4ad-69ac-450f-8b39-ae264355622e@intel.com> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Mon, 11 Mar 2024 15:17:15 +0100 Przemek Kitszel wrote: > On 3/11/24 14:59, Kory Maincent wrote: > > Move from simple ida to xarray for storing and loading the ptp_clock > > pointer. This prepares support for future hardware timestamp selection = by > > being able to link the ptp clock index to its pointer. > >=20 > > Signed-off-by: Kory Maincent > > --- > >=20 > > Change in v2: > > - Update an err value missing. > >=20 > > Change in v3: > > - Refactor err management. > > --- > > drivers/ptp/ptp_clock.c | 28 ++++++++++++++++------------ > > 1 file changed, 16 insertions(+), 12 deletions(-) > > =20 >=20 > sorry for not commenting more on v2 :/ No worry, thanks for your review!! Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com