Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D6A21CD4F3D for ; Wed, 20 May 2026 21:20:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ssZL+Ddf3m5AEcMPR68JklTRk7fvNSzxJQa9YgHESRQ=; b=V1U4+g2ffNW+UT Pp5B8HRee+Nj1EOS7szvBqjbUPKXD3gfuhQm5Gzi/LCnUiqdRy1qYfQA7e5jqrPwxNXvLhrklgo7l r5ycGk3jL0zuEWPywhMR7XYs/nyXCNpYJ3BxaaR1QGQIOGLAmNsJ2rbPPpoA8CdXc5Vs9DjyxGOg6 l0mAoSj1B6/D8X/5SHxHZViYSMAeO/1P55bkOdA+asoxt+mKA9/HHBFf3wWu72/q6oglza7otzQdA lUTi6hNfiya9HHapK1XvRuxg1e7acURdtwyE6W5LKVXU7w/F/GcFOCneFbhIeJZI6gl+GOYBUGV+n LQ5SC8h5WCG/ozOa4WDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wPoKl-00000005oyB-27yI; Wed, 20 May 2026 21:20:08 +0000 Received: from srv4.3e8.eu ([193.25.101.238]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wPoKf-00000005owu-2H63 for linux-phy@lists.infradead.org; Wed, 20 May 2026 21:20:05 +0000 Received: from [IPV6:2003:ed:4732:25a0:50c3:56a0:3512:8308] (p200300ed473225a050c356a035128308.dip0.t-ipconnect.de [IPv6:2003:ed:4732:25a0:50c3:56a0:3512:8308]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by srv4.3e8.eu (Postfix) with ESMTPSA id BEFAF4013D; Wed, 20 May 2026 23:19:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=3e8.eu; s=mail20211217; t=1779311980; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=Ojjeq7+ms71ydv932HWX0xixpyovLL1JHZY71n4KzRs=; b=Nc4BYxCzxOrNpN0f3Y+F8yrfn/5ymR4AvaNWy1ffGeYZYq2GHprQ5+OFU00YyKNtvZsD7V /La3I+TyXWS63mlTnfzkfSWDGE/gykuLNxQ0V7ObD6t3BDhESy6yfx/92uCjRMZBz1GfNx zWqWBBbQN2LauH3Ca6/Mb/OuCrwXfTKOYBTumjP2o3t8t8NlsL9+6YgQGYJFRvZcNbiwYv JWrmUx91fRiIa8LEztrlIuRGEP3u0LXLhA5bcpaKgaHLKJOrurVDRwGCZr/LME06fsuxUq YMAiEQIzjX72mgdPuK5iftdszLQ2SOSj/L8QZpXlLk5cjp/adhJmAXe2BEahwg== Message-ID: Date: Wed, 20 May 2026 23:19:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v5] net: phy: sfp: probe for RollBall I2C-to-MDIO bridge in mdio-i2c To: Petr Wozniak , netdev@vger.kernel.org Cc: maxime.chevallier@bootlin.com, bjorn@mork.no, andrew@lunn.ch, linux-phy@lists.infradead.org, kuba@kernel.org References: <20260519162007.13635-1-petr.wozniak@gmail.com> Content-Language: en-US From: Jan Hoffmann Autocrypt: addr=jan@3e8.eu; keydata= xsFNBFTH+vEBEADkcsHlJpyRJydfNeBm35/sU5Rm/gzvrwatYF44RSosfzNvZ7Ihb0ouazI5 3PzOS46yAc8LyujrZnH/06/nWqTLyxxwXoAIeUc87MboDKYQzskP3HAyqF6NgPH+MgUQB/8a 56ypfOD1f0MSod7kO3sz/y3QdO6kky+JX7Sq3CsfKUg4DrARvpGKrrqHA0xNpsz++9pYUveW i7jJlDz917HpcX39GnBQnLByDTML5cfQYiRMjQiPfwWRUUgsnxWDLkfOlWVW+wU9zvEKJGNP 6VAT38C3WuurCeHbslp26D2J4NBZdmmgMl3fHB2TYbVj/WzrNsci6uAc2CIiA+RSIjAdXhB8 w8Fp7FRDY/8/yEuirpQsuYs6BWRpiFv2Lqe1Z2aNshux965VBZhkB2UFCkSe5B2aXqZS4r6S kdZijN9v8/NII84j3skfYH8du426GrJFW1TV/sS4JsKhbFRnVrGVaSRB8j82XY+7Bq5mhIwX qULQKMZV+y6YHKOaKOGJal6Y8rq+vjpf+kMvekb8zlQ2sStnGuXiQGlfSYMVeV12zv6xtX4U GTnQn8Nm6ekJm3PFZ8Jdhy37FzcwLKs7GE6jFHrzWyeKa0ATNuFN/wRmxQzVx2CRxujZ83/I gtqte3TzJjDOhIJdAzz/qhZZRQ1TJVBc0nyVHmGsckCsw56H4QARAQABzRlKYW4gSG9mZm1h bm4gPGphbkAzZTguZXU+wsGOBBMBCAA4FiEEmLuY0iqAFrsdfdQ4eNoW6ZLnw4cFAlvNvmUC GwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQeNoW6ZLnw4fFMw/9GhCiWWIw/u+qJ+Z8 zV32B7C9jwpVcBoxyHMrbDl/KzEUoF3nSm6YNPfkmxgsQ2u0wd50p7nsLoPWwSET1wCE3VKU Cux5fXVC4m7y238HdmSNGmeYgKqvCKti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qstZiFECYazv+CsgQfbrX7eQqAsqKRtO3EOM QKBwTR+yAtNTrFrQmjE5u9QuIqrvbRTnxhZMRyyimpR6jKYlczNAKVN8RFmxBHOrpUf7slk5 H2GrHFIXygOA7zZtr+2ufY4TVZjnymKbbrC20JBin4/UNSJF0BDGcXKbpil78YlXu/EfABEB AAHCwV8EGAECAAkFAlTH+vECGwwACgkQeNoW6ZLnw4fqFxAA0mGTZXLNlsAAma7XAIdkMqDZ aAU+N8SHtceQjeIuhdOV34T9AhbiIhDbf/MeVBz1D/skRtnwk5qtQBjDhzVFfxUu9XFeZHKs ZFugcWwmzC0kLWG9xnzeWOl5VSq/CW5i4naaWNic5R2suNQiTFF7ZtGxv4i0H/FA1F6conbE 5Pi2NN2t6cN22uMZm9tAdXW0QmLfoHzrqkmnFCYHlnLwzhMuBnSrErlV6biYyNRki/uGig69 ixQ9PRJdEpP1NFrTDexQalb5+JDpHCsGt5mzRBnT5WutZ/HBVj5PbzCxNXemtv0OCnN57Hae p2EFXZjDLfOUYdJSpnudtSvBtmJgs7TgwmzcGCOZfWqPd0mRFjG101mhHh0g4GhlUBPvDe4k +E5YwEYEWQuO5G0tqwTGXU2bD/8NoMsWPGkABltaVeOvzOITuOe3HHZANwbyMCguTALQ29RF 5ZxUUfXMU9BxSf7dh5YiYqgceD5ey86nIjKTyxWb1wONrLtsirO2aX+Ch24UyAIHO0H6NVlU h8gKGU/jv0XySGZQsU/j79NdOR4sr0c9N6PH6TZiByTVuHDa6FBWeSq8JJltDu1V3kIa07X6 DPttzFhJHSBzcx5TSQTyN6ErfdYFT8mfBuvG5XJjYoR4xpMl0BLTPJSTmHokossdcyiu4ng+ AqNjQxfojjo= In-Reply-To: <20260519162007.13635-1-petr.wozniak@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260520_142003_461512_34425BFE X-CRM114-Status: GOOD ( 20.54 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Hi Petr, The patch seems to be malformed. I had to do some manual changes to get it applied. On 2026-05-19 at 18:20, Petr Wozniak wrote: > The "OEM"/"SFP-10G-T" quirk entry in sfp_fixup_rollball_cc() > unconditionally forces MDIO_I2C_ROLLBALL for all modules matching that > vendor/part-number combination. This works for modules that genuinely > implement a RollBall I2C-to-MDIO bridge, but silently breaks modules > that share the same EEPROM strings without having such a bridge. > > The Realtek RTL8261BE-CG is one such module: a pure copper 10G SFP+ > media converter with no I2C-to-MDIO bridge. Its EEPROM reports > vendor="OEM", part="SFP-10G-T-I", and -- critically -- Vendor OUI > 00:00:00, making OUI-based differentiation impossible. With > MDIO_I2C_ROLLBALL forced, the module silently ACKs the unlock password > write, the MDIO bus is created, but no PHY responds; the SFP state > machine cycles through the RollBall PHY-probe retry window before > reporting no PHY. > > Move the probe into i2c_mii_init_rollball() in mdio-i2c.c, where the > RollBall protocol constants are already defined. After sending the > unlock password, issue a CMD_READ and wait ~70 ms for CMD_DONE. A > genuine RollBall bridge asserts CMD_DONE within that window; modules > without a bridge never do, so i2c_mii_init_rollball() returns -ENODEV. > mdio_i2c_alloc() propagates -ENODEV to the caller to signal that no > bridge is present and PHY probing should be skipped. > sfp_sm_add_mdio_bus() catches -ENODEV and transitions > sfp->mdio_protocol to MDIO_I2C_NONE so the rest of the state machine > skips PHY probing for this module. This approach works fine here for a module identifying as "OEM SFP-10G-T" / "OEM SFP-10G-T-I", which doesn't support Rollball (the label on the outside says "ATS SFP-10G-T", and the PHY inside is also an RTL8261BE). Using this patch, the module works right away, without waiting several minutes for the PHY probing retry loop to finish (see my reply to the previous patch version for details). However, I am wondering if this could potentially break PHY access on other modules, which do support the Rollball protocol. I also have a 2.5G module (XikeStor SKT-2.5G-100M). It supports Rollball, but does not respond to commands immediately. With this patch, it only works with a small delay in "module_t_wait" (one second is fine). For that particular module this is not a problem, as it is not yet supported. So the necessary delay could be included when an SFP quirk is added for it. But if there are already supported modules behaving similarly it could be an issue for those (assuming they don't have a long enough "module_t_wait" in the SFP quirk, as it wasn't really needed so far). > Add "OEM"/"SFP-10G-T-I" to the quirk table so RTL8261BE modules enter > the probe path; genuine RollBall modules continue to work as before. I am a bit confused by this change. This is the same model name which is used by my non-Rollball ATS module when is linked at 1G on the copper side (so it doesn't need to go through the probe path). Are there other modules actually supporting Rollball which also use the model name including "-I"? Jan -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy