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

mmc: owl-mmc: 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>
Reviewed-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/1604278337-55624-1-git-send-email-tiantao6@hisilicon.com


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 291a81c3
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -134,10 +134,9 @@ static void owl_mmc_update_reg(void __iomem *reg, unsigned int val, bool state)
static irqreturn_t owl_irq_handler(int irq, void *devid)
{
	struct owl_mmc_host *owl_host = devid;
	unsigned long flags;
	u32 state;

	spin_lock_irqsave(&owl_host->lock, flags);
	spin_lock(&owl_host->lock);

	state = readl(owl_host->base + OWL_REG_SD_STATE);
	if (state & OWL_SD_STATE_TEI) {
@@ -147,7 +146,7 @@ static irqreturn_t owl_irq_handler(int irq, void *devid)
		complete(&owl_host->sdc_complete);
	}

	spin_unlock_irqrestore(&owl_host->lock, flags);
	spin_unlock(&owl_host->lock);

	return IRQ_HANDLED;
}