diff options
| author | 2026-09-22 16:05:44 +0530 | |
|---|---|---|
| committer | 2026-09-30 16:22:45 +0200 | |
| commit | 8d0008260c32206e41d4c35a99b281da48f7c2cf (patch) | |
| tree | 3dd4d1542ee9c45bfef60aae148b9141ad914c75 /scripts/Makefile.thinlto | |
| parent | i3c: master: Add APIs for I3C hub support (diff) | |
i3c: master: Add controller-only device operation helpers
The generic I3C device attach and IBI paths perform both core-level
bookkeeping and controller-specific operations. An I3C hub, however,
maintains a logical device descriptor on the virtual downstream bus and
a separate parent-facing descriptor used by the physical parent
controller.
Add controller-only helpers that invoke the controller callbacks
without updating the bus device list, address-slot state, or generic IBI
lifecycle. This allows the hub framework to keep the logical descriptor
associated with the virtual controller while using a permanent
parent-facing descriptor for operations handled by the physical
controller.
Add helpers for:
- attaching, reattaching, and detaching a device from a controller;
- requesting and freeing controller IBI resources;
- enabling and disabling IBIs at the controller;
- recycling controller IBI slots.
Refactor the existing generic core paths to use these helpers, keeping
the current behaviour unchanged for regular I3C devices.
Also release the generic IBI workqueue and state when the controller
request callback fails.
The helpers are declared in the I3C internal header because they are
intended for use by the generic I3C hub framework rather than by
individual controller drivers.
Signed-off-by: Lakshay Piplani <lakshay.piplani@nxp.com>
Signed-off-by: Aman Kumar Pandey <aman.kumarpandey@nxp.com>
Signed-off-by: Vikash Bansal <vikash.bansal@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260922103551.2754613-3-lakshay.piplani@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
