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

Commit 7370ed6b authored by Yi Li's avatar Yi Li Committed by Mike Frysinger
Browse files

spi/bfin_spi: use nosync when disabling the IRQ from the IRQ handler



Using disable_irq() on the IRQ whose handler we are currently executing in
can easily lead to a hang.  So use the nosync variant here.

Signed-off-by: default avatarYi Li <yi.li@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 9677b0de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -448,7 +448,7 @@ static irqreturn_t bfin_spi_pio_irq_handler(int irq, void *dev_id)
		/* Move to next transfer */
		msg->state = bfin_spi_next_transfer(drv_data);

		disable_irq(drv_data->spi_irq);
		disable_irq_nosync(drv_data->spi_irq);

		/* Schedule transfer tasklet */
		tasklet_schedule(&drv_data->pump_transfers);