Skip to content

Commit 2b50719

Browse files
billy-tsaialexandrebelloni
authored andcommitted
i3c: mipi-i3c-hci: Support SETDASA CCC
When the I3C subsystem wants to assign a dynamic address using the SETDASA CCC, it needs to attach the I3C device with device info that includes only the static address. In the HCI, if the driver want to send this SETDASA CCC, a DAT entry is required to temporarily fill the device's static address into the dynamic address field. Afterward, the reattach API will be executed to update the DAT with the correct dynamic addrees value. Signed-off-by: Billy Tsai <[email protected]> Reviewed-by: Jarkko Nikula <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 473d0cb commit 2b50719

File tree

1 file changed

+2
-1
lines changed
  • drivers/i3c/master/mipi-i3c-hci

1 file changed

+2
-1
lines changed

drivers/i3c/master/mipi-i3c-hci/core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,8 @@ static int i3c_hci_attach_i3c_dev(struct i3c_dev_desc *dev)
436436
kfree(dev_data);
437437
return ret;
438438
}
439-
mipi_i3c_hci_dat_v1.set_dynamic_addr(hci, ret, dev->info.dyn_addr);
439+
mipi_i3c_hci_dat_v1.set_dynamic_addr(hci, ret,
440+
dev->info.dyn_addr ?: dev->info.static_addr);
440441
dev_data->dat_idx = ret;
441442
}
442443
i3c_dev_set_master_data(dev, dev_data);

0 commit comments

Comments
 (0)