Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2931033pxb; Mon, 16 Nov 2020 00:37:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/6DpOplHzym5tU3BAnSAa9ayqYJDLOIzFdOB8whePTVkLm8hdmj55eAZ8nazNYgSxh+Oq X-Received: by 2002:a17:906:6a15:: with SMTP id o21mr13170400ejr.305.1605515843757; Mon, 16 Nov 2020 00:37:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605515843; cv=none; d=google.com; s=arc-20160816; b=Je7+Kt44k4xG818NwL5fKIx8nLIVoUwEvxtPdLpDCZotSaZGJs5QbMppCIKT5RdNg/ GW5a6E2Bz5kF6GJa4MaANY/VzWCD2+Ko1pUnMvkuaREoZlgqVMjXwDgUNL0hLenz7R4z FGxkMSADb1RxZqHiqx2lroipbYCRLjQHYeLFmtll/LiFMa8bpEFRKnjEmJn3nmpnM6hg mwH+2IylWE4q7sCwwUPBeTZ4AVVO1gwizPdGSc1cx0ZlnKL8wAK7UyzMTfI6bvpcOz1p BamiKY55idT5uhAdtP9Apwus4UmhzApH11Y5Q/Ce9RJhRxNMdTWMn+Blj68JHhHXuQwk dGBA== 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=pny2W6aEhgAa/yvPb7v2jqwobMjyBVYH0FuCJ1EAZl4=; b=sm1QjefHoQNjEK6Tkln4AgQan4BlQqwTaLrefrRiQrhxd/Yq/JOMgn7Rqa0Z4jCcuT 1aPZLpThTn59zwr6FegXMZ9WhbQLbYpUNL3L6hBMWkPfR8yT/MeCiY9igenlJMIpqjK4 cOMmyGmmarRbP3hO6qE4RJNmAD/Kq3WDYw+ypJlOt04l7fPciiaPl61ln0goCkrqp5ua qWasAAJgt6E40Gs1hbBtBfIZel/mKu6TU3hh0RV2Y1kL8fxLo1ODVrVm/4ZH5vBQe8YR w1F8vxKMwsVH4Tpu7ARQ4czq8LUNYHm16BGLA6I+fg/4t48nsvGPaevGtOV3t2RA1j5N Ch/A== 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 j15si10916818ejv.71.2020.11.16.00.37.01; Mon, 16 Nov 2020 00:37:23 -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 S1727475AbgKPIeY (ORCPT + 99 others); Mon, 16 Nov 2020 03:34:24 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7246 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727384AbgKPIeY (ORCPT ); Mon, 16 Nov 2020 03:34:24 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CZMmq2rB3zkY8s; Mon, 16 Nov 2020 16:34:03 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Mon, 16 Nov 2020 16:34:15 +0800 From: Tian Tao To: , , CC: , , , Subject: [PATCH] usb: mtu3: replace spin_lock_irqsave by spin_lock in hard IRQ Date: Mon, 16 Nov 2020 16:34:42 +0800 Message-ID: <1605515682-23771-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/usb/mtu3/mtu3_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_core.c b/drivers/usb/mtu3/mtu3_core.c index b3b4599..a6d7684 100644 --- a/drivers/usb/mtu3/mtu3_core.c +++ b/drivers/usb/mtu3/mtu3_core.c @@ -745,10 +745,9 @@ static irqreturn_t mtu3_u2_common_isr(struct mtu3 *mtu) static irqreturn_t mtu3_irq(int irq, void *data) { struct mtu3 *mtu = (struct mtu3 *)data; - unsigned long flags; u32 level1; - spin_lock_irqsave(&mtu->lock, flags); + spin_lock(&mtu->lock); /* U3D_LV1ISR is RU */ level1 = mtu3_readl(mtu->mac_base, U3D_LV1ISR); @@ -769,7 +768,7 @@ static irqreturn_t mtu3_irq(int irq, void *data) if (level1 & QMU_INTR) mtu3_qmu_isr(mtu); - spin_unlock_irqrestore(&mtu->lock, flags); + spin_unlock(&mtu->lock); return IRQ_HANDLED; } -- 2.7.4