Re: [PATCH v2 3/7] rust: drm: Add RegistrationData to drm::Driver
From: Danilo Krummrich
Date: Sat Jun 06 2026 - 07:24:57 EST
On Fri Jun 5, 2026 at 1:43 AM CEST, Deborah Brouwer wrote:
> On Thu, Jun 04, 2026 at 03:53:32PM +0200, Danilo Krummrich wrote:
>> On Thu Jun 4, 2026 at 1:29 AM CEST, Deborah Brouwer wrote:
>> > Hi Danilo, could we use separate data arguments in UnregisteredDevice
>> > vs in the Registration? Basically we want to use the UnregisteredDevice
>> > to initialize and boot the firmware which we then store as registration
>> > data.
>> >
>> > Could you have a look at this patch, it applies on top of this series:
>> > https://lore.kernel.org/rust-for-linux/20260603-use_tyr_reg_data-v1-1-97f64e951cf6@xxxxxxxxxxxxx/
>>
>> They already are separate -- UnregisteredDevice::new() takes T::Data and
>> Registration::new() takes the registration data independently. Your patch
>> demonstrates this correctly.
>
> Ah, true the arguments are different, but the issue for Tyr is we need
> iomem to initialize and boot the firmware before we have a registered
> device.
>
> Could you replace your Tyr with the changes i'm proposing here:
I don't see any change in your patch that belongs into this one. What exactly do
you have in mind?
Please note that this patch is about core infrastructure and should only touch
drivers for the minimum of mechanic changes required. IOW, your follow-up patch
already sits perfectly in this context.
> [PATCH v2] drm/tyr: move probe resources into registration data
> https://lore.kernel.org/rust-for-linux/20260604-use_tyr_reg_data-v2-1-f77a1ffcf08d@xxxxxxxxxxxxx/