From nobody Fri Apr 3 02:58:10 2026 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 986EE244660; Wed, 25 Mar 2026 14:40:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774449649; cv=none; b=L9KYZdZufPeTL7+3rthHbTby1XN0JFxV0XabNUhlXq35DRyAzYA8Pbp4K5r6D/NXA5kKEq2b4aBq+Fu5XDwBDnRGhJ/3ZBC8rQdz3A6foScQmWjKR8foe8ZnPVpX9g9koMMK2rlJvFIIbMgMOdI9GqKE212Ylx4qNJjGHtw4v6E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774449649; c=relaxed/simple; bh=DaRfsV2u+e7/20CbFYhTmGEe9Lq4oc9ftgi7hzgtJxs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tgbm5gWetpyknaXCQ0zp6a4cllMqAGlzoeTQfI7DiF98Il9kCheRDSh/UL8mB4k//m0bQ1dil5kC/V/ZECYeza9X15BhdnEeds58y2ZO4mXdY4LJagWQL9b3s6k+t2iuY06V/XYUye4+ERDv5Mk6Lkw/+XnygI33WihT4F6Px1M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=YFHVBRNZ; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="YFHVBRNZ" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 773921A2EFA; Wed, 25 Mar 2026 14:40:46 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 3ECA6601E2; Wed, 25 Mar 2026 14:40:46 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id D65EA10451417; Wed, 25 Mar 2026 15:40:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774449643; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=EO+KwDm3fpx2sS0DmTpGwECNmbhB0N19pDgf5whzoMI=; b=YFHVBRNZ+4X0eUGYxGcRdBemBZJ+IuGttbYxvNOnEWumFTnvI89irKZyA/5L5njmYiGFY6 eeQpqEBeK+GrJFArhYFNfLvTKbm0jPktRKzSgWPxpYjvCbaUr6j6CiM4jYev6430X0Ch3v GON1VTnHTdBuZ9PL6ncaw03zYbuAVgt0LZXPIR1q3xwDzRYuH3tuRY64VgHPDDs4ZluL9d r2I3ie4W0rxnR2Z+qj3G4vq2JLnaRjplGvKlIOj4EyVfupQULSx+tWgGSrLUmpyIHf4z8m Fb8x1MMoHX6TBHTPtEa4nq4AeFJs8VXZjKyA5cLHoLkNlgTZNdUOXLWz5Vtszg== From: Herve Codina To: Andrew Lunn , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Kalle Niemi , Matti Vaittinen , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Michael Turquette , Stephen Boyd , Andi Shyti , Wolfram Sang , Peter Rosin , Arnd Bergmann , Herve Codina , Saravana Kannan , Bjorn Helgaas , Charles Keepax , Richard Fitzgerald , David Rhodes , Linus Walleij , Ulf Hansson , Mark Brown , Len Brown , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Davidlohr Bueso , Jonathan Cameron , Dave Jiang , Alison Schofield , Vishal Verma , Ira Weiny , Dan Williams , Shawn Guo Cc: Wolfram Sang , linux-kernel@vger.kernel.org, driver-core@lists.linux.dev, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, linux-sound@vger.kernel.org, patches@opensource.cirrus.com, linux-gpio@vger.kernel.org, linux-pm@vger.kernel.org, linux-spi@vger.kernel.org, linux-acpi@vger.kernel.org, linux-cxl@vger.kernel.org, Allan Nielsen , Horatiu Vultur , Steen Hegelund , Luca Ceresoli , Thomas Petazzoni Subject: [PATCH v6 15/27] i2c: mux: Set adapter physical device Date: Wed, 25 Mar 2026 15:35:42 +0100 Message-ID: <20260325143555.451852-16-herve.codina@bootlin.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260325143555.451852-1-herve.codina@bootlin.com> References: <20260325143555.451852-1-herve.codina@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Content-Type: text/plain; charset="utf-8" For i2c muxes, the parent of the mux adapter device is the adapter device the mux is connected to. This parent is not the physical device related to the mux adapter. Indeed, the physical device of the mux adapter is the mux device itself. Fill the adap.physdev with the mux device. Signed-off-by: Herve Codina Reviewed-by: Andi Shyti --- drivers/i2c/i2c-mux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/i2c-mux.c b/drivers/i2c/i2c-mux.c index 681a201c239b..f4e73e7a0e33 100644 --- a/drivers/i2c/i2c-mux.c +++ b/drivers/i2c/i2c-mux.c @@ -315,6 +315,7 @@ int i2c_mux_add_adapter(struct i2c_mux_core *muxc, priv->adap.algo =3D &priv->algo; priv->adap.algo_data =3D priv; priv->adap.dev.parent =3D &parent->dev; + priv->adap.physdev =3D muxc->dev; priv->adap.retries =3D parent->retries; priv->adap.timeout =3D parent->timeout; priv->adap.quirks =3D parent->quirks; --=20 2.53.0