Skip to content

Commit 5a94189

Browse files
hangdianmarkstorulf
authored andcommitted
mmc: mxcmmc: replace spin_lock_irqsave with spin_lock in ISR
As you are already in ISR, it is unnecessary to call spin_lock_irqsave. Signed-off-by: jun qian <hangdianqj@163.com> Reviewed-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 5454181 commit 5a94189

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/mmc/host/mxcmmc.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,6 @@ static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat)
728728
static irqreturn_t mxcmci_irq(int irq, void *devid)
729729
{
730730
struct mxcmci_host *host = devid;
731-
unsigned long flags;
732731
bool sdio_irq;
733732
u32 stat;
734733

@@ -740,9 +739,9 @@ static irqreturn_t mxcmci_irq(int irq, void *devid)
740739

741740
dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat);
742741

743-
spin_lock_irqsave(&host->lock, flags);
742+
spin_lock(&host->lock);
744743
sdio_irq = (stat & STATUS_SDIO_INT_ACTIVE) && host->use_sdio;
745-
spin_unlock_irqrestore(&host->lock, flags);
744+
spin_unlock(&host->lock);
746745

747746
if (mxcmci_use_dma(host) && (stat & (STATUS_WRITE_OP_DONE)))
748747
mxcmci_writel(host, STATUS_WRITE_OP_DONE, MMC_REG_STATUS);

0 commit comments

Comments
 (0)