Re: [PATCH 0/8] Device::drvdata() and driver/driver interaction (auxiliary)

Danilo Krummrich
2025-10-29T18:10:33Z

On Tue Oct 21, 2025 at 12:34 AM CEST, Danilo Krummrich wrote:

Applied to driver-core-testing, thanks!

> Danilo Krummrich (8):
> rust: device: narrow the generic of drvdata_obtain()
> rust: device: introduce Device::drvdata()

[ * Remove unnecessary `const _: ()` block,
* rename type_id_{store,match}() to {set,match}_type_id(),
* assert size_of::<bindings::driver_type>() >= size_of::<TypeId>(),
* add missing check in case Device::drvdata() is called from probe().

- Danilo ]

> rust: auxiliary: consider auxiliary devices always have a parent
> rust: auxiliary: unregister on parent device unbind
> rust: auxiliary: move parent() to impl Device
> rust: auxiliary: implement parent() for Device<Bound>
> samples: rust: auxiliary: misc cleanup of ParentDriver::connect()
> samples: rust: auxiliary: illustrate driver interaction