Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2954295pxx; Sun, 1 Nov 2020 16:53:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwF2nclJRCeVOnj/i9esT9nnKo2FJQH39efA1anzBxiF59z0O1IzEfMxXTrZzP1Y//rJuOu X-Received: by 2002:a50:e08e:: with SMTP id f14mr13851870edl.374.1604278430018; Sun, 01 Nov 2020 16:53:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604278430; cv=none; d=google.com; s=arc-20160816; b=WCHj8TupVNNSbJDK8U/TnDdeGS1YT7tsb77UEPE4jeU+aeTe5GSGxTI1p1eXqj3YuA fD3SKUXhff4WwUasfGZqNxoTfdURAf+pshjE9AHmKwmMEQetv/aE9wmrsOjqJGgrQ7JE 0pnQJbWFFpxo7WYR8Q2ugF02a3vxYgKvStCeToc8LrP87k67sEiJJjHnARg8cvNaozTK JufXO+2pfE8MNYG4p87SPJTQXd5U2NvUuo3SRYOYq9T0tidOuTnzvW0vjgu1l56Cwmtx y8kShgCPJyw34vsSgvP6ffb2oSAJZxLaRbfBmvYYDWdySCy/ET0W85BqlAaH2Xk9eHtf U7AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:to:from; bh=WZg9EFz4UKZy+ALhPnmmeCpBd3bZw+QanPFYf8QUqTo=; b=f5UqW3Fr+yP+jzbt1hI9eYbvajT8Bf247zqr/4NAwMBE0h9G2yd82PGMDElAdgysE+ 1KMyu/zGaBCDog6b4Sp9s+uk0Go9Owu3EFeb0p8BV2GRFK1vOzbXTiVeMi0RG+5hYj43 TF6UcX3lteO/BfuDlmacSJK7u4pdxjjZOcB/3v6zrE2vN8nLUbT4uTstpw2BOVSjtfVF 6RhisuKFKUYOiMdO9lplg0pvA2JwSCon2b+j22gXUJB8WhPugG1GCjTBgu3f7G1LQAQP RZN0CSyaBWiTH/koUUMVYzs/UiIwY/7Mi6Vz8v0oJVyOp/xD/WOftxC5ZQStUwAwG8PV qAFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp23si7939714ejb.561.2020.11.01.16.53.27; Sun, 01 Nov 2020 16:53:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727505AbgKBAvs (ORCPT + 99 others); Sun, 1 Nov 2020 19:51:48 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6686 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727335AbgKBAvs (ORCPT ); Sun, 1 Nov 2020 19:51:48 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CPZ9s1fsPz15Q0f; Mon, 2 Nov 2020 08:51:45 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Mon, 2 Nov 2020 08:51:41 +0800 From: Tian Tao To: , , , , , , Subject: [PATCH] mmc: owl-mmc: replace spin_lock_irqsave by spin_lock in hard IRQ Date: Mon, 2 Nov 2020 08:52:17 +0800 Message-ID: <1604278337-55624-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/mmc/host/owl-mmc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/owl-mmc.c b/drivers/mmc/host/owl-mmc.c index ccf214a..82d2bad 100644 --- a/drivers/mmc/host/owl-mmc.c +++ b/drivers/mmc/host/owl-mmc.c @@ -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; } -- 2.7.4