]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: device: implement Bound device context
authorDanilo Krummrich <dakr@kernel.org>
Sun, 13 Apr 2025 17:37:01 +0000 (19:37 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Thu, 17 Apr 2025 13:21:48 +0000 (15:21 +0200)
commitf933b7489ffca25c9a33b65441679ee3d2943024
tree85e2b0a605d80971649e1b2a7f51ceb7f9ddaac0
parent3edaefbf2b1beb9ae1cb2a842f455157b951e9f1
rust: device: implement Bound device context

The Bound device context indicates that a device is bound to a driver.
It must be used for APIs that require the device to be bound, such as
Devres or dma::CoherentAllocation.

Implement Bound and add the corresponding Deref hierarchy, as well as the
corresponding ARef conversion for this device context.

Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20250413173758.12068-7-dakr@kernel.org
[ Add missing `::` prefix in macros. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/device.rs