From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 439BA36CDF1 for ; Fri, 16 Jan 2026 11:16:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768562177; cv=none; b=gpiUVObOuQSkV6cTGi7kaNkWcpS9abvmoxkcb7rRJi7nX17qzyUiBfCx+3mOeUQKMbcSSBh1OO8PKBRHWwqHSwNSZXLkuIkoCA3LpleUzYAssF2CU5bA1fIsFLY9yyBLru+3U3i1jSMMPOApZ6/xXWPYjwZYZhboxO4qJG01rB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768562177; c=relaxed/simple; bh=awtSa70YIOy7DkgI9qgxThmsXuEXN5au1KlV2Qk/F1o=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jQuokie+63Mv8UbPicI1CYFokwGwQgVmfuL48ZymrbbqehiqtGvNkr8q4yMslsnCsdRkXl7v4rdbruf6k7VLUmVj16bJMFW9S6iOvJVfPupqQphJPs1SwjJv8aqJLiYjg+3CA0pnQCPtzMUGwQdPyZxzL837L9ZuVYSadkX+s+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=e78OplHw; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="e78OplHw" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-b86ed375d37so253002966b.3 for ; Fri, 16 Jan 2026 03:16:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768562173; x=1769166973; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=awtSa70YIOy7DkgI9qgxThmsXuEXN5au1KlV2Qk/F1o=; b=e78OplHwLXu9HeNdVKiYx0yH3vQBuffMeGVmE+m8UwDjBKpdH0qW4aLAPiope6xnsV U/7RfS9STu2XvafO6cXnrUvlPwCRuy2rZrFxwDV1kjeUQNVRF+zW85z9NLtWvsMWSA4e 9qwx341UmraBqyZzJWOgEuqrxqCYgQeSxPCsadK/ai2cPEtCz7xiWOdaQT98GN2ABhB8 yGnuORKD4dQNXmNyTSNwt8wS948kAfs13gtsNi+0VgdqmOZcoI9f5eKUr5KSOOO1jQvZ v7DnZFpN7jFXQmL3uJWA/mjaFo9jcTIP8A6jJez/AXEtJwxV3NUszJTrRzFHIkVfuVEq XAhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768562173; x=1769166973; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=awtSa70YIOy7DkgI9qgxThmsXuEXN5au1KlV2Qk/F1o=; b=YZdSULWZOUQ7YDKgMt2AbNtEEQJWr3MAsjgS0EK/uNCrtmLPGhbGTX9lrwwEY135XM OLdoveIEcnOIVkSklzVotl8lxqi9qtVheH56jEb9Rm97DsP78BsnZrdXVR8zj1H3dsHT QTEp7U+l8GLZglecEjgoTJ9OASC1/5UMgQh0m3UlD38Mcw8AI5V+PB8rCXzTc/oxSUzN 7G6mncnJRbh2XbzE+JkNcm7u7HIyHycGj0M83ad2z+pI+xrbgWHjnmdWFnS9oZP8H68P f3FtDC5aarJfpCPAeNks903bUxBisWtlURp6oquJMUhAE/banGHcUkCohJl0V8OTyUIH PLVg== X-Forwarded-Encrypted: i=1; AJvYcCVLbv4AbcgdYaf03boutxa4hNcyH3YR9jYpzwa1kBiEprM1+S38XH01zQGSGwvPEsZxkDvbjFmZKNVmphE=@vger.kernel.org X-Gm-Message-State: AOJu0Yx23Arn9c3kZzLVl0/IWNOBaP0IwrSyhVLF+gvQkhTeRPJdf/mc oEO5A2ITL7N1ik3GnWHe8+0ffNjzR+HKgK78YioQFrb7bgz5khGcalZZ X-Gm-Gg: AY/fxX4a9JUw+AD3yRO2/OZb5K3643OaUBXo6JuXpD5TzePM3+rWt1sYaRtWAlehXbu FhqCzeMZ3nqMqzC1V59wiGEEoG4BKspFl+fOVO0ghR9zdXk5vtI9aJ50O8uEnmZ0lPeEotIW4LY 0qjCijq71x5Floek4W/FHFQ8bSi+u6jnR8UuhHZ2mWNCp1xAz81bkjdAOe9D1YjXvHzFerRP8lq UwJxBXkT2di36CfnBHYhjiDuietvxLaoVwUvD/QscuqxjZD20HLF4pI/+/vuCz65rmZRP4sf1j+ LpGkHMd71bAIz3H+xFztX7yc9HOH4d0eNkRBopPlv2ISEvq2wJV3JXr1skafi/dKL3yVF+7BUKP ckW4cv9bUKm65t/xVsE1sHVdMPARvNVABcgzFR5NcEkcGJv/+GO3B2qAK2MJqi+/WM6n0RtbkSZ aEY6XwUk2tGBerYZKNx7Edq1oKQYoveHs6Rod4YmMKPghwSRqC4KM0c4ACiX2X4j4IdqA5Nht/d 5mbmZCy0VBY2Q== X-Received: by 2002:a17:906:fe0b:b0:b87:2e8a:e270 with SMTP id a640c23a62f3a-b879324c893mr242314466b.57.1768562172556; Fri, 16 Jan 2026 03:16:12 -0800 (PST) Received: from ?IPV6:2001:9e8:f13f:1001:fd79:63dc:69b7:40d3? ([2001:9e8:f13f:1001:fd79:63dc:69b7:40d3]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-65452bce433sm2156997a12.3.2026.01.16.03.16.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Jan 2026 03:16:12 -0800 (PST) Message-ID: Date: Fri, 16 Jan 2026 12:16:11 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v4] net: sfp: add SMBus I2C block support Content-Language: en-US To: Maxime Chevallier Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Bj=C3=B8rn_Mork?= , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S . Miller" , Russell King , Andrew Lunn , Heiner Kallweit References: <20260109101321.2804-1-jelonek.jonas@gmail.com> <466efdd2-ffe2-4d2e-b964-decde3d6369b@bootlin.com> <397e0cdd-86de-4978-a068-da8237b6e247@gmail.com> <0c181c3d-cb68-4ce4-b505-6fc9d10495cd@bootlin.com> From: Jonas Jelonek In-Reply-To: <0c181c3d-cb68-4ce4-b505-6fc9d10495cd@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Maxime, On 09.01.26 18:03, Maxime Chevallier wrote: > ACK, I'll gladly help with testing. This should actually be easily > achievable with a board that has a real i2c interface connected to the > SFP cage, as there's a i2c smbus emulation layer. The SMBus helpers will > work with a true I2C adapter, you may have to tweak the code though. > > This is relevant for modules that have a built-in PHY that you can > access, if you don't have any I can run some tests here, I have more > than enough modules... > > If you don't have time at all for that, I may give this a shot at some > point, but my time is a bit scarce right now :'( > I'd postpone this part if that's ok. Quite busy at the moment :( When I come to trying to work on that, should that all be kept in mdio-i2c.c? I'm asking because we have a downstream implementation moving that SMbus stuff to mdio-smbus.c. This covers quite a lot right now, C22/C45 and Rollball, but just with byte access [1]. Because that isn't my work, I'll need to check with the original authors and adapt this for an upstream patch, trying to add word + block access. Kind regards, Jonas [1] https://github.com/openwrt/openwrt/blob/66b6791abe6f08dec2924b5d9e9e7dac93f37bc4/target/linux/realtek/patches-6.12/712-net-phy-add-an-MDIO-SMBus-library.patch