Article View: linux.kernel.netdev
Article #19978Re: [PATCH net-next] net: mdio: handle broken-turn-around for non-PHY MDIO devices
From: Bastian Germann
Date: Fri, 20 Nov 2026 21:40
Date: Fri, 20 Nov 2026 21:40
24 lines
9829 bytes
9829 bytes
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>. > 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:
<3dae9a75-52cd-4999-9ed9-b51d87488511@debian.org>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-368163-linux-kernel-netdev=dewy.ruReferences:
<20261119231319.1256419-1-bage@debian.org> <19d8bfb6-074e-4344-acf8-67872f7b3e48@lunn.ch>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-368163-linux-kernel-netdev=dewy.ru From: bage@debian.org (Bastian Germann) 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 22:40:55 +0100 Organization: Usenet Network Message-ID: <3dae9a75-52cd-4999-9ed9-b51d87488511@debian.org> References: <20261119231319.1256419-1-bage@debian.org> <19d8bfb6-074e-4344-acf8-67872f7b3e48@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3271423"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:fL9bj6G2r3jLQDoesE5rjjNiV8o= sha256:AbLjRPlNpiSQIZg0hvlk4pZu8gICcd41b/OirjiJiLY= sha1:PpRpX2iGdoGuIxtpXtHT++yoK/s= sha256:XFHwhTIamWoavz1ML1bj391PHJNOFzS8whT2MzlglZ4= Content-Language: en-US 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 1E92C115A92; Sat, 21 Nov 2026 00:41:31 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.052 X-Spam-Status: No, score=-3.052 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 (2048-bit key) header.d=debian.org 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 wsKAGc7uazWX; Sat, 21 Nov 2026 00:41:27 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-368163-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=debian.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id A0F35115A26; Sat, 21 Nov 2026 00:41:18 +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 DC1E940D8F; Fri, 20 Nov 2026 21:41:14 +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=1795210871; b=iX3LWYwZcN2D2BYJDzvWmhBDp0KqNTcXcSQFLv7m0ubWl1R1WhezeoB9lgz2jCb25Fec WoOZmHtd/pV8DRujxekAMYD/wx4lNwav9yDH7rXQmjEg6zgyiG6AnsbT0YPJU4/5P6HUG 7es1jSCF0BBFFT2WHifPc6VBRwDplwVxgN+0+LR73AKXtYmFypA/yRvyzIuJkZOmrmdF/ QTGgoLII8CNXZX6djfe+bKwPD6b2zugLscyUur404Gim5xmaW/390SS2XQIJv+C2kA7Gd gMQG0ANKzBmOW7aWUn9EbvIhOFW4yUETNs9dhacrcFhy3zsR/UZX9Z6E2CMPkj82kHQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795210871; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received: Message-ID:Date:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-Debian-User; bh=NZXQEsjOM4B642/ZpzASwtNwupxC2GG162cV9G+p03o=; b=CxxH6s5JiOU7uob3WGcIdRha0IYkMK89eR3L4uFtZ5znZg/AT77st/WhBEX72DHkr4g/ LbKcVT04BsoqALn/j57q4KfJAPNe12Fu/nbuIXWH4Sg2pyyQlPcbFK4MiiwX8k7+htx2a Z0gUw1kvtVSZx9aA1EuhqFvzzg7ZqnCKFV61KDsj4eryosSrJ9IdwDkOFjMqs+PI1zTqb c+ZBsaV44xzSu50m82Tf98c9H91BjhESNDah9ghxte57W9yosBHh78LOaagrJUrYqCXLU AubExMfPlU/cb3NIdXc+F3Zk0+y7+5URNLwSB24nAFg86n0YSX9Y8zrwqtTzyEApK+g== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=UP4CVf8Y; dmarc=pass header.from=debian.org; spf=pass smtp.mailfrom=debian.org; 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 44550606A6AC; Fri, 20 Nov 2026 21:41:11 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=UP4CVf8Y X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=82.195.75.108 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795210870; b=w16jAVBDgPqzHFfzfDkwzFH+7dR6cEDjwWEJ520Ndozu1dMbPtrhhb1FLV+MWIW0YEHJ sbZXi1pKYB8ZBIG7yHWiTSqli67U+GuEXy5zd4C700sjyNaFKuvR0mZsLU81twuT+XVDo IOHF3l+4D6aKSB4pL5ODfb2zMR8mfulUx5sd4DM9TH57shIGfRs4wVZo3NBd03emHvUR2 iFbm4usKv4+Om+9kvmmD4uF7556nQQ4b6lgvdlw4glQrYGGhFPJGlzrztNcFdhKjG7yFZ 79EYN+fCZPvSgKqHYToVLoSgS313aziNfgBIl7J97YHi9bO0pgJZtBwU73KknsCFQfw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795210870; h=DMARC-Filter:DKIM-Signature:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-Debian-User; bh=NZXQEsjOM4B642/ZpzASwtNwupxC2GG162cV9G+p03o=; b=SGGCCJdO9xDGfFW/P1QZ4KEeaHCqOFQt6Ze+gBtTe8yTM366O1oy/V70Lpo8Fn2M8oa+ AVt96UyOEkue2qF0lOCeYBpnEoCXQn/jsb/Ux7HhSY3WWBZqq+/1Os8ZzFgHZRpHx1sHu fXJDNLbW17sLQ78khitPOxlI3ljGGzoycSUeHO2+DBviyj9QYgt51di8lRhheEONks4HF YzzuzFRiGxQxOHGHCKASsgETd5g9WjDvl6qoHsRpNcr9pgF59rKfqKxxaT7X15ARBBTe+ joNAV3L3zZ7PLgog/Y/Tj0bE/ROdXrTKhlfm3MuXpFTZS4velw/J9ZniXul2WGQkQSg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=debian.org; spf=pass smtp.mailfrom=debian.org; dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=UP4CVf8Y; arc=none smtp.remote-ip=82.195.75.108 X-Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (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 A2DDC606A68D; Fri, 20 Nov 2026 21:41:08 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A2DDC606A68D X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Content-Transfer-Encoding:Content-Type :In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: Reply-To:Content-ID:Content-Description; bh=NZXQEsjOM4B642/ZpzASwtNwupxC2GG162cV9G+p03o=; b=UP4CVf8Y6KwCNEDtivb0OtIv+u lRWvCcDUiCJuZR0fZuuKEsrIgNf4c1W2tBuMOS07adsoO0A7PCgSSFocC3+jzVp0nreCLd15BQS0H d/m5iWVJD+c7CRissT5iETIa9R54FPsu/8dCbQBvuoDG3Yfwn0p504fdR9LeXyeeXEB3wKlSPzMGD Ox2ULoYLSB9JJNj5rbUnXnwBMSnw4tmpUYDDREQOsI8LvkPFah5PAiO/NaKlcT/Ak8it0qKYgkASD 7JFJiSN9mK84+yaMm37MLOxrlaW2opDddy1gbx/T94CwTS/yBXnciXO2bB0Qy5v0dahlG8yVEop5f kR7Gai9A==; X-Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim 4.96) (envelope-from <bage@debian.org>) id 1xUWLp-003AbH-2j; Fri, 20 Nov 2026 21:40:58 +0000 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-User-Agent: Mozilla Thunderbird 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-In-Reply-To: <19d8bfb6-074e-4344-acf8-67872f7b3e48@lunn.ch> X-Debian-User: bage