[Bug 280290] hms(4): Broken fresh after boot, fixed by resume

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 28 Oct 2024 13:50:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280290

John Baldwin <jhb@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jhb@FreeBSD.org

--- Comment #30 from John Baldwin <jhb@FreeBSD.org> ---
Any state that the interrupt handler depends on or can modify should be fully
initialized before interrupts are enabled on the device.  If the device has
some sort of command register that can mask interrupts, the attach routine
should probably be masking interrupts until the attach has fully initialized
things.  You can also defer bus_setup_intr() until after the device is
initialized, though you potentially risk spurious interrupts if the device can
raise an interrupt before the driver has attached the handler.

-- 
You are receiving this mail because:
You are the assignee for the bug.