mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] i3c: master: Set I2C client for dynamically attached devices
@ 2026-11-06  5:56 Defa Li
  0 siblings, 0 replies; only message in thread
From: Defa Li @ 2026-11-06  5:56 UTC (permalink / raw)
  To: Alexandre Belloni, Frank Li, Matthias Brugger,
	AngeloGioacchino Del Regno
  Cc: linux-i3c, linux-kernel, linux-arm-kernel, linux-mediatek,
	wsd_upstream, mingchang.jia, yuhan.wei, hao.lin, Defa Li

The I2C attach callback allocates a descriptor for clients added after
the adapter is registered. Store the client in the descriptor after
attaching it, matching the setup used for board-info devices.

Signed-off-by: Defa Li <defa.li@mediatek.com>
---
 drivers/i3c/master.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c
index 01e05bad8661..690a045bffa0 100644
--- a/drivers/i3c/master.c
+++ b/drivers/i3c/master.c
@@ -3467,6 +3467,8 @@ static int i3c_master_i2c_attach(struct i2c_adapter *adap, struct i2c_client *cl
 	if (ret)
 		goto out_free_dev;
 
+	i2cdev->dev = client;
+
 	return 0;
 
 out_free_dev:
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-06  5:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06  5:56 [PATCH] i3c: master: Set I2C client for dynamically attached devices Defa Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®