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

Commit 87421cb6 authored by Solomon Peachy's avatar Solomon Peachy Committed by John W. Linville
Browse files

cw1200: Use a threaded oneshot irq handler for cw1200_spi



This supercedes the older patch ("cw1200: Don't perform SPI transfers in
interrupt context") that badly attempted to fix this problem.

This is a far simpler solution, which has the added benefit of
actually working.

Signed-off-by: default avatarSolomon Peachy <pizza@shaftnet.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c4fb19d2
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -250,8 +250,9 @@ static int cw1200_spi_irq_subscribe(struct hwbus_priv *self)

	pr_debug("SW IRQ subscribe\n");

	ret = request_any_context_irq(self->func->irq, cw1200_spi_irq_handler,
				      IRQF_TRIGGER_HIGH,
	ret = request_threaded_irq(self->func->irq, NULL,
				   cw1200_spi_irq_handler,
				   IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
				   "cw1200_wlan_irq", self);
	if (WARN_ON(ret < 0))
		goto exit;