Article View: linux.kernel.netdev
Article #20193Re: [PATCH net-next v2] net: mdio: handle broken-turn-around for non-PHY MDIO devices
From: Bastian Germann
Date: Sat, 21 Nov 2026 19:07
Date: Sat, 21 Nov 2026 19:07
20 lines
9386 bytes
9386 bytes
Hi Andrew, On 11/21/26 18:06, Andrew Lunn wrote: >> Parse the property in of_mdiobus_register_phy() and >> of_mdiobus_register_device() instead, so it is handled in one place for >> both PHYs and other MDIO devices, and drop it from >> fwnode_mdiobus_phy_device_register(). > This seems odd. "handled in one place", yet you do it in two? > > Is there a reason not to do it in __of_mdiobus_parse_phys() ? Yes. My v2 draft was exactly that (which is the reason for the commit message oddity) but I noticed that children with empty reg that are handled in the auto-scan loop would then not get the bit mask set, which is an unnecessary behavior change for PHYs. I will send a v3 with your proposal. I am happy with either of them. Thanks, Bastian
Technical Details
Message-ID:
<ee0baf58-5795-424b-9a41-feb9a2e766fe@debian.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368412-linux-kernel-netdev=dewy.ruReferences:
<20261121092933.186731-1-bage@debian.org> <40db2715-55cd-46cd-a2fb-8ee11b571911@lunn.ch>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368412-linux-kernel-netdev=dewy.ru From: bage@debian.org (Bastian Germann) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2] net: mdio: handle broken-turn-around for non-PHY MDIO devices Date: Sat, 21 Nov 2026 20:07:34 +0100 Organization: Usenet Network Message-ID: <ee0baf58-5795-424b-9a41-feb9a2e766fe@debian.org> References: <20261121092933.186731-1-bage@debian.org> <40db2715-55cd-46cd-a2fb-8ee11b571911@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="3471422"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Wnaw3iQvs9VhGUEnvtiEUMSQ+mg= sha256:33/1FpKmXAUauUtpiHGeWbxXYI/z7LoVC5MXq4lzb9U= sha1:riLgDJekw0XmWbL8WCrH5Xpy69s= sha256:xplpBe5eMe+jzF8hzE8LEgncKELdedyugToTqpSaqYk= 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 6C6F6115BBD; Sat, 21 Nov 2026 22:08:19 +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 GOzVSh3uzx3U; Sat, 21 Nov 2026 22:08:16 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-368412-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 BB161115B7A; Sat, 21 Nov 2026 22:08:05 +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 93984327D4; Sat, 21 Nov 2026 19:08:00 +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=1795288077; b=2Kej6T8n8KBQAfAlAk254r1vy7gGizvtsSmTp09o1Y+Z0hfgifPND39QFzOkY93AqXYN k7nzhf6gGlfcWzdXZgL7EOWhS86qLuY6itEO+pb365PDDkaawdrdYIzYZ29Qf1cGTh622 zvV8uXQDSoWci+imKv/FZx3BUsUB0lFC57A4qZKtVdYqda/zcSxg4q3y1w/Rn9lpdrL/3 +Kr90b/YpVvvBgsmWbWOyCJCvJnCuMnG5jIN2c9Gnm04UFVFd2ZQH2Lm9C54sYYFw3yYL bEILD4N1S3rnfZKE6FLrMdJSQjFecYVydYyBL0F5lWVJ5bbtmSwq3/s4QO1O4sOg2nQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795288077; 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=b08kfVCyZr2O+Mrdk0jPuzjAf5VkhdToQCa4SdwDN1s=; b=xnPAPW51kwYQMyxDF/MbXWFAnhUeHpiTzOeySMAuKn0L+EPDtiskosVoDf23oD3Cl8LU m+IiIWpdfhYq3UVU1/gApBWLbGgU9lSXgwjfgXZLMLbM22QNwwENdYoJbsXjp9uqAXrWy jTtd84yysEPW+vjLasAnk5FO5eLcslO4lcyPH0FWA5JKU+F4YAxaQ8aAK6fBEay4qoR4W gmvbBNi42JfnSuQv9LEvwFY6eYeI6MFFneOUtsBW6goQGM8tnpRzfRnzpw4umoWrrPeKf PnGMg0/9h/g0E+W7SGM1PFX8/q5qVD+VB4ad1DmXOlKJwbBtkHE0pBTGlyN2LlykRtQ== 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=uVpsKodr; 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 7CD5C606A338; Sat, 21 Nov 2026 19:07:57 +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=uVpsKodr 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=1795288076; b=MYqMKVVVUcGzxA7UhH8D6/KkEKdyNlUQKOmlGfIvRyAnELsiaVPIpWxsR0cXwO05Jxse oWp9kJntQPWNpcCRqEfAdKj9AIR1r9PEDDBDtfQKyquTpU/QqNPtRKe08iPODFsfxGTn5 /gEjh3pT+A6Y440STBMU89Tn5KlmZOZVtIJ+N+nuJOtu3qy7uT2OtNFMu89dplvHeBUsu XOsgRsZhRCyTMBEAzOK7wxCwCZ3Nvd96VZXU9XyGSrTmSgdcH9F7CQRMlU+dhhyx6Dv1b 6SqQUQU/5z1O3V7QBaJzSrOdeS7ODXktrkT5sOEqYGmG/dzgCQ7K+XgRGj81bqinRGQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795288076; 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=b08kfVCyZr2O+Mrdk0jPuzjAf5VkhdToQCa4SdwDN1s=; b=2lWldEE37u0Ckd5eFdSvd/oFyshkhQ8uk2ALG0d/+/xPCT5CHkIhyhc5O4mubeyJtRM1 W6gayvCc0CGr0k63m3YtXvZPVeGapgMQP/YZRfrxi42cR5pVJYs8PjihLBQ+uH2sCHbe+ 23o88Cs8slEPtR8sQF+rQbnjz5aD8L56pY66Aor63lMdUUFMKaeu8smKwvUX6j8PjaLo1 nX5M87Wv8YtBWasdjaqeFid6lERy2IQTQdaQpstvnNl4kdV6Sd4HWl8rZZstUqNUzagVM NfgAfYuqo9Ge8RLGPSTDE801q/+zCrv8YCoI2vnRhjcwzbGbWWqKCYtfu4ZIZMnVpHg== 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=uVpsKodr; 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 0BF32606A320; Sat, 21 Nov 2026 19:07:55 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0BF32606A320 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=b08kfVCyZr2O+Mrdk0jPuzjAf5VkhdToQCa4SdwDN1s=; b=uVpsKodr/9E9dl8xS2rJciStvY CZQE1B/FRs7nrHedZ3pFyrInAb9YGZuydRlzNXUOGJ+5zJDhEDgFVNl2cBYQPNORMpsOw7DsiGXLB ZGT+nFScQL+U/oeFBSy2i6IyEZ+7ojKzxVAJyVL8qSYXmbK7XQO1TVV26wKg+Msn/IVS0EznVZUKB V9fexNqLu1G3T/HOcx7CvLbCrpeOuaEX3uDChv3uOHRE6D9bK53eBA927JhL76WL/bfmEit0t5MOn Bqul8FoC0E+elnJuFEboWeLUxEy3geLK1rcclMaNchaOGFSJpXAvMpmUvdZpBUi/mjlyVIXpc5e40 tmMPIUsQ==; 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 1xUqQy-003rtM-0x; Sat, 21 Nov 2026 19:07:36 +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: 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-In-Reply-To: <40db2715-55cd-46cd-a2fb-8ee11b571911@lunn.ch> X-Debian-User: bage