From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 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== 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== 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 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) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B98F6606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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 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=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1xY23m-002Nnj-Lv; Mon, 30 Nov 2026 15:08:50 +0100 Date: Mon, 30 Nov 2026 15:08:50 +0100 From: Andrew Lunn To: Linkui Xiao Cc: Andrew Lunn , netdev@vger.kernel.org, "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rosen Penev , Christian Lamparter , Jacob Keller , Kees Cook , Daniel Machon , Heiner Kallweit , linux-kernel@vger.kernel.org, Linkui Xiao Subject: Re: [PATCH net v4] net: ibm: emac: attach and start the fixed-link PHY Message-ID: <0bccf77f-6733-48ac-b7f3-ec9b9912a261@lunn.ch> References: <20261127014748.2908781-1-xiaolinkui@126.com> <27e11e9a-bff3-4f66-bac1-4cc3e10bca5a@126.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27e11e9a-bff3-4f66-bac1-4cc3e10bca5a@126.com> > [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