projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86d9bf5
)
mmc: moxart: replace spin_lock_irqsave by spin_lock in hard IRQ
author
Tian Tao
<tiantao6@hisilicon.com>
Fri, 30 Oct 2020 01:28:39 +0000
(09:28 +0800)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 16 Nov 2020 10:59:29 +0000
(11:59 +0100)
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: Tian Tao <tiantao6@hisilicon.com>
Link:
https://lore.kernel.org/r/1604021319-31338-1-git-send-email-tiantao6@hisilicon.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/moxart-mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/moxart-mmc.c
b/drivers/mmc/host/moxart-mmc.c
index
f25079b
..
89bff4e
100644
(file)
--- a/
drivers/mmc/host/moxart-mmc.c
+++ b/
drivers/mmc/host/moxart-mmc.c
@@
-465,9
+465,8
@@
static irqreturn_t moxart_irq(int irq, void *devid)
{
struct moxart_host *host = (struct moxart_host *)devid;
u32 status;
- unsigned long flags;
- spin_lock
_irqsave(&host->lock, flags
);
+ spin_lock
(&host->lock
);
status = readl(host->base + REG_STATUS);
if (status & CARD_CHANGE) {
@@
-484,7
+483,7
@@
static irqreturn_t moxart_irq(int irq, void *devid)
if (status & (FIFO_ORUN | FIFO_URUN) && host->mrq)
moxart_transfer_pio(host);
- spin_unlock
_irqrestore(&host->lock, flags
);
+ spin_unlock
(&host->lock
);
return IRQ_HANDLED;
}