Article View: linux.kernel.netdev
Article #22572Re: [PATCH net-next v2] net: mdio: handle broken-turn-around for non-PHY MDIO devices
From: Andrew Lunn
Date: Wed, 25 Nov 2026 14:38
Date: Wed, 25 Nov 2026 14:38
38 lines
9507 bytes
9507 bytes
> [Severity: Medium]
> With the parse removed here, what happens to PHYs registered through the
> exported of_mdiobus_phy_device_register()?
>
> drivers/net/mdio/of_mdio.c:of_mdiobus_phy_device_register() {
> return fwnode_mdiobus_phy_device_register(mdio, phy,
> of_fwnode_handle(child),
> addr);
> }
>
> This wrapper never goes through of_mdiobus_register_phy(), so it never
> reaches the new parse.
>
> Its in-tree caller, tja1102_p1_register() in drivers/net/phy/nxp-tja11xx.c,
> registers the port 1 PHY from a DT child node:
>
> ret = of_mdiobus_phy_device_register(bus, phy, child, addr);
>
> and does not set phy_ignore_ta_mask itself.
It feels like we are putting in too much effort for a feature which
has no in kernel users.
You solution is not 100% correct, it has some corner cases, but i'm
happy with the basic architecture of doing it once at a higher
level. If a new user comes along and lands in one of those corners,
let leave it to them to fix.
> [Severity: Medium]
> The bit is now set before fwnode_mdiobus_register_phy()->get_phy_device()
> checks whether anything answers at addr. Is it intended that nothing clears
> it when registration fails?
If the device comes to life later, it still has broken turn around, so
this is not a problem.
Andrew
Technical Details
Message-ID:
<630d6b8e-917c-4213-b3b8-fa785ad33816@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371413-linux-kernel-netdev=dewy.ruReferences:
<20261121092933.186731-1-bage@debian.org> <179559958516.3135.11607042178143215952@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371413-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: Wed, 25 Nov 2026 15:38:18 +0100 Organization: Usenet Network Message-ID: <630d6b8e-917c-4213-b3b8-fa785ad33816@lunn.ch> References: <20261121092933.186731-1-bage@debian.org> <179559958516.3135.11607042178143215952@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="230495"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:55jkf5bIGfRN3sUXxjU7GXidRpM= sha256:z18/tSZEICYXQsQRmme0lcLh/6e2BjN6yhWjw+vR3Zk= sha1:Bl0K69BvM3bWT+aPLaZs8ap1ILM= sha256:5/kJS5pmYMdzpUYOXaK4hsYP6DkoTsQe/yUFodK6fQo= 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 06A42125E6E; Wed, 25 Nov 2026 17:38:59 +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 NOmrTJlM4C1j; Wed, 25 Nov 2026 17:38:56 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-371413-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 67F60125E69; Wed, 25 Nov 2026 17:38:47 +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 4E71C39BE2; Wed, 25 Nov 2026 14:38:38 +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=1795617518; b=YUImpcPMZtVouCGEKn/kjbi+ALcl9c3TUW2J59z0M4Awa8SDwjz9FnNGVey9G8ZvK9IC 71ezNA4LkWXpEMW/DJCl+3dYFJPrFeOIDKxxv7MYiT0uj7pB9BF+8FHREnHVvVPv+SWba 6M9uHnORl/QJxnEvpOkUU9HkgS8qvNyCA+2/+ojTu4sXtgTW6DRJt9ku5AMttRJ/o2XV9 eTmphh1uaIAOcX/XigB3DzW3lBKS1rF/anwPQSUSMB7kx63Vzl5F5uNjEQcHCpr5iUTKI b7MzU1LTmU3r0prZbIU897LuM6OJd04TqcvqYJJULZ94ooza+gY1jTgd7yfs8W1929Q== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795617518; 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=fGqs6DcowK7IKELkXO0xayWMouuFNPphuLHx5fvxESQ=; b=CvF7sBchyr6QjknmoCqB4fZEonwZYWJxuZnBzzisRLe6g0Q4DTQnswvJRw95qpvO/gFB +nbSQtqHZ2RtCS1iAcN2anJDThNfBfQxE5blKJbpCtD310M/EQiFtG5JCMYzEIgP6EcJJ IHkiIrYi9sakoa0qs34DqKTEfF9n8Th75LCH0gk5F4b6twCtpXf7euMre6FxOQlIkXxDL tWnqIcOwBb7W8ZS/pJpzyjHjeRkwx7jk4w8wArrgjlhvzKlFzBGCbKf0kkiF6ZP1tkzwf GYRiCqZfINAztTrbEmiD6FBXchORssAocduXfCIPWsE3C1bU2qzdBzAhrSVX6uiOScg== 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=VFdECZ89; 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 116CF606A33B; Wed, 25 Nov 2026 14:38:38 +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=VFdECZ89 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=1795617512; b=Ut1NZl4TSkAFNQKZcfHLpv8fCXRpiUSePMgWiFqezzKuTBrki9kOwdXEC/KHP8BZvoCe tnMi+orAJyDtUXADHCUdjH2nRdUtOQcwFi6SzzRnYXasOP+UVI2Tt8LM8I5taAUoKoOO6 pGBhsTpyI0vAux0zJ2S6ESVEAyWGk6ymF958iabNrlqeFgZ+lD7B4e48laOn+wz+c9/+5 b/YkUiokOhdokrWj0/s79mnfPylGr7qGPxIQz4UqqsDe4JP7r3cy5Xw4PfMp6lf0KsS67 m8Z7ZO3L/Awcqn8z/rWk8eHwwbjItDBgCzXJvSZWNyj5D7wkljXlGYwfuBqcU2hfEzg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795617512; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=fGqs6DcowK7IKELkXO0xayWMouuFNPphuLHx5fvxESQ=; b=4ClVz8S03W/BGrjNkaQj+c8egoFYoNwqgCWR9aca3UoXDa3oKFidV4bBGjfCUWVp+tDU nmL+wrNQwOAXKhKNlCyROxADFBDOMXKqWC5VLLzF69lnslOFy0SQ1D+aD1wNFWKg/uFmm SZjL65zPMm97hVnFPRymND7xuGq3w2GQ3toC0u9Qz2v3ltP9P1hVUb28ZB+K2QwogDMAb 5rbyS6kWEUydvWcBYMO1/5WodBnDT4iDkUWA97VG85xJp7yxYMLkohOMzRvizMnGcWTEr aHzZpWerLbw8It9BBOenx9sNhu4INJuYDdMO8F7Ox+47F1B9e+TdWWP9HtpjSdBIxEw== 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=VFdECZ89; 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 E35B7606A32C; Wed, 25 Nov 2026 14:38:31 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E35B7606A32C 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=fGqs6DcowK7IKELkXO0xayWMouuFNPphuLHx5fvxESQ=; b=VFdECZ89cA0wOPVai4rKvdeZMH huumJAyMPj04D0JrdIBzMDD377FHoM+MvRMPgp71oziXnP5HdhOGtgj1U9EohQ7wd1R11H2yHe4A+ EUnZiTQdpqeM0ZaqWu0fdjw1tQV24x3lZ8URtrUxfRAW+w4rFM0pdH7tindq8nIh8FTw=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xWE8Y-001KyU-HX; Wed, 25 Nov 2026 15:38:18 +0100 X-Cc: bage@debian.org, 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: <179559958516.3135.11607042178143215952@kernel.org>