From: "Bjørn Mork" <bjorn@mork.no>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>
Cc: Jonas Jelonek <jelonek.jonas@gmail.com>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Paolo Abeni <pabeni@redhat.com>, Jakub Kicinski <kuba@kernel.org>,
Eric Dumazet <edumazet@google.com>,
"David S . Miller" <davem@davemloft.net>,
Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>
Subject: Re: [PATCH net-next v4] net: sfp: add SMBus I2C block support
Date: Fri, 16 Jan 2026 12:51:47 +0100 [thread overview]
Message-ID: <87jyxhwzak.fsf@miraculix.mork.no> (raw)
In-Reply-To: <aWofM8Y0AIHVESml@shell.armlinux.org.uk> (Russell King's message of "Fri, 16 Jan 2026 11:21:23 +0000")
"Russell King (Oracle)" <linux@armlinux.org.uk> writes:
> On Fri, Jan 16, 2026 at 12:16:11PM +0100, Jonas Jelonek wrote:
>
>> 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
>
> My personal view on this is not suitable for sharing publicly. I'm sure
> people can guess what my view is and why. (Look at the age of the
> patch, and it's clearly "lets re-implement mdio-i2c" rather than "let's
> adapt it".
FWIW, I agree if my guess is correct :-)
I see that my name is on that downstream patch, due to the RollBall
additions there. It was never intended for mainline in that form. I
originally implemented the SMBus RollBall access methods as part of
mdio-i2c.c and that's where they belong IMHO.
It was briefly discussed here. But I never had enough time and
motivation to finish this properly. So it ended up as an OpenWrt
specific hack for now. I certainly won't object to anyone else reusing
any of the code I wrote, if it is any help at all.
Not sure the c45 SMBus stuff in openwrt ever worked BTW. I have only
tested c22 and RollBall over SMBus.
Bjørn
next prev parent reply other threads:[~2026-01-16 11:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-09 10:13 [PATCH net-next v4] net: sfp: add SMBus I2C block support Jonas Jelonek
2026-01-09 12:13 ` Russell King (Oracle)
2026-01-09 16:21 ` Russell King (Oracle)
2026-01-09 16:46 ` Jonas Jelonek
2026-01-09 15:51 ` Maxime Chevallier
2026-01-09 16:48 ` Jonas Jelonek
2026-01-09 17:03 ` Maxime Chevallier
2026-01-16 11:16 ` Jonas Jelonek
2026-01-16 11:21 ` Russell King (Oracle)
2026-01-16 11:51 ` Bjørn Mork [this message]
2026-01-16 13:14 ` Maxime Chevallier
2026-01-16 13:15 ` Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87jyxhwzak.fsf@miraculix.mork.no \
--to=bjorn@mork.no \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=jelonek.jonas@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=maxime.chevallier@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox