Article View: linux.kernel.netdev
Article #17753Re: [PATCH net-next 3/3] net: mdio: mdio-bcm-unimac: Add Clause 45 support
From: Nicolai Buchwitz
Date: Tue, 17 Nov 2026 09:32
Date: Tue, 17 Nov 2026 09:32
35 lines
9988 bytes
9988 bytes
Hi Florian On 16.11.2026 19:54, Florian Fainelli wrote: > [...] >>> @@ -301,6 +390,8 @@ static int unimac_mdio_probe(struct >>> platform_device *pdev) >>> bus->parent = &pdev->dev; >>> bus->read = unimac_mdio_read; >>> bus->write = unimac_mdio_write; >>> + bus->read_c45 = unimac_mdio_read_c45; >>> + bus->write_c45 = unimac_mdio_write_c45; >> >> AFAIU this breaks GENET without DT (e.g. Pi 4 with ACPI). Arguably an >> edge case, >> but last time I tried it worked at least. With your changes all >> addresses get >> a C45 scan there for which the empty ones return -EIO. >> get_phy_c45_ids() passes >> that up instead of mapping it to -ENODEV like the C22 path. >> >> A cheap fix would be to do the same mapping in get_phy_c45_ids() as we >> have for C22. > > OK, are we the only platform where that is happening? Alignment would > make sense, and I don't assume we will be breaking someone's use case > AFAICT. The only other I could find ois orion_mdio_xsmi_read_c45 (marvell/mvmdio.c) Regards Nicolai
Technical Details
Message-ID:
<1a2bd644b2430c88976baa29043d9c4f@tipi-net.de>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365121-linux-kernel-netdev=dewy.ruReferences:
<20261113211554.2058181-1-florian.fainelli@broadcom.com> <20261113211554.2058181-4-florian.fainelli@broadcom.com> <7cb0d621e794378956b737530ebade24@tipi-net.de> <3996fa8c-3346-40ff-8fa0-afa70262028b@broadcom.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365121-linux-kernel-netdev=dewy.ru From: nb@tipi-net.de (Nicolai Buchwitz) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 3/3] net: mdio: mdio-bcm-unimac: Add Clause 45 support Date: Tue, 17 Nov 2026 10:32:02 +0100 Organization: Usenet Network Message-ID: <1a2bd644b2430c88976baa29043d9c4f@tipi-net.de> References: <20261113211554.2058181-1-florian.fainelli@broadcom.com> <20261113211554.2058181-4-florian.fainelli@broadcom.com> <7cb0d621e794378956b737530ebade24@tipi-net.de> <3996fa8c-3346-40ff-8fa0-afa70262028b@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2292672"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:eNTLmRI6oqLFUTdBBVW+lV7rDsA= sha256:dxJBixBF/7d+WN2hVKqAeSXQWLR6/dwz+DrgyNXvm2Y= sha1:xGFTb27i4Co0KKpTzRjlwXkRer0= sha256:nMxSzgenySh+vQwMYL5ZywV3tc9aAxj6IIM4AZaJaLw= 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 BA8F9114ED5; Tue, 17 Nov 2026 12:32:27 +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 (2048-bit key) header.d=tipi-net.de 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 JGy81zUOZ-Ty; Tue, 17 Nov 2026 12:32:24 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-365121-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 49884114ED1; Tue, 17 Nov 2026 12:32:16 +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 B88632F02D; Tue, 17 Nov 2026 09:32: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=1794907933; b=mmf9pkEqriOYlazG4aHHC8El5ajeIDrN58jjqbKWfS0ZlU+iHS2ifiOjOycxtXSbfb9T hF7ywc6QuN+gfOcBgvCu0ZyobwcpvoOfmsosl14M1g9sKAo+OAAC0t8NIbhU75f4cLbgd wHytlXtG6JetQ0kzQgJ4REqp+jd8a+1TH4SdjmVSyiczgan3fIM4Wx/K9VKtFrfoQmdqh zfrML2edVqy92rWO4Y3tqAByB6uQrQZT6s9NiQyRtG/ygK9o99CIbS8R1vBS7AKBjV3gs eZBRdls79mn3aFV0LgiA6f3SnIE15i+DyLvoT0nn61K6FI0xv78mYBlH98jgas6q+nQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794907933; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Date:From:To:Cc: Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=05Dto7iUl2Kcv6Db4BnKcvoKyvCaav2FV7Yi0Sie90k=; b=KKHawexbY97pwfgkpSg6Ykf4CHi4hUZGv1HJ6FyCHfz5LsErdjr1pltkIz0TaHXX8g1N AtI9ql9k8q3ykEmGGI/EH2LaeNiAKaluIyHR/RwAPJHIjS2Nli/4K4ThDy8CPTAeihh0M GmQ5KiWCOoH3dmyr4e+ioon665gfwpYVE8qwskaqojPJhXGjvJJ6WBL1YuSZVq4eoep1a w7FQrONPU+RRHYWuJUxh/rtdCLwrLJ6Sd9P0yNbk62dGhe+ElFjegVXjidhrRUNFuyCEO YLY0TApQ+UxmZEZUj3AEKc15cTbTBNV2p6Ockzk3EDuZq8fuf6YMUTi1TPijNXYZt0w== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=f79WN7KI; dmarc=none header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; 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 96601606A31C; Tue, 17 Nov 2026 09:32:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=f79WN7KI X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794907927; b=q8j2FEfHAx16/EZepY3jsD+eqeFTyOPHNWm9VaIKTAeBrSNehL/OSbLDYLJUBU1wD2Q8 z4IsKL2zcYXw7WqipFEbvj9vNYkZ8Pz4UdV2LWMaN+wq6y/BVy+ID3gSDpSr778Sm5Pid TJ4ZgW4hmJU9kz7UTzTeAlAKUl6/HawrE1MMarj9PKyVHHYmXdkP/mXUXQ0IWJvlwUkra 0L2TL8zClY4o/gfXtYT9zOpWbLl6FTuEZ8ItlP49xmFM4cWHQPL9IE9cTbMvGdDosM3Ie oYdbR8Ytm02ymKE9DrpK+I3bWm/sWWfYQdojjl8UR+l5M0U/zyUo0ax2r4g3eKHl9Vw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794907927; h=DMARC-Filter:Received:DKIM-Signature:MIME-Version:Date:From:To:Cc: Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=05Dto7iUl2Kcv6Db4BnKcvoKyvCaav2FV7Yi0Sie90k=; b=fLGBGkxR0MNIclDH4JneT5lQOrYRfSB0URCbyJGCUe7blN7QEJGytXPUY06Qxwyu/+r/ ukdI8tTg48xSWVV3Cnp5C3c+f91AJ0q91nk1uXbZCVIy7OIvv12m7CG01FQPm0cZuPG4p qgrHTnzMTJe+fS4d4bYLIAAk+us4Aq6qMH60XzmQKO9vz2j4W3X7aoOJcFqe+/SLIY2+I 58YinP5/ZvKlGfDVWVj7pZulz+EzPPFW2w+VH9JjInlXtIMAV/cFsinZMR5sbwUST/13C F0o8QmKEWrcuEM/RVP6/AdcN6f06QP3xntJ0ADA69L337zbbmiTT2uyNbdpUiVUJEkQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=f79WN7KI; arc=none smtp.remote-ip=194.13.80.246 X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4786C606A329; Tue, 17 Nov 2026 09:32:07 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4786C606A329 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C351DA03E1; Tue, 17 Nov 2026 10:32:02 +0100 (CET) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1794907924; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=05Dto7iUl2Kcv6Db4BnKcvoKyvCaav2FV7Yi0Sie90k=; b=f79WN7KI6KzNX3KKVQTt2miTDYaOqjvWZB5rEsZdnu3Ykd1ApFURrM+lh2USYwj0QYPPcY GMEZJC+sbI9m7+g5VUBOMfvgNeE7k5AoSa5b3Y6gTWBJGe9r78oBfz4uFtjI+HkalJ05km ZkJBvRyc6KyI5Q17UHsg+Q8dHZK0BbE3FyNLBpRZU/aA/30OfY/Ws6xVi7Bj3naF0NnHfg zQmDpim9SMUgz+qDlj5EXFmB/g+KsYad4mhLYTAwaqryKfmjOw8CvqOcuVNhVwMMRjZrWe zdVlFfgY7LptorEWM/U3nU3F+bg5BmZyViKK/4t9A/CtOZOrA5wFjow56tlHtA== 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-Cc: netdev@vger.kernel.org, Carlos Soto <carlos.soto@broadcom.com>, Justin Chen <justin.chen@broadcom.com>, Doug Berger <opendmb@gmail.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, linux-kernel@vger.kernel.org, Mlody12 mlody12 <kudzo51@gmail.com> X-In-Reply-To: <3996fa8c-3346-40ff-8fa0-afa70262028b@broadcom.com> X-Sender: nb@tipi-net.de X-Last-TLS-Session-Version: TLSv1.3