[BUG] i3c i3c_master_reattach_i3c_dev Duplicate configuration of I3C_ADDR_SLOT_I3C_DEV
- Dominant language
- C
- Stars
- 4k
- Forks
- 1.7k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 237
Description
### Description / Steps to reproduce the issue
i3c_master_reattach_i3c_dev reserve dyn_add slot (I3C_ADDR_SLOT_I3C_DEV) ,
but i3c_master_attach_i3c_dev has done this before, so i3c_master_reattach_i3c_dev could cause EBUSY at line master.c:888
### On which OS does this issue occur?
[OS: Other]
### What is the version of your OS?
Ubuntu 24.04.2 LTS
### NuttX Version
12.12.0
### Issue Architecture
[Arch: arm]
### Issue Area
[Area: Drivers]
### Host information
_No response_
### Verification
- [x] I have verified before submitting the report.
Contributor guide
Research direction
Start by reading master.c around line 888 and compare the address-slot handling in i3c_master_attach_i3c_dev and i3c_master_reattach_i3c_dev. Reproduce the reattach path on the reported ARM/NuttX setup and verify that it no longer attempts a duplicate I3C_ADDR_SLOT_I3C_DEV reservation or returns EBUSY.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100