Article View: linux.kernel.netdev
Article #21096Re: [PATCH net] net: ibm: emac: attach the fixed-link PHY with of_phy_connect()
From: Andrew Lunn
Date: Mon, 23 Nov 2026 14:54
Date: Mon, 23 Nov 2026 14:54
14 lines
8944 bytes
8944 bytes
> of_phy_connect() only stores the handler in phydev->adjust_link, attach
> never calls it. The state machine is not started on this path either -
> emac_mdio_init_phy() runs only for the phy-handle case - so nothing else
> fills in dev->phy, which emac_configure() reads to build MR1. A fixed link
> cannot change, so calling it once is enough.
The whole point of fixed-link is that it works like a real PHY. You
should not special case it other than when creating it and destroying
it. You should call phy_start/phy_stop. When start is called, phylib
will call the adjust link callback, same as a real PHY, and setup the
MAC as needed.
Andrew
Technical Details
Message-ID:
<4ed4f82b-3ff8-467b-9127-bdc29d498ae4@lunn.ch>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369499-linux-kernel-netdev=dewy.ruReferences:
<20261112075321.3903875-1-xiaolinkui@126.com> <ef2eb733-4b94-4c2e-9165-0b324733a482@lunn.ch> <20261123091012.730441-1-xiaolinkui@126.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369499-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: ibm: emac: attach the fixed-link PHY with of_phy_connect() Date: Mon, 23 Nov 2026 15:54:06 +0100 Organization: Usenet Network Message-ID: <4ed4f82b-3ff8-467b-9127-bdc29d498ae4@lunn.ch> References: <20261112075321.3903875-1-xiaolinkui@126.com> <ef2eb733-4b94-4c2e-9165-0b324733a482@lunn.ch> <20261123091012.730441-1-xiaolinkui@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3906209"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:o0EGreh7E4b5n4pBquehaaORsMU= sha256:XykgAeResm60gFyd5vf6DxRq6/Dw5ohBU/Uh3/nsYxE= sha1:xoKHY4OieH11oh+LejXkIEO8yjY= sha256:fNZbKzoqbwBGtOuPF+2YNTsTAZF3WwBeKe2MR+bAg6Q= 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 BF7D2125DBA; Mon, 23 Nov 2026 17:57:16 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 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] 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 2yPfVavN4jkd; Mon, 23 Nov 2026 17:57:10 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-369499-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 652A9125DB9; Mon, 23 Nov 2026 17:57:01 +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 DBE5934CD4; Mon, 23 Nov 2026 14:56:00 +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=1795445675; b=K9q/bdnw+8fwFDb8G0H+wDCeSS3PvJXI+P4+ea4rfNjPPnGnidR7UGI769Xq8HDw9jl4 o9DUFEYBVWzqw/Tmabo8R9gLWDvUZB3IGXjl37mXmE556o4gQSDzPefffTCEcStdHw01j 7rYba+I/b2LG/adP942sQOPMuEv7JXxOdZlAfyvs9uXY9x7bhnJJy5Ahl5dHay6fGGEJO 096YaXwapnoyO5HfuIc8YNBWtx4Qz1KwrCA3zViGOpbDB1qMKZb1Y9X51EQMsPRYc5549 ZzTDQKwhtLq/5/FkcioQYlidj7XxYR+XWhA7ntDxSHGPgTo5AgL2G4hM+v1suk20oMA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795445675; 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=MTEd3wJh9azedyr+Vm0OAaPXjbeBgq/pERaDwYxZA58=; b=ksUmqYlx9S8oYxIYkLViHFK+ZVjossVaG3b6IHfCO1ayurlCYwmRT7ozmZ7o9uB4o9s2 adyLSDjag7U1j3QWkRb5hliJn57UdDAxQK/cvIzSbNx48MK7HsPguzXh5PH+TLEeQwYBk n77eNOIShKCK+dBZZcGUkSqi5Epip/mtDxNK7sPlSd6WtkrfXelU9PhcboYTP8LnmeAUO REQEypfC6rt+2TLd+lMT88cym7zXt8h9sxPxPvLm6QijD+pJAPEZnnCfqkqfRDNRf8uiv lJye5gImsvzOg8tlBQuf86gPeuewKjcuSsDDN0ayClcV/GmVAi8lIpm7Fw4sbgyZv4g== 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=cNdIsRMP; 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 0DCE9606A696; Mon, 23 Nov 2026 14:54:35 +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=cNdIsRMP 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=1795445669; b=YL0x2asLvSOsLxtfdydjIxqSq8u/3Pc5uVewvrm+ROs/Oi7Gs0KFXUagcbPDi9PYnRdj 7ipSFqsUI91Wrw575LpFJ8Rga+kGYE84IL4+y/b38oCCWB6ykofgdj6NjLDMYVCgd3RGA nSKEl+S5RLaM8HJDXnxYQI403ALkiZO5CpUGbtT1j9ehDnQnbyIemuSdmew+nARRRDY2S +nZalYLgppQVOQ2BmoXd0QllVjTSuLWmIgQWt5IgVlILzOY2KXy1Wsb6YbM3tFUMgH0/Z fUI1d7TX9k+oS5WPz5YQWluJGrfuXgZsDKrzr4m1qn3FxlsmTKgpmez0edJT5hS4LJg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795445669; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=MTEd3wJh9azedyr+Vm0OAaPXjbeBgq/pERaDwYxZA58=; b=bFykwKI5zCpAMYy0lmhi9U+qduwF0WWDbr4NwAH/d2EZPydsbT5KXhG6HDtyq+Yb0GHs tNFAOmiX8PwT4c25Csowq5g9ObyXn2VBT0tIU8MG5lm/3kCR0iF0QeS8zicPTQdwgi0Fy KpAnsDQlfsl3ID5d+hdzoSpZ7lcRXL9cnPpIK0erDzys8t+dNMsiq1sLxXiLEBizXVPzs QRrXj5xSDpNXslAxzevYHBiu57tDxO7AgKa+Yzbm7lLqMrlB30uSiFxTGl+tgBIlEfxiC qFPu50MplQNB1m81DVWfiQV7I29O/2jm8yvgorAyb0hKCc4APPJoV0dle+s5i0yw7+w== 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=cNdIsRMP; 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 DF341606A685; Mon, 23 Nov 2026 14:54:28 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DF341606A685 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=MTEd3wJh9azedyr+Vm0OAaPXjbeBgq/pERaDwYxZA58=; b=cNdIsRMPZzGk9F22Vz/MFAAmWR ghXAdcK+XwK41QDKuIuJ13CTPZg4D/W36ZBQ0jm34wOrNT1lvFdBteg3/Rpn0KyYZ4XOl1yNUydac iz9pmO5NuxUxaiRBCJ+4i/7s+cEa1IMG1fruHsRPlZGsvArBbaNDYTld1wJAcSY2QG5g=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xVVQk-000oBI-NR; Mon, 23 Nov 2026 15:54:06 +0100 X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, rosenp@gmail.com, jacob.e.keller@intel.com, daniel.machon@microchip.com, chunkeey@gmail.com, kees+treewide@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, 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: <20261123091012.730441-1-xiaolinkui@126.com>