Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3410pxu; Thu, 3 Dec 2020 17:27:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCmPmG5WQAymrSpIRz8R0F+NNypMYty1mTmD04sHPthh9Tnsre8qk17Ns8U40z24hxQu21 X-Received: by 2002:a17:907:20a6:: with SMTP id pw6mr5168563ejb.73.1607045242332; Thu, 03 Dec 2020 17:27:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607045242; cv=none; d=google.com; s=arc-20160816; b=0z6BygnqWLYyGyrYNEZSnT7f9/AbtY/ZNrNjJ3eyxjgzBeCXjcEF3s1LPoWBmk7tqH 277UOyRuac2o292SyTh9eoI+Tx5URkScTI8lRx1YEztZJTNXhcoLqcsb/VTmsi526BoH ZnH8+scxtpgknPmvUL4bhLlv3vFtSyCPf98Yjnw86V39c7K6F7F0B9oXWmrgRBhzQpes MevSlNuVUQ5t4FWr++gsxDdCplVcG1Ie4JvPN+lGPRb1a1hcio5tkmIwZXpBxzWes3J4 omBxXjcvrrMoCrJWTTnHpdmvFhqPmtqLshJM+lxefp9Ozxqtq2yqXSemhyLRAFAyg4eQ BZMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:to:from; bh=rLRCd3ZG4z5PMXop2QDh3xkf8g6+YfVDJ2zKb+UHcjk=; b=sxgoeCV5j2nhVZWp5ONntHCh7EiDLAo806FivHPcvFO4G6HkX82k1XHM+Eq0Vxcac4 auDc36w3+4fXY88dF/psUr8iTOIEPvQq80cz5lW6LAP6VZXV5JwPsLEUTm7QoaftARF1 zkCAkkdlbJ81QCngFH6UFGNWq5y/q0aT0rmuzgav2PCwABmWo94PmQiQCvYVIPxNkkSp pDd1OgkOjULqtHYroWf5yqmmogXDzpRiSvuoI5Y7DTQj6zjFT/NuMs6xqOVvRPbKZ4YY cOhFCY9ZUd2PP0SRXSk1Qc/78vrfkKuWw5pylvPZ9+sHogRLYjtcXSp0F2I0E/7h7/YU B+iw== 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 cb24si1860509edb.552.2020.12.03.17.27.00; Thu, 03 Dec 2020 17:27:22 -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 S2389567AbgLDBYc (ORCPT + 99 others); Thu, 3 Dec 2020 20:24:32 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9005 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389549AbgLDBYa (ORCPT ); Thu, 3 Dec 2020 20:24:30 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CnFLk4SQ3zhmDR; Fri, 4 Dec 2020 09:22:38 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Fri, 4 Dec 2020 09:23:04 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH] drm/msm/dsi: Replace spin_lock_irqsave by spin_lock in hard IRQ Date: Fri, 4 Dec 2020 09:23:10 +0800 Message-ID: <1607044999-47666-5-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607044999-47666-1-git-send-email-tiantao6@hisilicon.com> References: <1607044999-47666-1-git-send-email-tiantao6@hisilicon.com> 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 It is redundant to do irqsave and irqrestore in hardIRQ context. Signed-off-by: Tian Tao --- drivers/gpu/drm/msm/dsi/dsi_host.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index b17ac6c..b2fb5c3 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -1555,15 +1555,14 @@ static irqreturn_t dsi_host_irq(int irq, void *ptr) { struct msm_dsi_host *msm_host = ptr; u32 isr; - unsigned long flags; if (!msm_host->ctrl_base) return IRQ_HANDLED; - spin_lock_irqsave(&msm_host->intr_lock, flags); + spin_lock(&msm_host->intr_lock); isr = dsi_read(msm_host, REG_DSI_INTR_CTRL); dsi_write(msm_host, REG_DSI_INTR_CTRL, isr); - spin_unlock_irqrestore(&msm_host->intr_lock, flags); + spin_unlock(&msm_host->intr_lock); DBG("isr=0x%x, id=%d", isr, msm_host->id); -- 2.7.4