Re: [PATCH] rust: ACPI: fix missing match data for PRP0001

From: Greg Kroah-Hartman

Date: Wed Apr 01 2026 - 14:40:46 EST


On Wed, Apr 01, 2026 at 02:06:25PM +0000, Markus Probst wrote:
> Export `acpi_of_match_device` function and use it to match the of device
> table against ACPI PRP0001 in Rust.
>
> This fixes id_info being None on ACPI PRP0001 devices.
>
> Using `device_get_match_data` is not possible, because Rust stores an
> index in the of device id instead of a data pointer.

I'm confused, why are we open-coding this in the rust layer? What do we
need to change in the C side to make both layers be able to call the
same function instead?

thanks,

greg k-h