• Felix Fietkau's avatar
    ath9k: fix interrupt storms on queued hardware reset · f41a9b3b
    Felix Fietkau authored
    commit b74713d0
    "ath9k: Handle fatal interrupts properly" introduced a race condition, where
    IRQs are being left enabled, however the irq handler returns IRQ_HANDLED
    while the reset is still queued without addressing the IRQ cause.
    This leads to an IRQ storm that prevents the system from even getting to
    the reset code.
    
    Fix this by disabling IRQs in the handler without touching intr_ref_cnt.
    
    Cc: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
    Cc: Sujith Manoharan <c_manoha@qca.qualcomm.com>
    Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    f41a9b3b
main.c 59 KB