🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19515

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

#19515
From: Andrew Lunn
Date: Fri, 20 Nov 2026 00:33
19 lines
9110 bytes
On Fri, Nov 20, 2026 at 12:13:19AM +0100, Bastian Germann wrote:
> The "broken-turn-around" property is documented in mdio.yaml for any
> MDIO device, but the MDIO core currently parses it only for PHY devices
> in fwnode_mdiobus_phy_device_register(). Non-PHY devices, such as DSA
> switches, are registered through of_mdiobus_register_device(), where the
> property is ignored, so MDIO bus drivers that rely on phy_ignore_ta_mask
> still treat the turn-around/read failure as an error.
> 
> Parse the property when registering a non-PHY MDIO device and set the
> corresponding bit in phy_ignore_ta_mask before registering the device.

What switch is causing you problems?

I do wounder if the call in fwnode_mdiobus_phy_device_register()
should be hoisted up into of_mdiobus_register_device, were it would be
common for both PHYs and MDIO devices.

       Andrew
Technical Details
Message-ID: <19d8bfb6-074e-4344-acf8-67872f7b3e48@lunn.ch>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367489-linux-kernel-netdev=dewy.ru
References: <20261119231319.1256419-1-bage@debian.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367489-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next] net: mdio: handle broken-turn-around for
 non-PHY MDIO devices
Date: Fri, 20 Nov 2026 01:33:21 +0100
Organization: Usenet Network
Message-ID: <19d8bfb6-074e-4344-acf8-67872f7b3e48@lunn.ch>
References: <20261119231319.1256419-1-bage@debian.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3021753"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Cs5+fnBKYgNsFfX7mpxTnFfQp1w= sha256:dPjiBEFVPnNv8dgClkXGLcpcpSLlMCm0BM4s2xbL+QE=
	sha1:DY2xTbiZVudrSOYJ5UZp8ZhcKrQ= sha256:5AYh9q9MoOPCGQ5v0hT9bSSOT9VlYqQ7/CY4defRQbE=
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 50D4011583E; Fri, 20 Nov 2026 03:34:17 +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 BZRcq8Wmr4J2;
	Fri, 20 Nov 2026 03:34:09 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-367489-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 AD84D1157A5; Fri, 20 Nov 2026 03:34:00 +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 5BE12108828; Fri, 20 Nov 2026 00:33:54 +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=1795134824;
	b=uJAilb2qwyc08ZN7NBQM6+eDflJsD0E/bgLbodoKid4iooDiF3hV4wB3xS1fPviA+SUS
	 NITDwH49Q0GJMAAChmDnKUQjr5x9hi2imxaLSDticJWrLvccZId30ADZzM23oKi9aHlC5
	 KyvYeo8oEEjUC5buM5MMaYsRZKwcwCxS5jryn8vzv5My5fJhg3mlHmvlXy2aETVSNbXeh
	 p2P8jvUNVbF8ldXLlWUf67TgZ+KQe5xTcdwdcFWnVkck1JPWIrp5aMtxkXF5RF80kGXBv
	 M3sEMAQwZQC4+jCJpjfJkVXJG8aTz0gTDLor4UhQUf55sVD5uAfpHdyQzTgDJ3sSraQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795134824;
	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=mSl/c/kHf5zuY8pdtj2+wYd0RoijkekTtzlrrbwzeoc=;
	b=Zq2ThIGGWZ5UMAhGVOlhO1qh1Qjv/egVUVifHaMAwN3V1BeCAuggTfPDp9nJGjp1QRhm
	 /rZo+ovM3UqRkyJ7oE3am/8G9wgdxC+7umUOzWeSL6lOlHHMi18tgwwgkZq/W1wErmXOy
	 j3RsFnacNF4vy1Jk27krmdRpq6JxXptUDrG0lV9vrn2f5v3wMpQ8uhcX3i2QkMrSbSGLE
	 vBSl6cWVO/jjodHGmZb8aQFQCjczED9TBxNhYgtp1mADk3zMjl3CpjI9fXmlvAXYLErUY
	 JYdYOUv55FhVkdgEzr1de5Gy7h3pXTwhbHrsKQGkx1oUYu6/0S1PgRUvY8gC+hjFgrQ==
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=N4ROEuDt;
	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 D4EE0606A331;
	Fri, 20 Nov 2026 00:33:44 +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=N4ROEuDt
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=1795134819;
	b=KmKAjuQDh+nQ48X1VVGbuCeTQz9zcmF+AtHSupEqg8u27foS4H0Yqb9dnY4pGeFKrKUF
	 g2dmXiJ2gAIed0JNO1TqGOrRZMRByZLQi+/1EdN6Lz8hKkj7zX/2oSw6JRJAY/OPnMrZp
	 Cw3ri5y/uENaaapcPxw43zBiFmd2NTYp4tWk/5YOnpbmpV49apzSWC0W3tuiYaRg9Y6mo
	 bM678GazmEUysRbON8nkJp+VtbtImFCjkn1IPMckbkfs0HVbME38EquZz3vFC9ZZ4X0NF
	 sThhdedewOdG3Ip0dJygvggKn+ehh6vb2aasCLZpaKpxE53k6OGjatn/5RGy0f7hD4g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795134819;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=mSl/c/kHf5zuY8pdtj2+wYd0RoijkekTtzlrrbwzeoc=;
	b=MK7hpeL7htcv8N+2V9hB4vxT5TCH6Ej55cG2cnb58Yu6JJIHB3SXEx3XhsnYQurie7jB
	 O2nes01HvfrfbGxvSgMM5AqJiDPdfzgx5mVt2mZMdlfG/54gUOacPfMj/MI2MB9BCOMRU
	 O0McbL2vlicYSWfqPmL6UYnRmfWHIZbQFVgMywhPt2QODpiMAz2BvcIXeWPQ/adJdgVvH
	 RRoYqdFS7GwTu7+d9NENuPdLq8yrk89V2vJNpFXQl1jgZjXiP9dh/nvRXShpd0zR0vgcA
	 sITberzPac/DEsONEUN7AS/qWhDZ2vHH9dQw2IUlUr6ve7ZqVV2aGdLdCjwh946DT+g==
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=N4ROEuDt;
	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 7D1E1606A325;
	Fri, 20 Nov 2026 00:33:38 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7D1E1606A325
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=mSl/c/kHf5zuY8pdtj2+wYd0RoijkekTtzlrrbwzeoc=; b=N4ROEuDtvCtMSaSXYnxRwqjD4j
	hyZojSrbTM7aUYrEzfFUGyzavOtLFcLjSbRONorQ+LT0kVcFR6svT2aA/Yk55YAr8OGTm1cQ41Zab
	i/hBrwVnQ5CIeo+LbkhqK2gkElzIzdJnxi+whxvIqlXTcFmUSyfmNhLzYBTbfTUxodGg=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xUCZ7-000AH8-Fw; Fri, 20 Nov 2026 01:33:21 +0100
X-Cc: Heiner Kallweit <hkallweit1@gmail.com>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Russell King <linux@armlinux.org.uk>, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, Vladimir Oltean <olteanv@gmail.com>
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: <20261119231319.1256419-1-bage@debian.org>