* [PATCH] spi: qup: replace spin_lock_irqsave by spin_lock in hard IRQ
@ 2022-03-02 7:15 Xingbang Liu
2022-03-07 20:39 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Xingbang Liu @ 2022-03-02 7:15 UTC (permalink / raw)
To: agross, bjorn.andersson, broonie
Cc: linux-arm-msm, linux-spi, linux-kernel, Xingbang Liu
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>
---
drivers/spi/spi-qup.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c
index d39dec6d1c91..00d6084306b4 100644
--- a/drivers/spi/spi-qup.c
+++ b/drivers/spi/spi-qup.c
@@ -593,7 +593,6 @@ static irqreturn_t spi_qup_qup_irq(int irq, void *dev_id)
{
struct spi_qup *controller = dev_id;
u32 opflags, qup_err, spi_err;
- unsigned long flags;
int error = 0;
qup_err = readl_relaxed(controller->base + QUP_ERROR_FLAGS);
@@ -625,10 +624,10 @@ static irqreturn_t spi_qup_qup_irq(int irq, void *dev_id)
error = -EIO;
}
- spin_lock_irqsave(&controller->lock, flags);
+ spin_lock(&controller->lock);
if (!controller->error)
controller->error = error;
- spin_unlock_irqrestore(&controller->lock, flags);
+ spin_unlock(&controller->lock);
if (spi_qup_is_dma_xfer(controller->mode)) {
writel_relaxed(opflags, controller->base + QUP_OPERATIONAL);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] spi: qup: replace spin_lock_irqsave by spin_lock in hard IRQ
2022-03-02 7:15 [PATCH] spi: qup: replace spin_lock_irqsave by spin_lock in hard IRQ Xingbang Liu
@ 2022-03-07 20:39 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-03-07 20:39 UTC (permalink / raw)
To: Xingbang Liu, bjorn.andersson, agross
Cc: linux-arm-msm, linux-spi, linux-kernel
On Wed, 2 Mar 2022 15:15:21 +0800, Xingbang Liu wrote:
> The code has been in a irq-disabled context since it is hard IRQ. There
> is no necessity to do it again.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/1] spi: qup: replace spin_lock_irqsave by spin_lock in hard IRQ
commit: fa0f3db49e10ac61774e1c90167ec79429d6fd56
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-07 20:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-02 7:15 [PATCH] spi: qup: replace spin_lock_irqsave by spin_lock in hard IRQ Xingbang Liu
2022-03-07 20:39 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).