Article View: linux.kernel.netdev
Article #12232Re: [PATCH net-next v20 01/13] phylink: Add phylink_mac_interrupt
From: Andrew Lunn
Date: Fri, 06 Nov 2026 15:55
Date: Fri, 06 Nov 2026 15:55
36 lines
10316 bytes
10316 bytes
On Fri, Nov 06, 2026 at 04:32:30PM +0100, Birger Koblitz wrote: > Thanks Maxime for reviewing! > > On 06/11/2026 11:11 am, Maxime Chevallier wrote: > > > > +/** > > > + * phylink_mac_interrupt() - wrapper for phy_mac_interrupt() > > > + * @pl: a pointer to a &struct phylink returned from phylink_create() > > > + * > > > + * Passes a link-change interrupt received by the MAC to phylib. > > > + * This function may be called in interrupt context, and therefore cannot take > > > + * a mutex. However, it is safe to assume that the reference to phy does not > > > + * disappear during the call, as only an SFP module may be unplugged to make a > > > + * PHY disappear. SFP modules however do not support interrupts. > > > > I don't see the relevance of PHY SFP supporting interrupts or not here, > > this just re-triggers the PHY state machine. Looks like a comment to > > make sashiko happy. > Indeed, this is for sashiko. Unfortunately it followed up with: "The > function comment notes that SFP modules do not support interrupts. However, > when an SFP module is physically unplugged, the electrical link drops. Could > this link drop trigger the MAC interrupt being handled here?", which is > equally irrelevant, I believe. It does appear the LLM does not understand what an SFP is and how it operates. We should just accept the LLM is wrong, and don't add too many comments to try to correct it. The danger is, this code gets merged, and LLM kiddies come along, there LLM thinks it is broken, they try to fix it and submit patches. But lets see if that actually happens. Andrew
Technical Details
Message-ID:
<1bcae18f-ca18-44bc-980f-ed34e87db5a7@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-358063-linux-kernel-netdev=dewy.ruReferences:
<20261106-ax88179a-v20-0-37b5a1189983@birger-koblitz.de> <20261106-ax88179a-v20-1-37b5a1189983@birger-koblitz.de> <69be2cfe-e296-4f90-ad19-0bd48a83e287@bootlin.com> <27119213-dccc-4c17-bf7e-b39a038038cf@birger-koblitz.de>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-358063-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v20 01/13] phylink: Add phylink_mac_interrupt Date: Fri, 6 Nov 2026 16:55:43 +0100 Organization: Usenet Network Message-ID: <1bcae18f-ca18-44bc-980f-ed34e87db5a7@lunn.ch> References: <20261106-ax88179a-v20-0-37b5a1189983@birger-koblitz.de> <20261106-ax88179a-v20-1-37b5a1189983@birger-koblitz.de> <69be2cfe-e296-4f90-ad19-0bd48a83e287@bootlin.com> <27119213-dccc-4c17-bf7e-b39a038038cf@birger-koblitz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3916995"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:BuQUNWdwFCvA0RqzsZpD8GU1akA= sha256:A5WD0ZAB6rVTB8Jk8QLlDdOLiYqlJ7rvcfzfmNrSFYw= sha1:/AndOFwMih0NsI0RgDbvzJ6zCos= sha256:V1EMTIkpeJUfeOC3YSywGXbkelLtKdEpNPFqXvI5gxI= 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 A52B011329F; Fri, 6 Nov 2026 18:59:28 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.151 X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31 tests=[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] 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 OnaemvHPL8Ok; Fri, 6 Nov 2026 18:59:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358063-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 6039411327B; Fri, 6 Nov 2026 18:59:07 +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 94CFB3547F; Fri, 6 Nov 2026 15:56:03 +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=1793980563; b=ParjggtMGqY3LfCWn12su/bQrxPyzuEajfsnHqzTgoCbxo2OGkxe0sbOINfpFNYN5h1d vyQq2ULSeOGk3rPeJeiVg3QexxheP1CUo42sutzpAjZw0Jl2Vn3DVEnXM837euMY6WAli hBD0mLIVWDCrYKmC3XvtuK6rfjKXX/nS6PR3BE0mMoAfgzz30FmaEg/+NgMQxpJpJBahc ofSsv+UNymJqXvvypYfHewR4I3rBplA5oRWCZ8rHmgGkrv2nmXqvs7gwdublg+y9MOk4z 94qyFx3jaZp7Du6mxSAEHT/H8FAr+AaOjbtX5aHp8dA0HNeQJAOjjWlynHCHseVagLg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793980563; 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=BCioul3B6OdYvFh9JZhAwvMgFeXlmvL+TKu9XvZlfGg=; b=Qsu/WWQxkSqYDZOoCf7j1qanTnquK0jXpn1vwY8BSKNrecn8aGQ8b5OyNEGUKaYulcS1 XxO0HQD4Zp3QU6N0AoQn4gVTlTSetM7cAxRD34Yy4nrb+JmfXQ3F19P4hYex4HQCQgkBo Cxde15SaGz2U9Ey9FLUP+FaFy+1uKPxm7lzTAg3SrSSRdOXMdPwjj/FkAa1SZ/4Y+kmJ0 U1bHRepUglZvCo8e7yqhS0fM3HpwhLI9RRToVDe/9NgkllvFdjs9J6w1w+cZX9eYsFR+g zl4EQ5EJ3ulCNmcCsrnb3XWezaup7rgKat/C//SkZ2EGXPjr5vr5ZcNQYbMmTNVPD+g== 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=JrgZiFs7; 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 6B608606A335; Fri, 6 Nov 2026 15:56:03 +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=JrgZiFs7 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=1793980557; b=DYbBK4BZ60k3n6kXgqAevR7lzc6BGUlNiqFDmVWLjzubNC/0glOzrTQKcchRCuC7UCjG xhR0q78HFk8aYrRGEHOTGRUB66rgubnkxvKBdMPecQOqR2+1TLM5D/5C8lahpJzZ5cXx+ ZQWj2YphUw4Wn8uA8A17sQWjyDG+6oqDOdiA1asfqI3VImBnbxPrvDPxEUGmRNeRDg+GT XIVdGiOrnt6r6C4ohz/wqERZdRZZwWws4JnMUKoOSjeCaWQ1TKvUt0Oiio/uX6q1B8krK dw65gwa830BLYT4MDrEdUjn0O8R6BWtA2jSOC36hr/6OZX3YT78nYcAvB41em8D0kZw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793980557; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=BCioul3B6OdYvFh9JZhAwvMgFeXlmvL+TKu9XvZlfGg=; b=JP7R/F0blMAEA/fHYmLFQn8c5UkvBxKMCBxft2fRuhbEUzr+VnFN0FjoZJZkWnnI2YLw rz8fe+6k123eT7dEpx5Gfvkx97m3weSN8aAUVCaKzBn3m7A9LN2aCcE8NVpwSFUu/vcdN nK5IPMt3VLoblNzeCXncmt/02dbD7PRuw037J8jVkCn9c/vPFhmfGnM4zzsgO3U3kqnnv A1ZzOtFoAxtgxxvDKNnxGQ5AQHGwZcNQPfpZzy0L3zBkxzf18vSKS8vUAEGuS/ScILNxT /aNxvxSdvADVZuh+B8PW4sFg0vOrXu7lpDF9hMOIe54VRh54bGKXv2TboZtj+Ip0sxw== 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=JrgZiFs7; 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 2EDD9606A329; Fri, 6 Nov 2026 15:55:56 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2EDD9606A329 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=BCioul3B6OdYvFh9JZhAwvMgFeXlmvL+TKu9XvZlfGg=; b=JrgZiFs7WDRFq9M7AGZBt8AcxS REpmImLbWhal0W9riTLTJk7DNQE/OQcuDDLWjVHzbsTXyLwfKP9hAe/SNkrv883pvFT287Mp6uNKq K4R1kEvxErlJdK/+Zs6eRcXJoB8+vrQaI58sXp2BCHzLXl7AUGPucHlk9crAN4ywvoxo=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xPMI4-00EoZW-0R; Fri, 06 Nov 2026 16:55:44 +0100 X-Cc: Maxime Chevallier <maxime.chevallier@bootlin.com>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Russell King <linux@armlinux.org.uk>, Heiner Kallweit <hkallweit1@gmail.com>, Huacai Chen <chenhuacai@kernel.org>, WANG Xuerui <kernel@xen0n.name>, Eric Dumazet <edumazet@kernel.org>, linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Jianhui Xu <neuromoments@gmail.com>, Emir Beganovic <beganovic.emir@gmail.com>, Nicolai Buchwitz <nb@tipi-net.de> 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: <27119213-dccc-4c17-bf7e-b39a038038cf@birger-koblitz.de>