Commit 120ae805 authored by Tian Tao's avatar Tian Tao Committed by Ulf Hansson
Browse files

mmc: moxart: 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: default avatarTian Tao <tiantao6@hisilicon.com>
Link: https://lore.kernel.org/r/1604021319-31338-1-git-send-email-tiantao6@hisilicon.com


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 86d9bf50
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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;
}