Article View: linux.kernel.netdev
Article #7496Re: [PATCH net v2 1/2] net: phy: move irq_suspended and irq_rerun out of the bitfield
From: Andrew Lunn
Date: Mon, 26 Oct 2026 12:54
Date: Mon, 26 Oct 2026 12:54
12 lines
9073 bytes
9073 bytes
On Mon, Oct 26, 2026 at 06:53:42AM +0200, Igor Velkov wrote:
> irq_suspended and irq_rerun share a word with link, autoneg_complete
> and interrupts. phy_interrupt() sets irq_rerun from the IRQ thread
> without phydev->lock
As you say, it is an IRQ thread. Because interrupt handlers might need
to access the PHY, which is a blocking operation,
request_threaded_irq() is used in phy_request_interrupt(). So you can
just take the mutex and make the RMW thread atomic.
Andrew
Technical Details
Message-ID:
<b99454f1-9c3e-42eb-ad03-3941015879a2@lunn.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351905-linux-kernel-netdev=dewy.ruReferences:
<20261026045343.837889-1-iav@iav.lv> <20261026045343.837889-2-iav@iav.lv>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-351905-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2 1/2] net: phy: move irq_suspended and irq_rerun out of the bitfield Date: Mon, 26 Oct 2026 13:54:16 +0100 Organization: Usenet Network Message-ID: <b99454f1-9c3e-42eb-ad03-3941015879a2@lunn.ch> References: <20261026045343.837889-1-iav@iav.lv> <20261026045343.837889-2-iav@iav.lv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1308190"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:9Upqp2gbSYAWR36ETuiYkdHfv6A= sha256:0f3OEmGLAOxjtNU9bWtzzLfDaxDKXr496gCZWrv0FR0= sha1:h2cDxIjRAAm6OB+EyFTT1LME2rM= sha256:EWHjNNl3/vA8ayFj+2eo0SpYU/yxLF4d+VC0JSiTSAY= 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 AFC74125BA7; Mon, 26 Oct 2026 15:58:44 +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.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-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 qqd6rvyAhgnQ; Mon, 26 Oct 2026 15:58:40 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-351905-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 52348125BA4; Mon, 26 Oct 2026 15:58:30 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 0971227195; Mon, 26 Oct 2026 12:54:41 +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=1793019278; b=goBApqxkw3KH1Fp8wghj4Cw+98PLjAgMG1GIQQ0YrPLtM13foJR2qwrfuPEsUP926SAZ je34Q7kP1gtsLDPgEYyX/HrYqYtDF1w0HHpJczAPg2it9PtMuV6vIP/ehYiGVgqJDaXZy SS21QFSii5Dy6BAmc+w1piK601U2rmhIZ0YEQ5xEyYINYCcZIxxZZV10CCPR7VU652JNW T4D0h8Q0pOw1KszTBny075kIBZhGLnrc61vT9VyvZcfSqYnimSBAU6HptIkcb1MAPLyze 06YVYpPfEhcGqNdSrV22Z0U9DzrAZClEpJ+Pk1zUPHMUeecRsDVsNXWR8yE0WQpnpYA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793019278; 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:In-Reply-To; bh=t9x1jy4p7mYlDdJ+09dy+8fKQ8oVqna0wgGfRMSr56U=; b=CNi11wYHC/m1Ti9ttptPvyts2DsPgmTxsxfFgBIdJSblfiVEwBLvEUJkTVUct0g0M7ex zfxW8IEVYphumPw03kA9TtqYR6bdXrT2eg488OcSzdlUI5dEpJepimOP7KHM5LNRL7Un8 oYSp/aFeepHki9QFGzQI55Av/LOwfY7/tWw5KEq1se2q8RDPg9vi9Lj2o/QWS6PvgV7DX dX/QCha38JViPzMD3iDEfwyNgicT9irdRpZrg0BJRNaTeXE92K7faV2e8TluTGesYlFX6 UfyM0Uoz1T4Vu913USdlOucJUZTZCMg8vfAp7QAn7SznjgoYrk16zv4XaHFebXNsDaw== 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=We4LM5rj; 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 07865606A320; Mon, 26 Oct 2026 12:54:38 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=We4LM5rj 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=1793019277; b=PIDsEmEAuHAFJwMbwiFNS4L+sAQB7Kt1sTXnogoBwzOKxakaH1UFLqOLUPfRtpBbFuYo yzVHBy2CBULkQkHh+p6SqWoIGc1Df79QBodhP+W8FcY7zQwjP1mac8dmdc+ja/MsTSVQd x7J70AISObfTGcFlAWgwZPZI11iEkhMGWtuaWZWwUha/F6eL/vKwFsbjsCT/uISN2/t3G VLkPxqfPVP3wLP1aHArEChSZM7USOEW3/4kl6NuUY2V8AiJltwHrZsLeGhh/IoTDUU9zH +h67+pQoSh1oJ/zrMcGQFZtllgjAXqkJLmJJUKCnE4YpqIlxfEk//YBtqisClj3Yo/Q== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793019277; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=t9x1jy4p7mYlDdJ+09dy+8fKQ8oVqna0wgGfRMSr56U=; b=PR6VQvf7JvwQ+kM3RK7qICTTI3l001XO3G/5e5KOX008TCEzo2NxsxwpmnfDxuIx29c+ 2zF+3T6tBDB94SZgofeGPxWGo33Hq8reH+kAUdpshLJi9stAV4bRoBRNYS4I+iUKH2y6E O+uvu0w0M03f2DjFGBpL+IjPJD0bxBl+XH41G+TkXyF/VREV3mMxSWy6BorjLnbXONeEZ n8Dz81Z9EuPmycjgncGaloRmbm9jPS7JnMA/58qon9RClQjIdEF2fgb7ctNji3zm7sklz AxDhXHPg6e5trsA2p1pSo+jI3HsG8o27e6XIrQHsC5bY6JFuRdognGmilWiDjXyf6Qw== 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=We4LM5rj; 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 9B83B606A31A; Mon, 26 Oct 2026 12:54:36 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9B83B606A31A 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-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=t9x1jy4p7mYlDdJ+09dy+8fKQ8oVqna0wgGfRMSr56U=; b=We4LM5rjKcXFNoN9BqA2nSNWLJ lsQEdax2Af5GmHuKzXiCpJQ05Jv+xI/SnCAgi7AIuNIFHSW9uwmz8BCCqFixaSyTs2dQkeScPzPVc PDfXmwVEGAMBJ1SnBkfj7LtDTUfJiVk+bBfsQlbZvVdHh5QnGqXcaunizgVXaH9tkCtM=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xLKDQ-00Cnaw-RB; Mon, 26 Oct 2026 13:54:16 +0100 X-Cc: Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Lukas Wunner <lukas@wunner.de>, "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>, Wei Fang <wei.fang@nxp.com>, Niklas Söderlund <niklas.soderlund@ragnatech.se>, Paul Barker <paul@pbarker.dev>, Florian Fainelli <florian.fainelli@broadcom.com>, Doug Berger <opendmb@gmail.com>, Thangaraj Samynathan <Thangaraj.S@microchip.com>, netdev@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: <20261026045343.837889-2-iav@iav.lv>