Article View: linux.kernel.netdev
Article #20003Re: [PATCH net-next] net: mdio: handle broken-turn-around for non-PHY MDIO devices
From: Bastian Germann
Date: Fri, 20 Nov 2026 22:44
Date: Fri, 20 Nov 2026 22:44
34 lines
10380 bytes
10380 bytes
On 11/20/26 23:07, Andrew Lunn wrote: > 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? It is with the TI CPSW3G MDIO controller (ti,davinci_mdio, ti,cpsw-mdio). As this is on a AM64x, errata i2329 applies and davinci_mdio runs with bitbanging. The mv88e6085 (88E6341) is configured in multi-chip/indirect mode at Β reg = <1>. It does not use multiple addresses.
Technical Details
Message-ID:
<b41df4eb-855a-44eb-94a0-663945c11ac8@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-368192-linux-kernel-netdev=dewy.ruReferences:
<20261119231319.1256419-1-bage@debian.org> <19d8bfb6-074e-4344-acf8-67872f7b3e48@lunn.ch> <3dae9a75-52cd-4999-9ed9-b51d87488511@debian.org> <bb2edd63-c727-4b91-869a-2b26c0d7521f@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-368192-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 23:44:16 +0100 Organization: Usenet Network Message-ID: <b41df4eb-855a-44eb-94a0-663945c11ac8@debian.org> References: <20261119231319.1256419-1-bage@debian.org> <19d8bfb6-074e-4344-acf8-67872f7b3e48@lunn.ch> <3dae9a75-52cd-4999-9ed9-b51d87488511@debian.org> <bb2edd63-c727-4b91-869a-2b26c0d7521f@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3283876"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:1qn9WD49/1nXtPC04GP2xxsIJ5A= sha256:F/yUt82LQ92DAztkOfiaA0CrFAnrhV/6MIQTmZ/cPMM= sha1:JKrOsk6s+9jUrsJoQkzprbL4Ig8= sha256:wl14kyBWBU+qVWSlksFJjwKQjNq8v6NEa9UOV4zfx38= 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 F1564115AB6; Sat, 21 Nov 2026 01:44:46 +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 iFHHXg5uEAIK; Sat, 21 Nov 2026 01:44:44 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-368192-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 A107B115A43; Sat, 21 Nov 2026 01:44:35 +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 0138A3CBD9; Fri, 20 Nov 2026 22:44:34 +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=1795214671; b=y6eI72LDDKfV8DTnbGZEpEG13U1F6JwRBXi07EwyCnHSSh5Kw/pzM1+yzw4RYw5M3+7T mOaCkqKqD4h4jSe59e0WyraCrDM1EL2SbGsRwdheOe6/RlYzz/qZaDmllEG/oYRayhh8G x1WyMJcjOwEsIWWYOZIJ1otU2alKtF57xIZI8J0uXMVvHduP4SiFUh8bD+H+WBmlPTc4l xOyBvlpirsnW/0xEXYVGq53D4khVXSnksxL0ueUhOOFDWijzpnMoz8cr6PvfEYPf0Hl12 fTXrV2a0svwH3ngHH4WBPDp9oezNN00rB9zXz3hfIqsuqXsWT5w+rzOLKU+7OlVV2Fw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795214671; 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=InAjMD74eqipW9lRsPsCI4Ai3lEa52iW7ZUScUMh4Xs=; b=Y3utcoP0L/SEjBQMFTFaNhQwCRL8DCnIZouUUDpS8l9ZinqXTbYDs2gwQPjdwyAj6NmK DCrIBs4soO0NjHSB0ssLSDcNlYOt9j8UpKDlV/3lkgKtkqqZYQHQrxsjp794mVb9aXuWk 9PyyLeK2g4usZYoQMdYIPeqLIXa59/E8MOItWksSMTHUNGDfc1ekrOPMjQ/dihGnE/EJS V1bDuDhPCK2pZ2wd3NQoHn9hveaPUpkrpuy18Fu/BTWsg37TFuJJ/ixUrS8R6VRU5saVY k8uAR2/6pw7nwruu/k7g73UBgCPb+2GoGAnCgwxCz2uT0quR41wOKoR2LhjMUmqlBGg== 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=mKKTQTOl; 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 AC486606A699; Fri, 20 Nov 2026 22:44:31 +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=mKKTQTOl 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=1795214670; b=kHhMjDpdR+pPMGGIrOvY5JXquhGCUwXAieeGXBxInGv2vBQTyDmsdXZ2A+2tl2ogldKh oJcl0Esvv6Qh5/Ok8zLF1UD3PDtG+vv/YItzqlKEKDW248G8JBJu5IwhtT3q0zj1uX+N2 BT+sJdMCP71gcauiel9LUvcVAtQvBbqffV5Z5VaSculLrPWYbIj34JzrUOQvEUzfhclBb Ax5Z/uf71LUWMytzx7O0YlRKNtfxZ3mDn6N/c2fwzuxqaQw3hMX0zZdUF42ZZbUzzPAr1 Ze6PWc7qs1mjkni2wBA8Iu8a6Tfcno7I3jIWuIWBuvje3Uz5X1fsPFFMQ2yzjaP/h1A== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795214670; 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=InAjMD74eqipW9lRsPsCI4Ai3lEa52iW7ZUScUMh4Xs=; b=ta/aKaRwnpIc/we1SObKk9ZISLSsIt/70FsNI10dZ1fw60s/IlBY1PyqNjBPN9yVUbYs WVb6bVKu2mfxmrQXbTlQnP2UYQks21w23nthJ/X4q4mB6s30oI+Wzf5VDy8nXH9Bp/H6W /hlvUUgnjqwp/Z7JWrgBp3GGGXTtuw4aLH/lQZqDUEjtbEG5LqvKyzPGU2io7SUkOKGDH hNiw29UuQThpTHU9/6QV2HPDC0sQqOsXyWXw4B9H28v+nbIPJ9g0k3RrGtnmNgi8Q+lU8 UScQcTJPErTAZfGLiTdk8GJVcCdyacPG3WNsScobOUOJLXtI+FbFWV+g3TCcC1WQwxQ== 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=mKKTQTOl; 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 4288F606A68C; Fri, 20 Nov 2026 22:44:30 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4288F606A68C 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=InAjMD74eqipW9lRsPsCI4Ai3lEa52iW7ZUScUMh4Xs=; b=mKKTQTOlQCONVf+xcZiJA/5+v6 /gWpjMTXY81UM5uPzbRoFjZGlsCYwXmoX0EbgwFeHcRdVdFZ9KwDBiia/uiXqqBjVTa1T+LBRJbZa CY/4VcwtveScTi+pSLsJOQNG+FnfMXvcaUvhG7zPSYxXAAmliF/wke86YJQcNBz8VN+lm62EJXFSU 3Dyh3bDojacuQ/89s26+9uoCJTNbkp2q5nlMPOX9vDqs9tqCmlcTpvBDgTt3mNYCy6NPBkoxoVJAa YkXqGBDCBtwPLISZH5YKsV1/kvYCAgl9ekaaTbHYINa5RIhKqLgJ8nWxLBkFgh2b8R8lXQvaEIrPb CdkLOk8Q==; 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 1xUXL7-003CmQ-2h; Fri, 20 Nov 2026 22:44:18 +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: <bb2edd63-c727-4b91-869a-2b26c0d7521f@lunn.ch> X-Debian-User: bage