Re: [PATCH v8 5/5] sample: rust: pci: add tests for config space routines

Danilo Krummrich
2026-01-13T19:49:20Z

On Tue Jan 13, 2026 at 10:22 AM CET, Zhi Wang wrote:
> diff --git a/samples/rust/rust_driver_pci.rs b/samples/rust/rust_driver_pci.rs
> index f7130a359768..1b28a2a7d07d 100644
> --- a/samples/rust/rust_driver_pci.rs
> +++ b/samples/rust/rust_driver_pci.rs
> @@ -66,6 +66,32 @@ fn testdev(index: &TestIndex, bar: &Bar0) -> Result<u32> {
>
> Ok(bar.read32(Regs::COUNT))
> }
> +
> + fn config_space(pdev: &pci::Device<Core>) -> Result {

&pci::Device<Bound>