Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 576b5223 authored by akeemting's avatar akeemting Committed by David S. Miller
Browse files

jme: Faulty IRQ handle bug fix



Fix IRQ handle bug when interrupt mode.

The driver was incorrectly handled and returned IRQ_HANDLED
while the device is not generating the interrupt.
It happened due to faulty determination of interrupt status register.

Found by: "Ethan" <ethanhsiao@jmicron.com>
Fixed by: "akeemting" <akeem@jmicron.com>
Signed-off-by: default avatarGuo-Fu Tseng <cooldavid@cooldavid.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a821ebe5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1463,7 +1463,7 @@ jme_intr(int irq, void *dev_id)
	/*
	/*
	 * Check if it's really an interrupt for us
	 * Check if it's really an interrupt for us
	 */
	 */
	if (unlikely(intrstat == 0))
	if (unlikely((intrstat & INTR_ENABLE) == 0))
		return IRQ_NONE;
		return IRQ_NONE;


	/*
	/*