diff options
| author | Pranav Tilak <[email protected]> | 2026-07-09 14:42:55 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-07-22 13:10:21 -0600 |
| commit | 57b60ccd79790399d92d46ac1cde1086e4def7bd (patch) | |
| tree | b0582e4ca69515cb8b3194b487e725219d5bdcb9 /api/Makefile | |
| parent | 331d9b8cf6345f4a041dd9f13e8565a1eb471d32 (diff) | |
i3c: dw: fix slave device setup after DAA
i3c_master_add_i3c_dev_locked() incorrectly set master->this to the
newly discovered slave device, causing i3c_master_attach_i3c_dev()
to skip the attach_i3c_dev() callback. As a result the slave device
never got its master_priv (DAT slot index) allocated, free_pos was
never updated, and the DAT entry was never written.
Fix by removing the incorrect master->this assignment. Store the
slave descriptor directly in master->i3cdev[pos] inside
dw_i3c_master_attach_i3c_dev() where the DAT slot index is already
known. Also check the return value of i3c_master_add_i3c_dev_locked()
and skip num_i3cdevs increment on failure, fixing dummy devices shown
when no slaves are present on the bus.
Fixes: 1009c96f1590 ("drivers: i3c: Add driver for MIPI DWI3C")
Signed-off-by: Pranav Tilak <[email protected]>
Reviewed-by: Dinesh Maniyam <[email protected]>
Diffstat (limited to 'api/Makefile')
0 files changed, 0 insertions, 0 deletions
