Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp899732pxb; Wed, 3 Feb 2021 23:15:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+c58oaZPZspG3dxbu6np+b9LWlYzAhgJUQZvseAr14Xc7RVBr7B4/MSU6C9uKMguxpsX2 X-Received: by 2002:a17:906:980b:: with SMTP id lm11mr6905020ejb.46.1612422926850; Wed, 03 Feb 2021 23:15:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612422926; cv=none; d=google.com; s=arc-20160816; b=AE8IKTHlTEjPwnTnblyXT88s1GKc78bI7t7LUtQx6C4Wcnn+FMCnejch+2EN3vc+U+ 2vpGIDnBLuKhdHI/nToSTNaFUfMUb7/keAUyTiHs7cHN+pRTDjBA5sKwZ8mTGmFgvl2h TixKWfA+3Rateymkc+OGOgnjS3CXLnoGfEVwhFs/ySB1/QxM0uhNL8gtSx2Bv8Y/lPch dTpsVsXzhG4vphtRtT2E+SrEMdIIctmSThzBrv8l/wSn+KEwtWGpNtwm0MtyvT5pCcWq S5pROodqRLruC+3SK53QPFY4gKT3rb8xfrTGt+/rDV2cFObGYWXvz78yfoC9mKT6A3Tb U/Zg== 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:cc:to:from; bh=s3pxHXhYMBMoI+TfmCSJuomw4p/1kfrk+Jfvvs0ks0E=; b=PRry2Uy/zneApByhh2xB+2nihniBHlpc/tfEq419/Qd4aUb6IlBBR2+zQUlURNh/uZ WYTQl6zHymYCtI4VhVttJSUde9fF0xtCmar634PDOGqi/xXq4idE52HhehjxHnzvyQic rt/Nw4FW7l7OLOB5CnrGGQLz9SYjCiDQLcvV9M+xdaeIoITYbxk2QqlFG2d1gUGrDj+N npzr2ALQbqlaOITn++vAD8LqnfePukmmeTcrWPX9i8oxACouSfFrXGT/R4o6vGmwaNdW SK02DQm+FECfNcc4mkU383VAyWmRQNSZLRmv+OD4FtxY056SRdRT0NWAWRNW+heV4+U4 rvcg== 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 x9si3011015ejc.595.2021.02.03.23.15.02; Wed, 03 Feb 2021 23:15:26 -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 S233408AbhBDHKp (ORCPT + 99 others); Thu, 4 Feb 2021 02:10:45 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:12124 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234206AbhBDHKZ (ORCPT ); Thu, 4 Feb 2021 02:10:25 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DWV536Q3Bz162SJ; Thu, 4 Feb 2021 15:08:23 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Thu, 4 Feb 2021 15:09:33 +0800 From: Xiaofei Tan To: , , , CC: Xiaofei Tan , , , Subject: [PATCH] mmc: cavium: Replace spin_lock_irqsave with spin_lock in hard IRQ Date: Thu, 4 Feb 2021 15:07:18 +0800 Message-ID: <1612422438-32525-1-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is redundant to do irqsave and irqrestore in hardIRQ context, where it has been in a irq-disabled context. Signed-off-by: Xiaofei Tan --- drivers/mmc/host/cavium.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/cavium.c b/drivers/mmc/host/cavium.c index c5da3aa..4bb8f28 100644 --- a/drivers/mmc/host/cavium.c +++ b/drivers/mmc/host/cavium.c @@ -436,12 +436,11 @@ irqreturn_t cvm_mmc_interrupt(int irq, void *dev_id) { struct cvm_mmc_host *host = dev_id; struct mmc_request *req; - unsigned long flags = 0; u64 emm_int, rsp_sts; bool host_done; if (host->need_irq_handler_lock) - spin_lock_irqsave(&host->irq_handler_lock, flags); + spin_lock(&host->irq_handler_lock); else __acquire(&host->irq_handler_lock); @@ -504,7 +503,7 @@ irqreturn_t cvm_mmc_interrupt(int irq, void *dev_id) host->release_bus(host); out: if (host->need_irq_handler_lock) - spin_unlock_irqrestore(&host->irq_handler_lock, flags); + spin_unlock(&host->irq_handler_lock); else __release(&host->irq_handler_lock); return IRQ_RETVAL(emm_int != 0); -- 2.8.1