Article View: linux.kernel.netdev
Article #20202Re: [PATCH net-next v2] net: mdio: handle broken-turn-around for non-PHY MDIO devices
From: Andrew Lunn
Date: Sat, 21 Nov 2026 19:28
Date: Sat, 21 Nov 2026 19:28
28 lines
9255 bytes
9255 bytes
On Sat, Nov 21, 2026 at 08:07:34PM +0100, Bastian Germann wrote:
> Hi Andrew,
>
> On 11/21/26 18:06, Andrew Lunn wrote:
> > > 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() ?
>
> Yes. My v2 draft was exactly that (which is the reason for the commit
> message oddity) but I noticed that children with empty reg that are handled
> in the auto-scan loop would then not get the bit mask set, which is an
> unnecessary behavior change for PHYs.
Ah, O.K. I never liked that scan code filling in missing devices. It
has a warning not to do that. So i don't know if it is actually used.
Also, i could not find any in kernel dt blobs using
broken-turn-around. So we are not going to break anything.
Andrew
---
pw-bot: cr
Technical Details
Message-ID:
<06addff8-09b0-4b76-aac7-11717fbdd9f9@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-368423-linux-kernel-netdev=dewy.ruReferences:
<20261121092933.186731-1-bage@debian.org> <40db2715-55cd-46cd-a2fb-8ee11b571911@lunn.ch> <ee0baf58-5795-424b-9a41-feb9a2e766fe@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-368423-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 20:28:48 +0100 Organization: Usenet Network Message-ID: <06addff8-09b0-4b76-aac7-11717fbdd9f9@lunn.ch> References: <20261121092933.186731-1-bage@debian.org> <40db2715-55cd-46cd-a2fb-8ee11b571911@lunn.ch> <ee0baf58-5795-424b-9a41-feb9a2e766fe@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3475314"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ZObnkmcZbXjeOXwnD8hdWIyS5gU= sha256:76yYqFoLVq/RWV3qzl/x/+YGcwA2GAqOsNEbOuNaA10= sha1:ib5P6THVr2us9AEZdls+BCRY6Bk= sha256:uku9DXf8QO6KbiQAqpDmI2wen82JL4mjROvx7i+xjPQ= 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 644EF115BC8; Sat, 21 Nov 2026 22:29:20 +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 qYYMQ7X0aSgI; Sat, 21 Nov 2026 22:29:16 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-368423-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 E9A1F115BC5; Sat, 21 Nov 2026 22:29:06 +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 E56392F51F; Sat, 21 Nov 2026 19:29:03 +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=1795289340; b=Hwg3wlkPMXod9NyJ1bix60NX3v3b4vQ9jrkJnoklD1ao6i0M4Qzc++PXqY2P9LAStb4U JTR5ldqsHr9fHs+cdPw1dnb3VbwgizF2WTyqPthCdTJ/SngZ/MIZp3Yf0uxk6Tzm1J9xf zsLH8kKwMKc8eo54dIAvmi5YQqiAyaHl2qLirwJ7y2wB+reVdOhzqj50+ywN8QPNcC+Jc 63mX4NPZpNW4a2mtlNei8ea3rnfLq9mS9Q+UqQKMQwi9AUVaIs+SeWRgxcMfAAKZGHrhj TNjaPX4JfybjEC2r14e0kGcDaptU/VKWoGpRa12VYMUWL0H7dh0icwW5sYqUYdE/EWg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795289340; 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=ohB/e9rrmoUW18TlMcMuisQ3OjBltSZAwbjlv2zhJHQ=; b=OPcx10m5jS04nCebh1X/CBxsMTft6arXgAlPvIJUYFa6SQ5J/rNuB1NcS5YuTrJjPqyZ jraW4PUcUkR7RmLtov/wsUvaTewywo0BaEkFGCRQuVJyOtSEs2E0pnwmYUSZXleLRFj83 mfPUKiltkRiDfy+abhAAAWa2h+s1Rkuc3bh2r4AURH0i1A2tFl9WNSwigGPF5CcvgsaJ1 I53krj69VarI+H514YeJeMZGW+jwN63yECPV7YYLVZw7nPeMX8kjPlI4ofCMG89Q5Et6G yqoPak+g7tsN8jk3FdSYlFlAVmJNSeu1JVcyoh8KyBhwFQ+pAF3RxRgqBXJG1VnkS9w== 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=oLqujUKl; 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 4C821606A339; Sat, 21 Nov 2026 19:29:00 +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=oLqujUKl 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=1795289339; b=KN4jHIhp/aNoEuJPWQ0bqGfaPoiCGw+xLlvqzdDDCdMONISg8pKEfyd3bXfGIgl3HJf+ U5TfG11Bx12sY2l3bSP5cmXsazH7OPzCMLy0ZirO5w/o5voZE9Zalbeackg7WZe62TjZT /3EdP4hFxbzpEuKP8HkGLzEqaC/8opDgyXgNsVLN7kWL/jksnV+UhFGDswqq5m2PGApzz XtX2rSDPFgttB/+spymajyH8kj4t9/lQsnaKf1B3K7Z6frb2FypfhBzAtpeHxzzheX0tn eaeDjlF1iIzlv6i2WmfgA/n4NVYB79+BFIYzMIgiYlAzCgTRjI4p5etjRmudTuzAIeg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795289339; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=ohB/e9rrmoUW18TlMcMuisQ3OjBltSZAwbjlv2zhJHQ=; b=49aP26tJreuGxV2cdOPOo0iM/yY5fHrQGVAAzLfX1Py6oPcWjsCx2ScEA54+NKxe2oyL ZwS2qGNGwBBR48oVvIZEj++jK0JFNHttnwq0rZOpUEZPP2wBBgBUFec9dXobeGJnr4E+W 6r5te+xrlAbqVAnbtCYyfR2HE2J8dF3sLA6a8CwtfMaSj8nrkA2E+qf+kLRNIMOBeV2Vq 1LOKp1MmMXRhtwJYMXz6bxBIYJSNIgWPu6ySjdWwH1MQgB9dOBx9SvEakj9v55qBWqW4/ lWICBPpIbtjGTm3YpV8Ut6ZID+gAbY21NLWU6rOIPBsepy+g+Kh7pdQZS54KAFouSfQ== 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=oLqujUKl; 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 15189606A320; Sat, 21 Nov 2026 19:28:58 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 15189606A320 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=ohB/e9rrmoUW18TlMcMuisQ3OjBltSZAwbjlv2zhJHQ=; b=oLqujUKlQhmBa6VdqknYna0FGU HeILxjYk2V8L97X4aO7SFp5pTZCr0d3CGYqRv9z9WxPUTljkjY5qDWIkvT+5TO63ZDJlfxYRIIuye YGL/IN2teCHbHQyQjssktiDkcUudkS3pe6+Y0cfiiGn1z6pcY/4VCU8vd9KPfggboXzw=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xUqlU-000U6E-0g; Sat, 21 Nov 2026 20:28:48 +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: <ee0baf58-5795-424b-9a41-feb9a2e766fe@debian.org>