🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2652

Re: [PATCH net-next] mctp i2c: add sysfs control for mux child netdevs

#2652
From: Jeremy Kerr
Date: Tue, 13 Oct 2026 07:02
33 lines
7284 bytes
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
Technical Details
Message-ID: <20853c96b17ea29815ccc34fcc6556032df8291d.camel@codeconstruct.com.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345414-linux-kernel-netdev=dewy.ru
References: <20261002073156.759005-1-kenny_hsieh@jabil.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345414-linux-kernel-netdev=dewy.ru
From: jk@codeconstruct.com.au (Jeremy Kerr)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next] mctp i2c: add sysfs control for mux child
 netdevs
Date: Tue, 13 Oct 2026 15:02:30 +0800
Organization: Usenet Network
Message-ID: <20853c96b17ea29815ccc34fcc6556032df8291d.camel@codeconstruct.com.au>
References: <20261002073156.759005-1-kenny_hsieh@jabil.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="1982930"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:2D2tyiOiEDiniRzl4K8B+Ij9m8I= sha256:7FIrAarmbWmCdMlF8b3nUAmh5OBBrX+rCsoVvJb3bEE=
	sha1:Mxle5wHi2yPsSl3XNwRWp1ixNHQ= sha256:7iAUkWRfaQCR+2AcctYix0va50AeZejJNFBVppos4Z8=
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 06EC110FD98; Tue, 13 Oct 2026 10:07:20 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 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] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=codeconstruct.com.au
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 kBNMadG63TeM;
	Tue, 13 Oct 2026 10:07:12 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-345414-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=codeconstruct.com.au
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id EB7E910FD64; Tue, 13 Oct 2026 10:07:03 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id D2EFC3F716; Tue, 13 Oct 2026 07:02:45 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id B122746D0A2;
	Tue, 13 Oct 2026 07:02:45 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b="OvXDGkbC"
X-Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 437523E63AA;
	Tue, 13 Oct 2026 07:02:42 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.29.241.158
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791874965; cv=none; b=lGOv+GzNapUwOJkMsTqaeVv+Zuj5KFnesDk0G2WP6qN0DuLxOa4eJ5wwa9MgQbzdSVh6/w5tG2X9+dcHk/KLlOchCoXVroEJ54Heh1U/T8lJUq0xvwY6kRjSXmd0gB7VSDfyCNeCoBpVgFpNb49JkX1EHKuE0kWVTzAuiiCwyH0=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791874965; c=relaxed/simple;
	bh=5hIfBAw685lw1tMOzgMVigGeKsztlWESs12MQE+kgcc=;
	h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References:
	 Content-Type:MIME-Version; b=G+boPZYJckqvhYwTvQa/HJJ0MODS15IXuS8o+JMWG3R5OsQXJbyNJ4STK6IB+yoslCSbUNQYm7kDEXRR530S0gM/y66U1FeUZ/qgAv/n8dB1/CoAoA9Eq0dTtvlCWu2Rqd4d9o7FyuMTMCKHbpk3QId15KrBrPtYTF80Ya54LqE=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au; spf=pass smtp.mailfrom=codeconstruct.com.au; dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b=OvXDGkbC; arc=none smtp.client-ip=203.29.241.158
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codeconstruct.com.au
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=codeconstruct.com.au; s=2022a; t=1791874955;
	bh=5hIfBAw685lw1tMOzgMVigGeKsztlWESs12MQE+kgcc=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=OvXDGkbCskt1ciKFaJVdv+dXRPRPNVLywhTHJrCyni30rT4N3cK8Z1eNZypIABjDK
	 ZyZkD4E4tMqfOb5IgLcnkSpJTRQQtpJdAxKLhy7XH9I9uPvnjNNegxLHUoWHSYAoLk
	 ycKjLL+t6wT9fiPNL4dIMz0utLWA7srCJ7DefJzOwFMUI2size5/JnKw+AQ2G/eSNh
	 mtkXDsbEseUxS4is/OXDJLpeHr1y6UlAmZRR4HmljcME3P2w3yma0+5RvnNe4fVSuj
	 nLAEquUsWo9EBiXafOfB1jJyBu4SWFLtPZyBMSWePKheRceTGx1eYt8cqCw5WvudHb
	 J3siW2+W84Kqg==
X-Received: from [192.168.72.161] (210-10-213-150.per.static-ipl.aapt.com.au [210.10.213.150])
	by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 1F4146E74B;
	Tue, 13 Oct 2026 15:02:30 +0800 (AWST)
X-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
X-In-Reply-To: <20261002073156.759005-1-kenny_hsieh@jabil.com>
X-User-Agent: Evolution 3.56.2-0+deb13u1 
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>