🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20160

Re: [PATCH net-next v2] net: mdio: handle broken-turn-around for non-PHY MDIO devices

#20160
From: Andrew Lunn
Date: Sat, 21 Nov 2026 17:06
11 lines
8424 bytes
> Parse the property in of_mdiobus_register_phy() and
> of_mdiobus_register_device() instead, so it is handled in one place for
> both PHYs and other MDIO devices, and drop it from
> fwnode_mdiobus_phy_device_register().

This seems odd. "handled in one place", yet you do it in two?

Is there a reason not to do it in __of_mdiobus_parse_phys() ?

   Andrew
Technical Details
Message-ID: <40db2715-55cd-46cd-a2fb-8ee11b571911@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-368368-linux-kernel-netdev=dewy.ru
References: <20261121092933.186731-1-bage@debian.org>

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-368368-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2] net: mdio: handle broken-turn-around for
 non-PHY MDIO devices
Date: Sat, 21 Nov 2026 18:06:08 +0100
Organization: Usenet Network
Message-ID: <40db2715-55cd-46cd-a2fb-8ee11b571911@lunn.ch>
References: <20261121092933.186731-1-bage@debian.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3451824"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:oce36DZP4h6o5y5A6KT9ICUBMSM= sha256:/t2GPESUdiqXLxAzCU0q5xeKeVetcM4dhnetPqYkVn4=
	sha1:zap2Slx9LKArkpJKPKSt5Tuog10= sha256:6gAXpcqKtTX4dNH9tA4rKHifMYrPJXRtmbCdO8dxKp8=
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 C11AA115B94; Sat, 21 Nov 2026 20:14:46 +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 ZvcINSRpZtLA;
	Sat, 21 Nov 2026 20:14:42 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-368368-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 61DD8115B91; Sat, 21 Nov 2026 20:14:36 +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 570E5606821; Sat, 21 Nov 2026 17:06:24 +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=1795280783;
	b=4YIRAYHTCpCKOWDIfqmwSn62hOmcsAR8lBGLpy2641LISw1DpcD6kgaWqbwKQ96qpGVO
	 GExh1RLjwv8MmIvZBb8Aq0KT0Y3qj7cUURWOKVpkaNj6jKByAiZ8KtPFFasU79JcqTQLb
	 nr5tKDaF2JXEmwLdH5xA+YcgdRyfN/kk8fcwk3vkxx8dS8yFm0tEJA0H1WTDPHG74KLq0
	 IuGHHWPj3nAdQlRm5Cf5b469ok/pFfuF40Cj6R542x0kauY2dAuScxlaYbqIC4NhEBXeG
	 kMzXMEJd3VX27k/2CtXut2+atMOrDXRqRL3VO4ZTKpnYuW+beQ677l8TWxylqJHHCbw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795280783;
	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=j3HTDtY2SjfXTVXAZ9+iTSjln9u/IeXUYygv1OTtYNg=;
	b=T4BUm/hOUBwbQ1iJNVEXHLoPcwTVuUYY6rFgI7vLJF6wjeO4NTIZ5xgsYPdnzX4m8fm6
	 7yGaeKQ06MveJSW03HBPhoq1rC55YfgozPiyHtJQS7kM6m8hdXonuH91I7Ohf1duRMBbe
	 wW/hIlry09h8OulElHVCefg9K6HV5DgThu/cX0C6XjCX0V8RMnutPs5QdpZt04IhkgTvN
	 nsqpfK6h5v+wvZYvPZ1ieZqQzVdullVQyXuoyk4rdF3v3WprFj0V13ule72pio4zTab3C
	 SXUCJbuoLF6VA36Za5D34VduiYyOsgVC9lnhmwPc2zYhIEaQqCqesVdJ1p/fyfHriQQ==
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=YS3UJ8go;
	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 79CE0606A333;
	Sat, 21 Nov 2026 17:06:23 +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=YS3UJ8go
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=1795280777;
	b=yGKIB9B+uimLTcGb/X9fjMyOiXXe5qxT3GNlqruTHOtpLcXKaUkj9N5LUlP9mvO8aiPz
	 Nsbn2v2zAs7EjcYXOJwGPNajr94wnBoL7EZRHhUH/2y0zAel1YHJj5f6E+V5AHe2P3WGG
	 DUpD3eGwoSq6kIAJuQ5mSX0xUeXkYzeqQJUcns7EikmdWqduaDTUfZgT4tJGA37s/OlXW
	 KsYn3ScCJ0pC0pkxxk1Hol2o04qAfFNW31aM1znQTmXrc+1C5BsrlTSnHXznSeRwok4rW
	 A9eny9xAdkWNvLRajzr/URGGhIMLi9JUeZ5KvO7nAE+omAFT+D0RtN3RUdQB5/u7IQg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795280777;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=j3HTDtY2SjfXTVXAZ9+iTSjln9u/IeXUYygv1OTtYNg=;
	b=Gh/Bu6rth3E3JdBFVwstaJlxM8xXbfJF7TNskSoJEhX5KANKEwbThhpU4TSbgkpw28Pe
	 U0Vi2kmsZD9mQeLUDbpVY7BFSHMY5398UeGdEfBfpxB17U1PEiCYX3+6mnuzf4SSwk29I
	 k1rXGJ3gKCTG7Z9Oafrn8XKSnILFOGu2XiCacNz0FnvVdijzWPwFz0tbFeQFMUh5snt6m
	 BHi5qKCib9AN8DffzAYwn3ZmWpaLfgdovzJRN/eXJcSFuVP3hSuMpOW+XE3m6YZERE6+H
	 vxHIuc0fYv33mBs7mGmlKUUC67hzMn19Z3G/wGkgcwAVpYYdfIudmhnTj0e3iZ5zg0Q==
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=YS3UJ8go;
	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 57C45606A32C;
	Sat, 21 Nov 2026 17:06:17 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 57C45606A32C
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=j3HTDtY2SjfXTVXAZ9+iTSjln9u/IeXUYygv1OTtYNg=; b=YS3UJ8goZoE1yA2BMToX7P6aca
	2treLq4tBA1ufqOFkvhLK2iXhycZOF9o/tk5BJomEdMmsIR9bkesMf1F+cg/kS8AOtGDSc7e1E+QV
	ozu+X3g/7CfbFwF3guGCvLYJa69d8hED+FT1XjWkdqkmpRL1scvDQE5IdGhvd+726wis=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xUoXQ-000TAu-IZ; Sat, 21 Nov 2026 18:06:08 +0100
X-Cc: hkallweit1@gmail.com, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk,
	olteanv@gmail.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
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: <20261121092933.186731-1-bage@debian.org>