Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp970975yba; Wed, 24 Apr 2019 12:41:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlyygTsak6mJuU0tpFw/+hEr87pidYq7t3gS84l16oQCBXq7FF9iWM/EQx6edkW9MBg4S/ X-Received: by 2002:a65:5009:: with SMTP id f9mr32234731pgo.390.1556134889218; Wed, 24 Apr 2019 12:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556134889; cv=none; d=google.com; s=arc-20160816; b=w5HKRe9iGGql+J4GAJhvKfcfebGZqkCbS+1r7K3XJc81dZEVVv1jVxHMzYtyEla9ft KtdeVSn60+wQDg621gUhDlgiPuJcZmLujU/ik+D3/jONFsyXBMIOEVGtY8HELTEkMaF3 rhsHziSR0pMKu8SX+LEq2FaSP670LW8sXj/ED8/9tnYWO7dPFvGSxnrbL0o2u/aN5Nsb K+4ZpEdJRTWMTwl7q2a9xru/1jPO6pi8kSUapMYEvEuLdupD4vo+ORAwW3Rc9WVbPD4H kJPy2FTfpuvhdJ5YyQDvXvzD0MBV4na67UI8R5nrneUP597B2NMWBoDglb/DtT3s+qPH IGHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=0SgSxw0wOcYjww5nGtmNuJW1dyjZeIsqI35xlYcRVCI=; b=ICqw8jPXv3Pd5Q0EaytoWiwZsmRHO94naw1e/HyOuNArDgL92Ve/Iy22QGZmJ9hqkj ywk9pFwNWcsIk0jqQJ5O8bRJ5oQWQWWMkcT16MeW6YpdF0dgiz1naKCuCOSimghX/vbT xGPQzdNTE0RvGs1ocG3fXGE8uWIJxCT2MXV2hs7Gqy/5DF4NLwAGWbrjJQBPjNen5KzM WqU/gQqoFHaJMmokiwdFjCRFK4Vph6GXMb1keuEjxktPiU35ZVVz5YgWPZ/6imaygb1p PZ0KSpB5gJ+fgLOJfbog2Rslsfzg0P3d+y7OJcyl67PTKY3i1wMSiwBXgnbfrdaChtM3 gKSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f18si19005696pgg.361.2019.04.24.12.41.13; Wed, 24 Apr 2019 12:41:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730053AbfDXM2V (ORCPT + 99 others); Wed, 24 Apr 2019 08:28:21 -0400 Received: from smtp1.de.adit-jv.com ([93.241.18.167]:34359 "EHLO smtp1.de.adit-jv.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727303AbfDXM2V (ORCPT ); Wed, 24 Apr 2019 08:28:21 -0400 Received: from localhost (smtp1.de.adit-jv.com [127.0.0.1]) by smtp1.de.adit-jv.com (Postfix) with ESMTP id 4A3683C013A; Wed, 24 Apr 2019 14:28:18 +0200 (CEST) Received: from smtp1.de.adit-jv.com ([127.0.0.1]) by localhost (smtp1.de.adit-jv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AS96Nyh7iA84; Wed, 24 Apr 2019 14:28:08 +0200 (CEST) Received: from HI2EXCH01.adit-jv.com (hi2exch01.adit-jv.com [10.72.92.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp1.de.adit-jv.com (Postfix) with ESMTPS id 863893C00D1; Wed, 24 Apr 2019 14:28:08 +0200 (CEST) Received: from vmlxhi-102.adit-jv.com (10.72.93.184) by HI2EXCH01.adit-jv.com (10.72.92.24) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 24 Apr 2019 14:28:08 +0200 Date: Wed, 24 Apr 2019 14:28:05 +0200 From: Eugeniu Rosca To: Jiada Wang CC: , , , , , , , , , , , , , , , , , Eugeniu Rosca , Eugeniu Rosca Subject: Re: [PATCH v4 1/2] thermal: rcar_gen3_thermal: fix interrupt type Message-ID: <20190424122805.GA22366@vmlxhi-102.adit-jv.com> References: <20190424051145.23072-1-jiada_wang@mentor.com> <20190424051145.23072-2-jiada_wang@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190424051145.23072-2-jiada_wang@mentor.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.72.93.184] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 02:11:44PM +0900, Jiada Wang wrote: > Currently IRQF_SHARED type interrupt line is allocated, but it > is not appropriate, as the interrupt line isn't shared between > different devices, instead IRQF_ONESHOT is the proper type. > > By changing interrupt type to IRQF_ONESHOT, now irq handler is > no longer needed, as clear of interrupt status can be done in > threaded interrupt context. > > Because IRQF_ONESHOT type interrupt line is kept disabled until > the threaded handler has been run, so there is no need to protect > read/write of REG_GEN3_IRQSTR with lock. > > Fixes: 7d4b269776ec6 ("enable hardware interrupts for trip points") > Signed-off-by: Jiada Wang Based on https://patchwork.kernel.org/cover/10914079/#22603533 : Reviewed-and-Tested-by: Eugeniu Rosca Thanks! -- Best regards, Eugeniu.