🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21097

Re: [PATCH net v2 2/2] net: ibm: emac: read the fixed-link status before adjusting the link

#21097
From: Andrew Lunn
Date: Mon, 23 Nov 2026 14:55
14 lines
8537 bytes
>  			if (!of_phy_connect(ndev, np, &emac_adjust_link, 0,
> -					    dev->phy_mode)) {
> +					    dev->phy_mode))
> +				res = -EINVAL;
> +			else
> +				res = phy_read_status(ndev->phydev);

As i said in the comments to the previous version, this is wrong.

    Andrew

---
pw-bot: cr
Technical Details
Message-ID: <e20245d2-f771-4708-89f3-46c9de1d2d81@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-369504-linux-kernel-netdev=dewy.ru
References: <20261123093201.770552-1-xiaolinkui@126.com> <20261123093201.770552-3-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-369504-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 2/2] net: ibm: emac: read the fixed-link status
 before adjusting the link
Date: Mon, 23 Nov 2026 15:55:36 +0100
Organization: Usenet Network
Message-ID: <e20245d2-f771-4708-89f3-46c9de1d2d81@lunn.ch>
References: <20261123093201.770552-1-xiaolinkui@126.com>
 <20261123093201.770552-3-xiaolinkui@126.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3906439"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:3MqoVVHRXwCv8jRE3ZFfSFxoem0= sha256:uHMi2gkb5K/fAgkylsEmfcBjA13HmBjaHyF/zpRO60Y=
	sha1:uFRcwNjEIKsCLiMFUgk6td0B6ds= sha256:L3YCNqFYqduhoLjbwJLstdkb6Ad832lnzOrdmKYZ8mA=
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 E8679125DBC; Mon, 23 Nov 2026 17:57:55 +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 EGoK60x15LIL;
	Mon, 23 Nov 2026 17:57:51 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-369504-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id D1D81125DB7; Mon, 23 Nov 2026 17:57:42 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 2F1042955E; Mon, 23 Nov 2026 14:57:21 +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=1795445801;
	b=2LmKpT0awPCGsbncgBP70wiqH4Llo4R2Vm1AY+34wJapG+Fg8wO5RwbYjdOAp9lnB3nR
	 6tgtyNBEYkU5T4UmgBRGXtwu+Y4MAqtlvvGN5HLTK1KD8UcG0M9eprB/KJb4LrOlzwn2+
	 e2yVwWdMc739x/1ywqQF+iSQCa5hbyJmzxKtvMSRzeMzs3aFTzQDsIkPUapZCWanQny21
	 6pnHmJrf5x2Lb0DON0cauk5rzCdcq3yxgkKdz5GLaJt1a1J/iIyuhoaCNUEFlap6EZB82
	 5e9KSM9wP+SXCRISru2pEki3wSHZkTXJSm+zx47rhoOolU0UapPfL7+c12foI8NlzPg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795445801;
	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=DYibWYchpnASkU5561AmFliNHkovabi9KclkupbYB0g=;
	b=j7N/3VVqpkn3bLN2Jde6zo0I3roBrLCw7QXH0NCbi0CONBx0SzvSWF3YfvpJMLQ3ks0v
	 eoel0VNgwErQKDnKohAKyE0vDO3c9QnFmIz1gSoCs47aA3rFQE7jbhrwetPyHzX1opfX7
	 L8lg/7X1y77T9/shZiHMoi0nTLgSJEeptnxiAnr8wUepo793jiQj6EB+D+xnCE8DanP+m
	 AJtS1RzUZZkPkVIbJwbOubxIR/oRcxJZafR6uDyDrA1bt0briF/jVkfTVho7UPy8vGFQk
	 NDvVHWOVh/ces15G+nyEuhB4mc/R6In2rgwHgb5EMGK5PNLLOrI6qUWJHcfLKS7vZHQ==
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=TkcoEFcy;
	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 8AC0B606A6B2;
	Mon, 23 Nov 2026 14:56:41 +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=TkcoEFcy
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=1795445800;
	b=OlKpc8vyu3ohp3wsGJgCV5s5AHHyXxjDc/yjtJFj1LESNmi71EaKwP275lhXUD5yHivq
	 /yh7apNwjI1NHaqK0ZLlLSs+UEyKj/3w2bZJzd98yS+lU/UKvRf+QiIc3oK6yBaNJ9ZeL
	 nrF1sI0LcPc+CIN4PAAXdb4yRi5ziCVZzr2PJ9QE0aUGrNHkAcjoZrOowunhsF9Nlh46D
	 6QlCSlvBfrdRcJPJsLqZ8fJ/5O4XuAK9/RsxErweyU/m+oma0ovDxkFZS3kT14DMIthnx
	 wLZh/7jesjOV29RWrtMR3xDKzs+DX06QzI0LfGJbbz3mBQwFL+uLlZVofnEahTUfhNg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795445800;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=DYibWYchpnASkU5561AmFliNHkovabi9KclkupbYB0g=;
	b=3fkhKmyOfO8/RAOcuGqkldtdn3I7SrNseRQmWtmgRfW2fLubDSjT5CL7Osjbg9cJ07hF
	 nXd4cQowzJfn/3bXBea7ou0+V8tyA3PUH9lUK5WcwoZZjjpaKfy+8MFo3nGteMRNJd2vQ
	 sUTyP1wGNaKGWnTzeN03rNdYUmSViAh4j8MqyLxIYaJgepkmv6L9FqPn+CaZDKBKfvCN2
	 Xz6oUgc1+xsfWCqG8zzHKaMRTakWQQI5Q1As+j1jn5Zq+VGVCi+Vw7PEo4mujwS74DSSx
	 XuwfshCS4XttGJumgKnm5/S624cdapthyrws4xQouqxoQvuj1L1RZgUR0fc5B7b9aMA==
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=TkcoEFcy;
	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 68668606A683;
	Mon, 23 Nov 2026 14:56:40 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 68668606A683
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=DYibWYchpnASkU5561AmFliNHkovabi9KclkupbYB0g=; b=TkcoEFcyvpoqptNTj3ceydWmQT
	il5NLWF3MaJs/jLQzFnFMI8Risv6X55XwMlDCjzivs3uMjFcaS8I/Zc0f2CIXT0h1V9K3x0UfDUPZ
	YmF7Wmd8iti0xI8cQ+fjc2mTn20n2wbcPkjlFJEsxEG4U1S0Bz+hPozkidugYfIM5Ask=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xVVSC-000oFf-1J; Mon, 23 Nov 2026 15:55:36 +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: <20261123093201.770552-3-xiaolinkui@126.com>