🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19992

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

#19992
From: Andrew Lunn
Date: Fri, 20 Nov 2026 22:07
29 lines
9549 bytes
On Fri, Nov 20, 2026 at 10:40:55PM +0100, Bastian Germann wrote:
> On 11/20/26 01:33, Andrew Lunn wrote:
> > 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?
> 
> It is with mv88e6085.
> 
> I have just found that Nathan Rossi sent basically the same patch as
> <20210217044443.1246392-1-nathan@nathanrossi.com>.

[Goes and find the thread]

Are you bit banging as well? Or do you have another MDIO bus
controller?

The point about the mv88e6085 using multiple addresses is valid. How
do you have the mv88e6085 configured?

   Andrew
Technical Details
Message-ID: <bb2edd63-c727-4b91-869a-2b26c0d7521f@lunn.ch>
Path: mbox-mo1.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-368180-linux-kernel-netdev=dewy.ru
References: <20261119231319.1256419-1-bage@debian.org> <19d8bfb6-074e-4344-acf8-67872f7b3e48@lunn.ch> <3dae9a75-52cd-4999-9ed9-b51d87488511@debian.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.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-368180-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 23:07:30 +0100
Organization: Usenet Network
Message-ID: <bb2edd63-c727-4b91-869a-2b26c0d7521f@lunn.ch>
References: <20261119231319.1256419-1-bage@debian.org>
 <19d8bfb6-074e-4344-acf8-67872f7b3e48@lunn.ch>
 <3dae9a75-52cd-4999-9ed9-b51d87488511@debian.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3276306"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:qc1F7yjCUcSNt5nrgLOc8sJuSiE= sha256:H35xdFk56HJc1+JU3+H1L0r/GcjlPcAntojJO/5HVZQ=
	sha1:2tZuWByGshL8nZIuYnH9bMLqGag= sha256:3Pqo1gtWS33BImFLthaBEI2pWDSC7wPauBk5qpUUXoQ=
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 C1598115A83; Sat, 21 Nov 2026 01:08:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 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, URIBL_BLOCKED=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 ou0wGDdVpnzP;
	Sat, 21 Nov 2026 01:08:09 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368180-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 8B3B2115A55; Sat, 21 Nov 2026 01:07:58 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id A67A2A2639; Fri, 20 Nov 2026 22:07:55 +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=1795212475;
	b=SipQPw4TW8lSAd+AmktYoheJvyiYtgymuBLEBBwX6HBsIg6purGS/9nFNSaSg2H+mJdL
	 9mmnoJ4163Pd69mzsIlNUxerzEnxqx5XIqQ6fCRCdSCcw2TgAXHjJbBiIEK3zHC7MtrLR
	 bmbqSbeOkJNJW0ugA63x4IX19FWpBHoJdVTliaEZiPU+sKQ/H2e4auP4DP5/DudIjVXLw
	 ObQZ8eFfamZcaCsFC3KuTnIR0bevfzItbAhysH4PZ0nr/kB5h9LFbxwUuu4vdc7WzFfuQ
	 v2UCEJbKon7MZ1prfJyTty/v5e2iG55/UAj2854zqcNWBmZXiC+c24PY5M6liU008Sg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795212475;
	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=f4QmiUDZ4gx7yE4qy8MJEX6RsGlkm8gKrF4n69bocpk=;
	b=symf9+ftM32mn5V/lQH2DwIQoeccH5745SW1vaqzfsK4gbrewDRm0qp2kvHl9ysctxnz
	 JVnvKfiWLUSysm8e7qaVLfPOYxF2apKKHkmcULB0K4nMU/Bt/is27AdYJ29t4oxNgEQVG
	 32OTEOukS9rOQixKJjSzNWE6T+jC2v7kUxxJfh2B2t/+7rsycmB48w6JfVNSNsLW0fbHh
	 6ycL+vPl3kvUrD+SUPwMv00rnjCd6D14qdtYOWieCE706VqgUwkTs5UnZSXLqEz9HVUiB
	 q7YYgrBnqE/9jHV0j2I+5EQFdsf7Ee2SK/2tqHoRToYsEJizvSYE1B9aFQNBmCg4cDw==
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=uXuiJMgE;
	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 74A5F606A68F;
	Fri, 20 Nov 2026 22:07:55 +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=uXuiJMgE
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=1795212469;
	b=rDQou0sxxWNxkef7x12ZwgJ1nP5tEwP+gbiojUsWzDCfTBS9sLBYVTjT/AAPOtwUnHkE
	 JIGKe3+dOEZxctVUw/UGk5Xffl8Y+u9sQBRBs7QrN8rB6e4kL0+KtronsQgV1mJzrn70U
	 JFA/H7YofTisv7Wk0+VpHpS31OdoVHW9IFG6218xrO/trPg9AENM9tAhJhEhS7uRlRMbg
	 GhJb9viFjNGAteP3z2SfPpuLFrStxxbol0NiIWF/JaRWk5TS3Om/RT2JCT/ELhS9M8OKu
	 G/9J+7XevQ4vNCiqZ/zZSZtavkbfc1/SBxRyTGqwaHVRZe2hMpwoGWXYvu8ZkwuVLhg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795212469;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=f4QmiUDZ4gx7yE4qy8MJEX6RsGlkm8gKrF4n69bocpk=;
	b=2L1kF8h/nXputH81nkb0I5cVouM2AqZa3LeU4fMFHvuuvgBUdnpDPFiAStzRPbL8KBoC
	 UCKKwpI5E7OsX0xeqpvpR2Mg9I8Y2+TESpQPyEP/Qbb5Q+uhi/PYYRkV1oibTYTad/Q9U
	 wWCY/KDvbsUxa4JWRJ2UUwnyDCg14kN+PNiEz7zLR1UcfgJ7SpJwDeEwJejASuY+tQkzk
	 RqRIDEtL1GhWxN1TLYxeswEnfWfMxTptUjj10IXc1jkwOb19l/GbcHPo5h5SXQDo4E9Z/
	 I7RqpcZH8jsMSPOC++XsrDMWOAROP6tGRNG8Un41ZwX40VbP9gFf1QK5kQHzklXFJlQ==
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=uXuiJMgE;
	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 7AD45606A339;
	Fri, 20 Nov 2026 22:07:48 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7AD45606A339
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=f4QmiUDZ4gx7yE4qy8MJEX6RsGlkm8gKrF4n69bocpk=; b=uXuiJMgEfLJYDLoHXXzpu/YWwn
	XsRznvpKS8qZsraSH4YXzz7wZ19KvMWC0JOL4d1tKiqoXdGqYey0DZqlcUSmvHDwhOHZd6H6KiCxv
	MSRTrU4/D5DLaNtazXoJW5zyuu7voWAZBb+dh1XKXpljA1dZF/uJDf5dWrP4CeHe126Q=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xUWlW-000Nl0-Qj; Fri, 20 Nov 2026 23:07:30 +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: <3dae9a75-52cd-4999-9ed9-b51d87488511@debian.org>