Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp356537yba; Wed, 24 Apr 2019 02:24:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzenZZNd8XSbaK2kSJ0sLdGy4Ko1l1NfJe8v309gzF1O825b4TCpxonf+QKcE0Z0KLWNm7E X-Received: by 2002:aa7:982f:: with SMTP id q15mr632592pfl.244.1556097883176; Wed, 24 Apr 2019 02:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556097883; cv=none; d=google.com; s=arc-20160816; b=dtmfJ9PBIa8rr8EYSZRLUFxcM6JZBH9QVpd5HAxNDw4+/U2P29xfkVWr8e3h9g7kKK pS5VStV4uKoCtJYZUHg1fx+y3u7nvZhbNPATyfxkC6t0kUNbfQmS6ZfW9OAtjq8p5Mrz S9iZMCks7no4nXofXx3sP8Fz9r5jYiHyDdVqmQVpJogxF19m2eces1hSSN7A0KfH4jrU 1voGvtxb5qv043cYw+fleQcgnzO6tG7HYoK6pf9oiQ6Wn4aUUFJaHRLdgbh/gjaTUW2T u5mARKVa7Z9p3iXUu5NkTw3U1B2eRYEp2HCt8VWk/RZWx7Fy6CiO5GWp8MkP62mwh9DO 5iaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DmfUFCQRSqz63SKsLQYeEqVmDXqSwo7Sq/8sl6cdigM=; b=FkChC8p/efzvkLz3o4G8o+LhU0981gMT72l4Go2aqhWZ4nxGH8YBAh4IeAK3ZE4cJ3 MgxZW8UgBvDFSCdyFTBxLXjeSvRTZDPrEmh1+gw1vGqajvRnEQki0XzHovrFcYSACI0R P2868L/7RCuLgcD/Ef6UR/IfJti7oOqIG04iBF5FBsG/X/OrRT1b399RO/8q1eI4AqeU 7+eWLmFxJOEJaXAFmmft8zPGGEom0cxbYXkipDntU8BfRR/plpTucdlkiuZQm9rocMie 90nYdt00fBfscdHzZqeSyz8ndzlFLeCw2OKbXjrupMXwGISkgNWVkm0IwTVx4xzbpbg4 t9wQ== 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 b41si18922163pla.241.2019.04.24.02.24.28; Wed, 24 Apr 2019 02:24:43 -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 S1727935AbfDXJXe (ORCPT + 99 others); Wed, 24 Apr 2019 05:23:34 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:34402 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbfDXJXe (ORCPT ); Wed, 24 Apr 2019 05:23:34 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 2037A25AE99; Wed, 24 Apr 2019 19:23:32 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id 1885B94041B; Wed, 24 Apr 2019 11:23:30 +0200 (CEST) Date: Wed, 24 Apr 2019 11:23:30 +0200 From: Simon Horman To: Jiada Wang Cc: rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, niklas.soderlund+renesas@ragnatech.se, geert+renesas@glider.be, sergei.shtylyov@cogentembedded.com, marek.vasut+renesas@gmail.com, kuninori.morimoto.gx@renesas.com, hien.dang.eb@renesas.com, fabrizio.castro@bp.renesas.com, dien.pham.ry@renesas.com, biju.das@bp.renesas.com, erosca@de.adit-jv.com, george_davis@mentor.com, joshua_frkuska@mentor.com Subject: Re: [PATCH v4 1/2] thermal: rcar_gen3_thermal: fix interrupt type Message-ID: <20190424092329.bfohle5relhof4v7@verge.net.au> 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> Organisation: Horms Solutions BV User-Agent: NeoMutt/20170113 (1.7.2) 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 Reviewed-by: Simon Horman Tested-by: Simon Horman