From: Jeremy Kerr <jk@codeconstruct.com.au>
To: Kenny Hsieh <kenny_hsieh@jabil.com>,
netdev@vger.kernel.org,
Matt Johnston <matt@codeconstruct.com.au>,
Andi Shyti <andi.shyti@kernel.org>,
Peter Rosin <peda@lysator.liu.se>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
davem@davemloft.net, Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] mctp i2c: add sysfs control for mux child netdevs
Date: Tue, 13 Oct 2026 15:02:30 +0800 [thread overview]
Message-ID: <20853c96b17ea29815ccc34fcc6556032df8291d.camel@codeconstruct.com.au> (raw)
In-Reply-To: <20261002073156.759005-1-kenny_hsieh@jabil.com>
Hi Kenny,
> An MCTP netdev is created for an I2C bus that carries an
> "mctp-controller" property in the devicetree. A bus instantiated at
> runtime through the I2C sysfs interface has no devicetree node on which
> to set that property, so it can never get a netdev.
>
> This matters for a mux topology that is only known at runtime. A BMC
> that ships one firmware image across several chassis cannot describe
> every chassis's mux tree in its devicetree. Userspace creates the muxes
> it finds over i2c sysfs instead, and the channels below them have no
> node of their own.
>
> Add a writable "mctp_controller" attribute on mux child adapters below
> a bus that has an mctp-i2c-controller device bound to it. A mux tree
> with no such device is untouched. Writing 1 creates the netdev for that
> bus, writing 0 removes it, and reading reports whether one exists.
> Userspace can then enable MCTP per channel once it has created the
> muxes.
More a request than a review: since you're going to the trouble of
allowing dynamic MCTP devices on mux subordinates, would it be possible
to also allow this for the root controllers as well?
The use-case I have is dynamic I2C devices - say USB-attached - that do
not have any facility for DT configuration. The proposed sysfs property
could allow runtime configuration for those too.
Cheers,
Jeremy
prev parent reply other threads:[~2026-10-13 7:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-02 7:31 [PATCH net-next] mctp i2c: add sysfs control for mux child netdevs Kenny Hsieh
2026-10-06 8:01 ` netdev-bot+sashiko
2026-10-07 7:22 ` Kenny Hsieh
2026-10-06 10:31 ` Matt Johnston
2026-10-07 6:06 ` Kenny Hsieh
2026-10-13 7:02 ` Jeremy Kerr [this message]
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=20853c96b17ea29815ccc34fcc6556032df8291d.camel@codeconstruct.com.au \
--to=jk@codeconstruct.com.au \
--cc=andi.shyti@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kenny_hsieh@jabil.com \
--cc=kuba@kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@codeconstruct.com.au \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=peda@lysator.liu.se \
/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