On Sun, Nov 22, 2026 at 08:40:33AM +0300, Onur Özkan wrote: > Move iomem mapping into HwGate and pass Arc<HwGate> to components that > access hardware. Callers obtain HwAccessGuard before accessing the iomem > so the reset worker waits for ongoing accesses. > > Acquire the gate once per address-space operation and pass the guarded > iomem reference to its helpers. This prevents nested gate acquisition > from deadlocking with reset and keeps each operation protected throughout. > Clone the gate Arc before acquiring the guard so mutating helpers can > retain their mutable self receivers. > > Suggested-by: Daniel Almeida <[email protected]> > Reviewed-by: Daniel Almeida <[email protected]> > Signed-off-by: Onur Özkan <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
