Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: qup: replace spin_lock_irqsave by spin_lock in hard IRQ

The code has been in a irq-disabled context since it is hard IRQ. There
is no necessity to do it again.

Signed-off-by: Xingbang Liu <liu.airalert@gmail.com>
Link: https://lore.kernel.org/r/20220302071521.6638-1-liu.airalert@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Xingbang Liu and committed by
Mark Brown
fa0f3db4 c59dbc64

+2 -3
+2 -3
drivers/spi/spi-qup.c
··· 593 593 { 594 594 struct spi_qup *controller = dev_id; 595 595 u32 opflags, qup_err, spi_err; 596 - unsigned long flags; 597 596 int error = 0; 598 597 599 598 qup_err = readl_relaxed(controller->base + QUP_ERROR_FLAGS); ··· 624 625 error = -EIO; 625 626 } 626 627 627 - spin_lock_irqsave(&controller->lock, flags); 628 + spin_lock(&controller->lock); 628 629 if (!controller->error) 629 630 controller->error = error; 630 - spin_unlock_irqrestore(&controller->lock, flags); 631 + spin_unlock(&controller->lock); 631 632 632 633 if (spi_qup_is_dma_xfer(controller->mode)) { 633 634 writel_relaxed(opflags, controller->base + QUP_OPERATIONAL);