From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 207D9471265 for ; Mon, 17 Aug 2026 21:02:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787000563; cv=none; b=mq9KTloojCVsIGQ7bG3TTb+iyrUAJMnTvnbl0jsngqd4wWDGmUel6iTHiWOma9DRA//8QnxHc/i4l/1VTWjuWpmRTQ4Yef2QjveXx9NPJwCKmCnWMZySS0Vn8mExML+t4FGEr1yWOmQqQ/KoPoHjuCvNU40pIhHA3uv7yBOALpk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787000563; c=relaxed/simple; bh=OBF4nRNWRkXeGvYZgQo5/rE99ZlB0dZCjPG6K+A5+9o=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RPyJdJv7yCIDhpvWHVJojVR/uOcuCB5tkkrrh2gQv97BQMzOYC4g+Gxt4yNZpES7q7fcbtG84LMq05OMSHvlJ8T3bLuYUUEUWQkCyDCHXLvI7j0knUesY2g5Qyfvp4W3lv5d/inN0Mwi5aJtKRPCG5+z11VETxmHz9UMbURjRwI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dUGc8WLw; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dUGc8WLw" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4980dc26022so39363145e9.1 for ; Mon, 17 Aug 2026 14:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787000560; x=1787605360; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:subject:cc:to:from:date:message-id:from:to:cc:subject :date:message-id:reply-to:content-type; bh=YsdJSQ5fYAT9wBvdQXX0+jSKWG1ZCV+4ju+rZFixoe4=; b=dUGc8WLwtjvazkOoF1yo+1IiQ01uJQWBdJne6fmCMi6VB6JzO1nUjqaSYPhqUdLsTt 798JAwuKNy6Vjaj4fDWKIJDeNfkYLGsltIbRic1Hv1tvQzyqHZktNzb5mAL9KUetTjdM GyKNX0dgJGHvBAAu6lSo6ngDxW5SgC7EXLwRoppX9la+1ObVvCoqxJxKYta6d02JpA43 BBUf5z85reOAB2CcIMTx7BkkIILFQ3emovVLokjp+YT8irdGNj2Trm3zGL0Q283HmdDR IVwtr/OCmL9LLWk69AtQ6EEqWUqpRUUfH7WkyXwy0hfQE3p9UzppQeEUqy6K8jX9zVqK 9qMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787000560; x=1787605360; h=in-reply-to:content-disposition:content-type:mime-version :references:subject:cc:to:from:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=YsdJSQ5fYAT9wBvdQXX0+jSKWG1ZCV+4ju+rZFixoe4=; b=Hl3Uny7uepi3FkNlFuFncnAjdUa9igWt6A00G1J42FRclX+d4sKTTZhaY4KIbK5vGv MMGVmKZDcTejglI76jysm6F/6A9+4NbM/pviislVcXbPgd1Q3bi+ygZU9g+XztHl3+LZ cXb+Li3zXrzy6hJPSBD/VwRHf1wtylvdaENrUCS41F45db5UU/XnsakliASxsxoJCP0a ez0RufBLYfjQc56HP9rYIJ6AJh+NbChqF4nqYpoMMB6LaUGe3aiNt+sZqrKWuy5KqBtT N4QTv1pmt7MTyrqPC1Xz5sbykCUCuF2pOtvEg8v7Zbs/mecqEUJ/CowIEuvM4vFOo5Wo f2dA== X-Forwarded-Encrypted: i=1; AHgh+Rpx8nGM7gpMMUbjI+vwNTRfeXGsJRiZl1YbVxoId/Q3j9Kb8fisFQ3KpSIwuUCXwjdVqUjczDB2yVlJMSw=@vger.kernel.org X-Gm-Message-State: AOJu0YycclZKCP40dM2GOVwot3lb3WbcaAZKA0/XI6O6i05qpd2a0S9c LwuETVFwoVebJyozupKqQUY8d8RYMOD6S1KpPdL0toEX87cHr6al0uy2 X-Gm-Gg: AR+sD10iFE5jRXwLTJR+3yOD2m4z544LVn/iBkqi9Mq5Uh3wIBtonIWxvTK1E8a9rOS ZKHxSYZqA20J/sCx3kqE4rLlKCkMMOWpLBVI4QdxaLZbU45o3pwRpzjsvZrG93zmS/Jc56Vt7KV mGGLv2nJXbJoHbgdqs0nBADRZtGcwXqtscUufo1LmJ0TbYW6NZ0t/Y/Jyi/la4dI31W/niqt3KQ KOyYXeA4156MZ5MlqUTgkOdHY1yFxBYIriDZkhFGBPzhl6gV6EX5H55rhnBIc7ci2hEEkUxKsIz 5Luy9PNd01mMJ58z1+Og8NPvmSypElocQupusGPvELeikKkSVZW/VhSOcrAdeFP24ybbFjNz2PJ 3Zw9Ceck4LszKKJtzSv1+RCDcitKOkCfChpZ73a4A6BKZ4K/sSR6D+TU1/FWa7uwEWDJO895bht oM8cm4e5vcMnaWwr0/Bev0X+iREISctkVU2Eek0b0nU5qxBSvIhZ4DtgYdnZFR2VgSbSTSUKD// PFD/5Qj+S7kL71H6pfD/3jKJpgEpKM= X-Received: by 2002:a05:600c:8209:b0:490:e5c1:b8bf with SMTP id 5b1f17b1804b1-4998796f497mr470360865e9.13.1787000560141; Mon, 17 Aug 2026 14:02:40 -0700 (PDT) Received: from Ansuel-XPS. (host-87-21-27-15.retail.telecomitalia.it. [87.21.27.15]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-482a5b81748sm7050409f8f.37.2026.08.17.14.02.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2026 14:02:39 -0700 (PDT) Message-ID: <6a8376ef.be1895d6.92f57.c9dd@mx.google.com> X-Google-Original-Message-ID: Date: Mon, 17 Aug 2026 23:02:36 +0200 From: Christian Marangi To: Jakub Kicinski Cc: Maxime Chevallier , Andrew Lunn , "David S. Miller" , Eric Dumazet , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Simon Horman , Jonathan Corbet , Shuah Khan , Lorenzo Bianconi , Heiner Kallweit , Russell King , Philipp Zabel , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, llvm@lists.linux.dev Subject: Re: [PATCH v14 00/12] net: pcs: Introduce support for fwnode PCS References: <20260813083536.970196-1-ansuelsmth@gmail.com> <20260817134727.1f76d6dd@kernel.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <20260817134727.1f76d6dd@kernel.org> On Mon, Aug 17, 2026 at 01:47:27PM -0700, Jakub Kicinski wrote: > On Thu, 13 Aug 2026 10:35:05 +0200 Christian Marangi wrote: > > This series introduce a most awaited feature that is correctly > > provide PCS with fwnode without having to use specific export symbol > > and additional handling of PCS in phylink. > > > > At times there were 2 different implementation (this and the one > > from Sean) but Sean agreed that this can be picked and used in favor > > of his implementation as long as his case with race condition is > > correctly handled. > > Coccicheck says: > > drivers/net/phy/phylink.c:1039:31-34: > ERROR: invalid reference to the index variable of the iterator on line 1028 > > drivers/net/phy/phylink.c:1364:26-29: > ERROR: invalid reference to the index variable of the iterator on line 1346 > > drivers/net/phy/phylink.c:582:7-10: > ERROR: invalid reference to the index variable of the iterator on line 569 > > I vaguely recall that you're supposed to make a copy of the pointer, > not just add a "found" boolean. Dunno if it ever happened but Linus > was trying to make the list iterators override the pointer on exit. Oh! I wasn't aware of this intention... I have seen lots of pattern where the last value of the iterator was directly used (if detected valid) It's and easy fix... I can send a new revision right away if you want, I'm already on it fixing this in the meantime. -- Ansuel