Article View: linux.kernel.netdev
Article #23935Re: [PATCH net v4] net: ibm: emac: attach and start the fixed-link PHY
From: Andrew Lunn
Date: Sat, 28 Nov 2026 16:03
Date: Sat, 28 Nov 2026 16:03
18 lines
9127 bytes
9127 bytes
On Fri, Nov 27, 2026 at 09:47:48AM +0800, Linkui Xiao wrote:
> From: Linkui Xiao <xiaolinkui@kylinos.cn>
>
> emac_init_phy() sets ndev->phydev by hand for a fixed link, so
> phy_attach_direct() never runs. The PHY is missing from the netdev's PHY
> link topology and ETHTOOL_MSG_PHY_GET dereferences the NULL link_topo in
> phy_prepare_data().
The size and complexity of this change is snowballing. Without having
hardware to test on, i'm wondering if it is better to just leave it
broken. I don't think any user has reported it, so it does not bother
anybody.
What really needs to happen is a complete rewrite, and that definitely
needs hardware.
Andrew
Technical Details
Message-ID:
<a7773c81-a42d-4989-a0e3-68851226424a@lunn.ch>Path:
mbox-mo1.pugleaf.net!srv.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!peer01.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-373207-linux-kernel-netdev=dewy.ruReferences:
<20261127014748.2908781-1-xiaolinkui@126.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.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!peer01.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-373207-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: Sat, 28 Nov 2026 17:03:58 +0100 Organization: Usenet Network Message-ID: <a7773c81-a42d-4989-a0e3-68851226424a@lunn.ch> References: <20261127014748.2908781-1-xiaolinkui@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="982956"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:1Sr5z1lWlu4PrcoUwnCC2gPH5ws= sha256:2oKNEAQ2JT+g8imFUeY+OG+BSBTiU48epnLgBRnkOlg= sha1:lsHWJYZUIjFFaYNjVedOQ+0Rc3g= sha256:SrImLENp6G9LZ4zfPLI7HOvrzT/b6dKqh+R52OR5Tdw= 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 F2B35125F84; Sat, 28 Nov 2026 19:04:43 +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 Jh5LbedujqfX; Sat, 28 Nov 2026 19:04:37 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-373207-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 6550F125F76; Sat, 28 Nov 2026 19:04:28 +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 7FAF728D36; Sat, 28 Nov 2026 16:04:27 +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=1795881865; b=5pBRhGnWxNEZO7XszyMoOjYdog46Ufyn6vP+1KuoEjnrCHjtqniAWyrAunZ0oh6CJI5c OWWzWok6EWRaqJN3x7ycYqwf8MGBJoJhQlPVOv663Eu8wVA/I3dLp+9/zgpRE4XY3mtVG FC8i4d3thyQL4tiB4A77HW/MRndMQ2sALOrFcfU7Y+npFL9+Lg0oZUFjs2F0z3+M7DR+M wNUY5IY6VxiVlLBIN8bTBNkUjddogkpt0ZsvIQ1njExX969W8dW6wiMwlg6M4kKxfgZYo UfdwJVdoAukiyzJWcE3e9wE8i+ZTbGBAwSlCKfFR3SSG/3j8jDYgh8H/PuMwC8mB03A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795881865; 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=y8vn2M+J9MfeAb/SPa6hqVf+fLcZOZfX9GS99IIIR60=; b=pFUPSx0F2wDll3WQZGwR5wsO7TRLnHSaVJi/xRktvFl7/SUB/Be77YpEdwVOw6rdUWHF 6i8p93g1T8dArWkmnIwtTtsQXs5UTgQuGRTCI+AG2O/F2ejSafwv7tpKjFQt1f06VhE/q mF3DpEVWxmE+JqRsKn3OCXgI/mmsGmVOxOJ4A0pp+q6df0ti3agfJP25FJc5mhf61F31v tAoQdTN4zkpj6l7/kgfDQTvTiOpMfWQ99X6tq6U4FAy2+ad5lAHe5WEadjfN5o8ARj9Ep Z3sV7BpYJOEBS/7I5EQi4ayH0zgcyJUCOjhK8ParUAZTH/odWsHcSk20JakLGiIux2A== 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=OEa+WHUy; 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 76565606A321; Sat, 28 Nov 2026 16:04:25 +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=OEa+WHUy 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=1795881859; b=2Ef37V00mMC7De8P2Nb0NmuAlSsUy7FaqTs1+AcwPhTk2Uu4eP4irTZOujWGFFDtfNZA vsu5jgsv4hqK/A3gf1IbveqjZdpc8ZjvNGuDd3dvp3M8wxCc3DHvxpZupWwOfYCw2IOcB hi70EeQaGQy04T0VDXhwtOr0w7GCXuFyqxAUE5ACzHuim0FOM/As7UGVtlj3z84SVrwGq 3aCs4mKbAKeedp0ktM7h707tT7iVe+OUNdKUIg8Iw2rXhTBGvq04sl9NcHiKDI+YuPMWh +xgofdqpRaXp6yIQzSNNpbpeKbj22afdXqqnvdltJLCS8OsxNC7nvMDJNyXqNKhtVNQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795881859; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=y8vn2M+J9MfeAb/SPa6hqVf+fLcZOZfX9GS99IIIR60=; b=R6Cjct6zNMhtfrzoEHk+3x1dFSkqK6LQjIURv8wcFYRdNJj32Ka2xkkD3NsS+9mGuvyX AqLbdyoSv+SY4L7UkjOdVFKKb3bHgXgZ25HAWbscC/U7po7+HRP88xH8PRIrHpuCNO3Ap T6pJBM7uIuDOvOe7GF9tntLSY+BnV4+JIrv9AB9advqs6lbVvA4WAhjlL/VLi+es0AZ6q Q99OvA4CIBetgfye2ZqF6h6prXbX5f/lpd1tQgVAK2TeB/XDr3ILg3QaUohr04CLwnYwL cKdh6jDMMih/HXtNIe83I1JZqbhHEztFi0eN7zRwDzCawqgDvuF6vXEUpVW0owm6DLg== 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=OEa+WHUy; 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 4B329606A323; Sat, 28 Nov 2026 16:04:19 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4B329606A323 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=y8vn2M+J9MfeAb/SPa6hqVf+fLcZOZfX9GS99IIIR60=; b=OEa+WHUyhAGed+6MCKiWXR9CSs WaTw7+pt1OQ8/GcQlK7gZKLsZx0PBD5IFVTVHQUHQeJ8Uauo6Zn25fAxt1/EcJLRMeheIkvqCYP+m 7VhaYPYmv6OHNsb5drPz3JN0QR8DX8YqpO/lIBRpldJ1Uvq0JcEMKhL7NvLRJrHwk11c=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xXKu6-0020I6-2z; Sat, 28 Nov 2026 17:03:58 +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: <20261127014748.2908781-1-xiaolinkui@126.com> X-Received-Bytes: 8869