Article View: linux.kernel.netdev
Article #24645Re: [PATCH net v4] net: ibm: emac: attach and start the fixed-link PHY
From: Andrew Lunn
Date: Mon, 30 Nov 2026 14:08
Date: Mon, 30 Nov 2026 14:08
17 lines
9352 bytes
9352 bytes
> [OPTIONAL, see notes: delete this paragraph if you do not want to
> offer the alternative]
> One much smaller option, in case it is of any use: the oops itself is
> phy_prepare_data() in net/ethtool/phy.c doing xa_load() on a NULL
> dev->link_topo. A two-line "if (!topo) return -EOPNOTSUPP;" there
> would turn `ethtool --show-phys` on such a netdev into a clean error
> instead of an oops, without touching emac at all. I will only send that
> if you want it; otherwise I will leave the whole thing alone.
I say leave it alone. If anybody can trigger this, they have the
hardware. We can then propose patches and get them tested. By adding
such a test we are just hiding other broken drivers. The kernel
opps'ing can be good, it makes it clear something is broken, and the
stack trace often makes it clear where.
Andrew
Technical Details
Message-ID:
<0bccf77f-6733-48ac-b7f3-ec9b9912a261@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374249-linux-kernel-netdev=dewy.ruReferences:
<20261127014748.2908781-1-xiaolinkui@126.com> <a7773c81-a42d-4989-a0e3-68851226424a@lunn.ch> <27e11e9a-bff3-4f66-bac1-4cc3e10bca5a@126.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374249-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v4] net: ibm: emac: attach and start the fixed-link PHY Date: Mon, 30 Nov 2026 15:08:50 +0100 Organization: Usenet Network Message-ID: <0bccf77f-6733-48ac-b7f3-ec9b9912a261@lunn.ch> References: <20261127014748.2908781-1-xiaolinkui@126.com> <a7773c81-a42d-4989-a0e3-68851226424a@lunn.ch> <27e11e9a-bff3-4f66-bac1-4cc3e10bca5a@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1442280"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:SxMDZ6syfFhlgVeoUWSYDgcZ7v0= sha256:6dabAJPGulHOvChWLjHfbdPPfF2UEWWaZBTadZtgELg= sha1:MchBDYqxFQ7G2VgAwcghahrEt5c= sha256:0YOF2rvE/L56Pe+SkNeoErKBwxdMw9PYvlx+4/ouy9I= 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 70273125FF1; Mon, 30 Nov 2026 17:09:54 +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 tuploCy7xsRO; Mon, 30 Nov 2026 17:09:46 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-374249-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 7A1A4125FF0; Mon, 30 Nov 2026 17:09:35 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 0CB4E601C04; Mon, 30 Nov 2026 14:09:34 +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=1796047772; b=asuwA7uldLWaoVlDbD2AmzI1EHymLk8JFUc2lnCWGOLC8Gp+veUcNvKwd05TMjcFPNwf HSUkeFS/inXcH6T+r9Sy7W4eyP6FrtTVnQ1IqW6TtsJNKio0DRvZq3Qbr4yFWjcAvVox6 kcG9TaICzis8YG/MwPVA2PzExYDCQjC48+dwSR5eKIouA470TlPD1o3Jr6LfyzN7RiG6D oRkzrdrvfpm2nBWhvuR0ux63AbQCyBNtVEFfv978cvQZcDyR/7rEGzve00sMb+v7IhZWM pFGoWEiw98ZOX/JJaPLNDJpeAOBRo/B9e4/u0A1kZ0IXz5CjGa3h8XH9pgSc+wgVZDQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796047772; 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=AVkW90sfbmXnzbC6YDufU1jvtPiC1h1np8tCePR7LAU=; b=rxY8Tr0XdSdXmTFyK4wkSRdTxWcB3XcQ78YbopVwtj4nuuVYfRZWvB6+qwgNeZa5S8pj x4HYlmA61eOS6f7alEtc2iUrvZDE4jXckC5Yp2dVmuRk7wDGv12ppHfA6xFM6T4jNXgVW ceoInx8LCjiXBleZ+IT5aYBhI16Ry+FiVpDNaq8jj5D8/GaKSjAvcNLdb8raQavOe1lKH b74NbRq9bs/KysAbq1y18NT+pPUlh2Sg6pSdJmSAWR8ZPLhI0dlX0hfjbTUdWxm44GPLf aBT0WjuT57xNZr/FCmzINxNLqE4G2WkisuUo2V9A7p0A9wgsMrAHOUUOJVoBZxxNGyA== 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=Q8B168zB; 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 DDCD3606A32C; Mon, 30 Nov 2026 14:09:31 +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=Q8B168zB 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=1796047766; b=zE6yZRylWeC1UXBGUqRqvuZaKoncb+UpiWbmF51hlYbr1BWr1mrs1V+xm4mN+giz4f4g FlDnOZuA4ED3Qnu4DAbcuKv4AXlPq1usXANcuFdtAwA6g8PB455DU/UcylAykDTk6uFkj uJIyJ5EQBSFSQOuvjOq/a7oTBWrRJSEVjlQmS8ZEOJrsqEywFfTAFAJuZdS9lxNlNWoFJ HXGtRV2I1dfKpY7utelDEj4qpvnu46LrNFQ7MWnEM47MhZFaFVIxUc4Y/NeTJ4HfH1HLg +6QQQaFOGFO1x+gGmjECrEm8qiZFCYRkWC80dGWpNk4u/onMTE6vtV7znELTcU58LQg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796047766; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=AVkW90sfbmXnzbC6YDufU1jvtPiC1h1np8tCePR7LAU=; b=4+qyDcjZ8LW4+95T4Q2/OGQaix9jpLlRmJ6NPcO9RTfkvGYqgUyOqBRNbyBMYHn4Zy34 h40qFTe28fRincLGFn1XXj4Fufmc8vu9jERj9+DDhCsilbFrLgzG1wy616Z8OcNhPwCA/ aDLKY4f5Fefi6Yk5TwXCvcytQ5eRWxr3IsdG/v9dw95/rKxDFN/zDdXo0/AMK/HcwtWL0 JSqvUY/kffdTTrVJlT73twZ1Ql8ZF60DytREmQgQ4cHj5OqReuJ4F057a66xCWnM4CKgl EgDCK0wi9OaL8UVpXq4WzDcZFm0nQ+NqPdShX6JeHQMv/+v1cfiDTHxVsRdksTG9xTQ== 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=Q8B168zB; 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 B98F6606A31C; Mon, 30 Nov 2026 14:09:25 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B98F6606A31C 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=AVkW90sfbmXnzbC6YDufU1jvtPiC1h1np8tCePR7LAU=; b=Q8B168zBNSTUB44XWUBKihww95 ZICOoDgeGvbr/HzeOv5khYm0VFbB/x5aema+SymHbkSUG5YBSgWWUc7kThrPn4IRNdZWXM0YPk+Vc FOhzDOUl/uv+HkFM4Z1sWK915ryG/9xKfN0SMjGR6eySevVGv9aBLX5emL0b1rB6FPK0=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xY23m-002Nnj-Lv; Mon, 30 Nov 2026 15:08:50 +0100 X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, netdev@vger.kernel.org, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rosen Penev <rosenp@gmail.com>, Christian Lamparter <chunkeey@gmail.com>, Jacob Keller <jacob.e.keller@intel.com>, Kees Cook <kees+treewide@kernel.org>, Daniel Machon <daniel.machon@microchip.com>, Heiner Kallweit <hkallweit1@gmail.com>, linux-kernel@vger.kernel.org, Linkui Xiao <xiaolinkui@kylinos.cn> 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: <27e11e9a-bff3-4f66-bac1-4cc3e10bca5a@126.com>