Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp357415yba; Wed, 24 Apr 2019 02:26:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQjW8Yit7GNYpDXXOIww7o8aDjdA5k1tOpj6NDselaX20YWpFC8zNZ2Ly0YDYsvDhTXwWU X-Received: by 2002:a05:6a00:11:: with SMTP id h17mr32013706pfk.232.1556097960308; Wed, 24 Apr 2019 02:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556097960; cv=none; d=google.com; s=arc-20160816; b=cqGK3ZJlTL57+UPxggu6YU90wkwe/JOcRgocL5L4CKDIdMry8DWAJ5O5eUnTHEQJuc vReGWLZOebkglaTUZNFsEdsFrwwEUZUNsfJQRolVKUfDfKyQ4gZDLsMYhT/zCZ5j6Wdx PmeqR87YJthIIktWYiVG+xgOR/0jASg8yeqYMh0HzFTzvdtM/sXNq1HIJYrOXM/QHtcW Z7R+AfrJPyYWPok0Sh2qoUxE7WzmB2yyv7CGlxmGl1maZ6brKvHiUpJikjYXLTS2itQN Ht+5/GwNpg+YZXoJJM/DeGtYfvPbnR2U5e0vMVBnrZ8P9nrvGW5M4IclBFbsGbK+WKOu OrEw== 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=tI1jsQos60QPn2V30lSju9kZ+4KTlXiIc+5wXPW3Mls=; b=EiJUhPPS1yvbNvnjqXQtZlYD2OI9xDkvfzjZJ7v26yLXF5cvCmYWmoeXFEKO5XKHRj tNG1j5kg8usKjD+7QwOwPgFHx1AU6aZg+eYaURXPdkj/bgbwcxjOg6IewMOE0fl6iOOD WOrz+Tyqc7N5CkK2PYuNIbGJT9Ll/hyTP34xEwwhtuj83CI/jUel1xva642VqsWEVqDL icBfSCw6PThpN5MIR/slP9FavIJ9LKb4o0pIyhpvo+83qmWAgdi8RFg4uVe2mYBGj1d3 ZjmnCaN+Q9aAJrPrmM6gVzthiHFhoxmtozrM7XC9r0aF4UCCZ8RRawjfk8R4L6Zmfzde BQmA== 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 134si17641353pga.249.2019.04.24.02.25.44; Wed, 24 Apr 2019 02:26:00 -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 S1728683AbfDXJXp (ORCPT + 99 others); Wed, 24 Apr 2019 05:23:45 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:34434 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728033AbfDXJXo (ORCPT ); Wed, 24 Apr 2019 05:23:44 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id A69D625AE99; Wed, 24 Apr 2019 19:23:41 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id B806894041B; Wed, 24 Apr 2019 11:23:39 +0200 (CEST) Date: Wed, 24 Apr 2019 11:23:39 +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 2/2] thermal: rcar_gen3_thermal: disable interrupt in .remove Message-ID: <20190424092339.7a3ahaiij2qnuwh5@verge.net.au> References: <20190424051145.23072-1-jiada_wang@mentor.com> <20190424051145.23072-3-jiada_wang@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190424051145.23072-3-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:45PM +0900, Jiada Wang wrote: > Currently IRQ remains enabled after .remove, later if device is probed, > IRQ is requested before .thermal_init, this may cause IRQ function be > called before device is initialized. > > this patch disables interrupt in .remove, to ensure irq function > only be called after device is fully initialized. > > Signed-off-by: Jiada Wang Reviewed-by: Simon Horman