Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp700629pxx; Mon, 26 Oct 2020 20:03:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMORKnYGf+a1dfj6LHlAi+k50+Fv8R92ny1VTUodtHbKqxTwczZZQVSh4zeifaVrNFp3YV X-Received: by 2002:a17:906:fad8:: with SMTP id lu24mr335201ejb.486.1603767818815; Mon, 26 Oct 2020 20:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603767818; cv=none; d=google.com; s=arc-20160816; b=oG++YdW7pFD7C7YPRq3eJBgyImHhW4VBjoORcIU1qT5lSaf8tQTUOokazx9paz0zlq XTSFP4UOTDuqVOZoNc40IvQiDvPuzCTyTai0SuDBQyWpG7OjZCsrb8Quyf3GXw1FQm7J 05ElshaUclEIK50j7WnV6cVFJb5LUPuM6W9cjwr8Vs57bPvPzc7VzvKQUG8OpamTDJda DeQHSxgfUJa5UnANKLw2p3oNqHRFfeK0Zy1RAKJdNE5tgPXiMbXziCeGt1SDXpjr8C5S /G8YQb571poSqrDAtn28xgxbA199vxxAKT6x/OQR7MXPeavFCGsUPXausmGrJ4Vpv8Fl UAdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=mb+VsFHRngfApGddoi/2+L16aEwwHQwxUiOwMEFXlgs=; b=oe2TQ+gSn+cYmDtO2p1NvxDPmha2JWAt2S/HDBQT23uS+Ob1WxyqCz86uhIhT6GzoN 9ApyVIcQBgYTUbemihCqIHfgp36KpsYi0SnroONEat0MnK+XEiOCmfg5ir/Z/4QBJC8b 9FjyBlC77gP846v0BR71L6RQczSjyOfHN9qcSL8udwyXbmMw9m8HoIN5usvvbelLPxPA Vgryvv0vnPlMf2dQifOL9B3ElLTWHob92dkD09cRAn0kx+jqKuGeCzHvMhm3pmsQNA95 eRpWwEkAMINV4huzoNuFFxdsJeJKU3daTmdqyS7Mrcr+LWchMEYR8kRtK8tEbBPG9VBL caKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RGM1glyk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si8048972edt.376.2020.10.26.20.03.16; Mon, 26 Oct 2020 20:03:38 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=RGM1glyk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1789759AbgJZS2i (ORCPT + 99 others); Mon, 26 Oct 2020 14:28:38 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34797 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1789755AbgJZS2i (ORCPT ); Mon, 26 Oct 2020 14:28:38 -0400 Received: by mail-wr1-f68.google.com with SMTP id i1so13828524wro.1 for ; Mon, 26 Oct 2020 11:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=mb+VsFHRngfApGddoi/2+L16aEwwHQwxUiOwMEFXlgs=; b=RGM1glykpkt4WTtU0NYkRbCZ3MHwai/Vlg0W0CaowGOLq+YfJ6TaONum9cShrZq706 JupbzNebx8SPwrqG+raIETfojDxCv9RakiErxnhOl5BcZvhZ2T2bVnFEzGvJhcHafkpE ayeayZio7irAins7HIVjUWJbVNhAdlpj7tnxKJ2bdB2CdzfMBa62FpflEQEwp2/ZGhL9 Tawj33jgUZ/6IRz4p9U+sf66NfGKLepJ/TvBM1IM1qwufnh8u8RDNjs8rVfN9+RhBEJ8 fO1O9CGJwTz0zuGkD4eHAUlJu+MDT4o3VTuZcYmqYMEvx0jngzQYw2vO5fINgjW2J7in IB9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mb+VsFHRngfApGddoi/2+L16aEwwHQwxUiOwMEFXlgs=; b=HirORMy1o83jw/BzLAtBje3k8sh5+BGFKFUiMKI+1SLXQxtWs3qSqMJcfc85dJG93Z pTxE1WoCSdlRQW2yVhwgpq0gUZs7yCqfZ4y60srNTvuA+mrIkwjNkoJgIcLCWF+N5/N9 +irk4PnYhV7y9Ts4ccO81iUoSmVg6wBunN2F1ZfQ/V0sFnhS7kSjM6pCCdiC81FtAJCE aAUqksxWyQ9qm5hrtfkO0fXie0Q5YXHkUobzC5S3UIHPNoFKW8lRXu62F9e+IwyyxOYW khwmAYLmMoyjfMXmgM/1Pw96krp64RMM5xJUcFGDXBwdMxa6fZ5ZyvyWEIaQkxwv9awr fNrw== X-Gm-Message-State: AOAM530Kl6BajJ9NPwRwK0xB17Z0PDcSG6ooma4Pe6fr5/p5pjJL0ciH kwmvHixR2W7g8Msq9RGEolFIpQ2RhRyQ4A== X-Received: by 2002:a5d:4802:: with SMTP id l2mr18697933wrq.282.1603736915868; Mon, 26 Oct 2020 11:28:35 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:54a1:359e:38ca:6e1? ([2a01:e34:ed2f:f020:54a1:359e:38ca:6e1]) by smtp.googlemail.com with ESMTPSA id r1sm25662056wro.18.2020.10.26.11.28.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Oct 2020 11:28:35 -0700 (PDT) Subject: Re: [PATCH] thermal: replace spin_lock_irqsave by spin_lock in hard IRQ To: Tian Tao , niklas.soderlund@ragnatech.se, rui.zhang@intel.com, amitk@kernel.org, linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <1603249530-25218-1-git-send-email-tiantao6@hisilicon.com> From: Daniel Lezcano Message-ID: Date: Mon, 26 Oct 2020 19:28:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1603249530-25218-1-git-send-email-tiantao6@hisilicon.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/10/2020 05:05, Tian Tao wrote: > 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 > --- Whe resending with the log improved, please fix the subject: thermal: rcar: Replace ... Thanks -- Daniel > drivers/thermal/rcar_thermal.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c > index 5c2a13b..6ae757d 100644 > --- a/drivers/thermal/rcar_thermal.c > +++ b/drivers/thermal/rcar_thermal.c > @@ -409,16 +409,15 @@ static irqreturn_t rcar_thermal_irq(int irq, void *data) > { > struct rcar_thermal_common *common = data; > struct rcar_thermal_priv *priv; > - unsigned long flags; > u32 status, mask; > > - spin_lock_irqsave(&common->lock, flags); > + spin_lock(&common->lock); > > mask = rcar_thermal_common_read(common, INTMSK); > status = rcar_thermal_common_read(common, STR); > rcar_thermal_common_write(common, STR, 0x000F0F0F & mask); > > - spin_unlock_irqrestore(&common->lock, flags); > + spin_unlock(&common->lock); > > status = status & ~mask; > > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog