Article View: linux.kernel.netdev
Article #14558Re: [PATCH net-next 1/2] rust: net: phy: make Device generic over a lock context
From: Andrew Lunn
Date: Wed, 11 Nov 2026 13:44
Date: Wed, 11 Nov 2026 13:44
19 lines
9772 bytes
9772 bytes
On Wed, Nov 11, 2026 at 10:02:04PM +0900, ํ์น์ข
wrote:
> Sashiko's review of this patch was sent off-list [1], so I am replying
> here.
The netdev's own LLM reviews are better than Sashiko, so we tend to
ignore Sashiko. The netdev one also does Cc: netdev.
>
> > Can calling genphy_soft_reset() on a Device<MaybeLocked> cause a data race
> > on struct phy_device fields and bitfields when a Device<Locked> callback
> > runs concurrently?
>
> The race comes from the caller, not from this series.
You might find the netdev LLM reports this as an existing issue. Lets
wait and see.
Andrew
Technical Details
Message-ID:
<6cec94de-b65a-443b-88ba-97a6489664e9@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer04.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361086-linux-kernel-netdev=dewy.ruReferences:
<20261110-exp-phy-rs-maybelocked-v1-0-3023cc9055e9@gmail.com> <20261110-exp-phy-rs-maybelocked-v1-1-3023cc9055e9@gmail.com> <CAGAB664Z1avii3rw6pSu4wT9eCmwYJ4R08ix2Z_YNm9KeEs-EQ@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer04.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361086-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 1/2] rust: net: phy: make Device generic over a lock context Date: Wed, 11 Nov 2026 14:44:54 +0100 Organization: Usenet Network Message-ID: <6cec94de-b65a-443b-88ba-97a6489664e9@lunn.ch> References: <20261110-exp-phy-rs-maybelocked-v1-0-3023cc9055e9@gmail.com> <20261110-exp-phy-rs-maybelocked-v1-1-3023cc9055e9@gmail.com> <CAGAB664Z1avii3rw6pSu4wT9eCmwYJ4R08ix2Z_YNm9KeEs-EQ@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="864815"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:QcYn3NQ0MDUK18U3vN0wX4QXnBk= sha256:q0ezj5gMyqPdiMYoPu5X/moKdzKLscdR1uLbn6ZutXc= sha1:zqcNJ10JmG+zjEGy1RwyeWy/+2k= sha256:csoWdJTZ+/TRijjyi5U2P3iZPLzgxxOfrPoB7ksQJPI= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 18372113F00; Wed, 11 Nov 2026 16:54:32 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S7BL6Az42zeH; Wed, 11 Nov 2026 16:54:27 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-361086-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 16349113EED; Wed, 11 Nov 2026 16:54:18 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 29C0A1665AE; Wed, 11 Nov 2026 13:45:20 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794404717; b=uQV5my2MvnkHi3yw9PNEcX+kH+AkacyqVnjycl3UkyY7ga4mXbLaD/UEe8R2QA161cse Li48dl0uAti9vJrRSWYdZNBAMB7dHf37CMvz9U3l7uwLNhlYo7A/8jtOoeMKKcoOZFNkb GBwmWMdhUZmkfhi8JKiBZzaXZ87Fb1v4iqWZlYPLLS7ANnnA4kQI4DLHh5QKXlo4YDrD6 QkfS2T6OMyTQnc3K2Z65NWvMoe2TyeIG0L0oYoE0ncBGy+EnhHyjU6zmrgNOKAGFu545e 4FeaN85Qte4F0eceaqgpiYCepSCZQSTaZKFCQ4S/ekZzJ3wn+5u2/rY8Ic33RshwHYg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794404717; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=JqaDTrKtx8/Db8fINpAFpkl/BzAhzi7fu660X6wjeKA=; b=lwr0pypZ73W/xOXh2lnsDMFNxqP57xk+M6VoUb0uLhyRI42oxqL4IoxqG0sLnhfrFmr4 QVpLGmbzEU+RiYDiMVZ0xGR1/yCwcNSARWU0NuSLEovjF9gT4d7kn+bfHqP96NpsVgq8Z veNNrRNon9I3rygBdcJQd+0ZUfxSCAXIco5vK7mMEkGpsbMW0x54K2R92TUxhb5ZcpJ2K BzQFGaDHnvHtmcmNfgz4hFq2I0nI1TEkJEL4D0C1dvWNy1d805wlYecRXeuho2uVQpmaq nwZmQXvH4rO7mKWhuuIba34uPM/WEh52hnmUV5gGF8qBFpba/mbJ0hac87f7gjgRUMA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=wcsaHS3m; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54728606A332; Wed, 11 Nov 2026 13:45:17 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=wcsaHS3m X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794404716; b=GN2/sEqm6Sj9Hn8TXT3+ztqSbBlf5Lh5TIuSbm3BeVIIjw23zVNDGP8Nv2OExS/wHRZZ ZKVIS+xbqDguT+EV/kfEIux90YLZ7RkqE25NlhU5FH2GEHO4O3QJy7HuUY61wUB2xlez6 8SBGWQHvimEY+WTulWbjRhztHNAqroEOXsUuK+RIA5dh5d2NEjP/CjFZyxIRIXXy86Tr1 iYXVEZdap9/wK6fSfxXbsi/GNl8dcb5K6dq6YIz1wMr4JP8XHtxRtbC/jlyEDhHPMOLJY KCfjzladocR29hG7+npARLVDcZw0tSvcxnfV7BxwEfSRAsJXlUdVx2e+IyujO2CwZmQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794404716; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=JqaDTrKtx8/Db8fINpAFpkl/BzAhzi7fu660X6wjeKA=; b=jWIT+oUJsXSRPac9HZd5kDS0WVLmHQbU9gFAkheqc3OpuBxuHlQcoD9qoAZ8Gq7X0A8X ycPis3DViUNcQ2xKAgI1XiM99GdR+VjIiLoeW2j6+61kpjuptv1XBJQW8uuNmzI3II0HP FqO7bGTO9KaGpQV1d+8Dh+0nbCaCEoRgyKl9b7mzkcrAoQY/ZbeWXeSRIRHuDUmWwEOsk WXXyktzM3Ir/HIvGhzEcBGC+9flw/ENr5zotMNACwnwWTql+N5KMc16Wnrfy/H5EYrhfA GxOd5jiBNIHeO2d9qWFWjPS/JPzWBROi62QBLMjHAJofPxnmGR84+7GzEz/oT1SK1kA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=wcsaHS3m; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30830606A326; Wed, 11 Nov 2026 13:45:16 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 30830606A326 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=JqaDTrKtx8/Db8fINpAFpkl/BzAhzi7fu660X6wjeKA=; b=wc saHS3mPAyJ9prqPvG1zaxtBdalEDupa+F24FGd3PfOZr7LpjXXKBwuvaEEtoKYJNIFj+0A0cwIU3I KptTPPpfjAJ4A/D9W+EH9hTfCXNGuxK3z4DPJQCl3HoAAToN54r+nRjAfYTysBfKZobOsV1TPPqpR d4MFNBEflhuwYyM=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xR8dC-00Fl3m-2D; Wed, 11 Nov 2026 14:44:54 +0100 X-Cc: FUJITA Tomonori <fujita.tomonori@gmail.com>, Trevor Gross <tmgross@umich.edu>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Miguel Ojeda <ojeda@kernel.org>, Boqun Feng <boqun@kernel.org>, Gary Guo <gary@garyguo.net>, Bjรถrn Roy Baron <bjorn3_gh@protonmail.com>, Benno Lossin <lossin@kernel.org>, Andreas Hindborg <a.hindborg@kernel.org>, Alice Ryhl <aliceryhl@google.com>, Danilo Krummrich <dakr@kernel.org>, Daniel Almeida <daniel.almeida@collabora.com>, Tamir Duberstein <tamird@kernel.org>, Alexandre Courbot <acourbot@nvidia.com>, Onur รzkan <work@onurozkan.dev>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, netdev@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <CAGAB664Z1avii3rw6pSu4wT9eCmwYJ4R08ix2Z_YNm9KeEs-EQ@mail.gmail.com> X-Received-Bytes: 9487