On Sun May 17, 2026 at 9:01 AM JST, Danilo Krummrich wrote: > Convert pci::Bar<SIZE> to pci::Bar<'bound, SIZE>, storing &'bound > Device<Bound> to tie the BAR mapping lifetime to the device. > > iomap_region_sized() now returns Result<Bar<'bound, SIZE>> directly instead > of impl PinInit<Devres<Bar<SIZE>>, Error>. > > Add Bar::into_devres() to consume the bar and register it as a > device-managed resource, returning Devres<Bar<'static, SIZE>>. The > lifetime is erased to 'static because Devres guarantees the bar does not > actually outlive the device -- access is revoked on unbind. > > Signed-off-by: Danilo Krummrich <[email protected]> > ---
Reviewed-by: Eliot Courtney <[email protected]>
