Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5370054pxu; Wed, 21 Oct 2020 23:43:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEs7o0z4htZzY54RixYriI112Y5nuqqZRFZArDS+2jT8blMk7x+eQQpX5WugZMWjYW4eeS X-Received: by 2002:a17:906:139a:: with SMTP id f26mr889043ejc.472.1603349038358; Wed, 21 Oct 2020 23:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603349038; cv=none; d=google.com; s=arc-20160816; b=YhYXiWlTf6FDFo2IjiSgkmW5SiqUuIW39Zto9BJ+w0o9KDifxZO2e10jAzZOr7a+0A HG3Cm/Dot+eRC6zDJggn9YuIOLdrb9k7SP4iKiMu+W67/naI1aWPtNfsGFLDPQNtRZiW EXAsSYdWqtcupcTCMw8INUtyJuOhgLyFoTcKArnQvlxEL0rFGHvGip4rSaVJfCmdanqI TypavP7Q1qR+0hGQ7zVR4s9x1txr3d+idc3tquMVibr2gEE5BbxvmecWWfqoazEa1jTT bE95hAUUdnhPur07Uo97/JFWMzmhJPBwI4gjmuivk7QW9L6rMRLM1QofHAGhoyoz15f3 grYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=y84p6tfQj5a5ufC8cVAYYecBEzVsSbhLXjpiNjIVQbQ=; b=vbijRdTy+s/VVP8dJjKIoWoNtE/fVf7nvQJUvQm64cKh9/SRuyDWZP7kDbvASCvnPV jHgadXX4oha5czqqaWSDsX4b8xxF5UI4nStjZona+5yV28ODsugE1mLjTPzDWQZjpRzx 6hPOebfF9dU2X6z6M6nQxmT5+nrO33P+Jfy0wjMq+YRJ95e+RxRvm0/8+6E2mNnqs+Sd 39BNhHYUlee7a99Tb74UyQNFXWcEIUxzewHD7Om5nuAN6mo2N6bvfApQN+Vftm+QIscl cY+trR3ZJ2zvf8PphGXfSblgxWScW7sdWFBULqpo54tRVaeefSJRcXpYdE/YJWhFrkAU XFpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=MfyZo6Or; 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 u18si377234edo.34.2020.10.21.23.43.36; Wed, 21 Oct 2020 23:43:58 -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=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=MfyZo6Or; 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 S2409780AbgJUTnB (ORCPT + 99 others); Wed, 21 Oct 2020 15:43:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409773AbgJUTnA (ORCPT ); Wed, 21 Oct 2020 15:43:00 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7013AC0613CF for ; Wed, 21 Oct 2020 12:43:00 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id 77so4662916lfl.2 for ; Wed, 21 Oct 2020 12:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=y84p6tfQj5a5ufC8cVAYYecBEzVsSbhLXjpiNjIVQbQ=; b=MfyZo6Or8kl6lV16zl9GfMos/tof+E3Zn3bakSOq9Tb7OStRvHEzNwAiG55wyV05y2 Fz3XC5t3tV1VDRDA0a3zvEBJP9eKAnBbN/1bPG2tr3ZQRqw5ZaLuWDcleI9zjBRx16Vq bsEsHp//RVAUbkYuFG6d4uDa82fs3sLv+O0O+vVGkSYDGz8WeKVqzar66LnU8CFrzc2z ibmKyLRuwChKcpzoi/5c5QQYG/FMRATcoA2nnD7vlPlC/feDJAEniIWJGsTtSFkDt+Za ijyZgqUuGM8JisvtDlTNz7gqmY6N2S0W2JKs9Gt3VM0qU74JPMQ88JLneYWVuVtGb4Fk vctg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=y84p6tfQj5a5ufC8cVAYYecBEzVsSbhLXjpiNjIVQbQ=; b=H578mjPtGhKRi7UWbEfcsXPXddLcMGjnxfJQ4TdtWI1W+OE6MOFlewgOV3/n3bdpmr vKM6CXzX19nRrREPSjtZ5kaK7tXgCpWtMRrclGf3g5HHtITQY5M+bime+EtEro9G2zBy akhfC82BCAwlehELfqqNHDNhfRP+fB+JYmmw07VIg/tbZOobsOd9CbghovKnpfj4j8zA xXEeDbXklMXblSae9uWEdK6aZCVWPhTpr4HHt+xTz6w6WlYF2tnUPqE/nuDlkJJhHezL pnWxXUxt/DfQaH9EN4u9NvRvqanjedxRksGMDg5MR9vD7ar5HcObz6th0ZrktqZ07Doz +Edw== X-Gm-Message-State: AOAM532pA4e5nWbM1dqDUAajuFqwPxOi8yk2najZ0PGTQmPijMLO8mx2 GKicwjJEG9Vjn8WoCMsgeTdH+g== X-Received: by 2002:a19:4ac8:: with SMTP id x191mr1655063lfa.155.1603309378893; Wed, 21 Oct 2020 12:42:58 -0700 (PDT) Received: from localhost (h-209-203.A463.priv.bahnhof.se. [155.4.209.203]) by smtp.gmail.com with ESMTPSA id f129sm527344lfd.201.2020.10.21.12.42.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2020 12:42:57 -0700 (PDT) Date: Wed, 21 Oct 2020 21:42:57 +0200 From: Niklas =?iso-8859-1?Q?S=F6derlund?= To: Tian Tao Cc: rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org, linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] thermal: replace spin_lock_irqsave by spin_lock in hard IRQ Message-ID: <20201021194257.GC2158081@oden.dyn.berto.se> References: <1603249530-25218-1-git-send-email-tiantao6@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1603249530-25218-1-git-send-email-tiantao6@hisilicon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tian, Thanks for your work. On 2020-10-21 11:05:30 +0800, 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 Tested-by: Niklas S?derlund > --- > 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; > > -- > 2.7.4 > -- Regards, Niklas S?derlund