Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4347022yba; Tue, 7 May 2019 16:56:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyf5T6gkOpVeGFiby8ighmoroUFdcg3i7NL3ZIfu9fAyZ7wExS5yxNDucYJawNfacgGSTCd X-Received: by 2002:a62:3501:: with SMTP id c1mr45615946pfa.184.1557273404132; Tue, 07 May 2019 16:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557273404; cv=none; d=google.com; s=arc-20160816; b=UVwqoL9ivGP54bZz3Vg3OUEoujI707/YpJKJGE2sgbcnrmsq6YRgy1QC9Gs02hfjVZ ajkBCrrVzFcWRn+jU26wBtQ6UemR2S83hOtuaelQtQ6QRRBQhQetvPQPuR321P2zQJPD g/BAEUCv9h5qjBLp5QGmTmm2E7s7JaEOpvrc+YODwjF9bYP9HfW2t0sAwBxEVWF9yIVs 6j2SQw4uQ2/N2gcliBxQPHDmjSwjBNl5brdOtXtHj9oStDx5pOlQFreYHNX47twtOJog LtfG4Gi+k0Wj3HrukV62S75OimeT8iTNINhi1NtjcCu+psGhAOJ3tFU9yE2dm2lKAlXS q7kw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:dkim-signature; bh=QNaGI2GD35FNHKpaisMd7Mb++bashXvi1hqDDOr6Y20=; b=lVhzYNZfgkchpKB6A+Rzy0RT3DKZlHQxfL+fV+Fbn6gEdL+rqLxBCJwr91KUKWKgK6 9uXMS+urCv2QHD5zvBixUUUyk3AjHyXi540GpC9KrYwNO66LSOzEYXbTa18S67yARdCU +3KU8SosWLTw0cKGd3h8Rxq3jl3HK/aHYzVCfkmh4uioM84y6Pu8Awu3pqVyfjnyVStZ WW7n+qwhRl77DTEWLor1arw5S6wagx/HBzfYc2qvHhyR5lbKGUojqNGAK59lN1Vx0TF9 2+s6S6WA65HQWatZ0dLQ6cWd3fi9z/EChkK8S2XxnQK15vXrd7daIrwWwwPG6JPkNWTq rtrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=qTYA5JC2; 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 g14si3870607plm.192.2019.05.07.16.56.27; Tue, 07 May 2019 16:56:44 -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; dkim=pass header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=qTYA5JC2; 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 S1726548AbfEGXyH (ORCPT + 99 others); Tue, 7 May 2019 19:54:07 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:40570 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbfEGXyH (ORCPT ); Tue, 7 May 2019 19:54:07 -0400 Received: by mail-lf1-f66.google.com with SMTP id o16so13123811lfl.7 for ; Tue, 07 May 2019 16:54:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20150623.gappssmtp.com; s=20150623; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=QNaGI2GD35FNHKpaisMd7Mb++bashXvi1hqDDOr6Y20=; b=qTYA5JC2UtqQi1Puhr92FNgpB5llHarohMUSh7nKWbLR074m0i0U3ykD0Kimw8LIGJ VHamCvN8DpC1iO2PQOOrSBVtRjytiIbz/aELoB/0QwATQu+SH8+OJk+t7C4ou4PFLySm NADosKT1RWMXouX8XisFkCRonZ5QMDdjlknvP4EafRwA0ah3c7p9tCHU4DQgHtuo9Daz cQMwpUFCRaFjqwoQPF76azpyL+5nAmPhwIrJ/Nj7lty0/YG6SauqQcElftx04XFUEjhc G21iLOmF7nA9mjIwraqo9+n6tjrPeKg/BRjMkY8gHJVjhEiL0ZTPHchRSP4AeGrVI4ae cVCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=QNaGI2GD35FNHKpaisMd7Mb++bashXvi1hqDDOr6Y20=; b=TahY0F9YogIaZPfT6ONW4RkcipEtq7Qo2kmPMZiMXUn5cpKLFb4LMmsxWsbRBMlPpW mDeukNiD66oE0ALSOl4F48VGZ2O9GB2Akxdt4KbDt/Dwi49eJz2uiFCjvaCSBXUHqQ32 9iqq+dkvXuB4tUSyRZftb1HN9awDmGZKrSC6sCvqczlbqmLboWA5PAS5PYms4MBAA76l BRCE6/Kg6llyclvddWMAiyfciH+x6T85NoYifCj47YmhXIDX+tgcimez2FGQH8tR9mvo KJ9MtR7f2/bcJkCt1mXmd32hFMF2sPswnOu7Q+Bb9nZwDtssXXm5XNAjdDBeQT+Kw6GO rXZQ== X-Gm-Message-State: APjAAAUvpTFLfeUCUaCA8TZqKKSW0myjnCh4MqoYohdpWSxu33uy9QWT CStBq5J9EAv5GptHgnHDRfntIw== X-Received: by 2002:a19:f243:: with SMTP id d3mr17540768lfk.168.1557273245412; Tue, 07 May 2019 16:54:05 -0700 (PDT) Received: from localhost (89-233-230-99.cust.bredband2.com. [89.233.230.99]) by smtp.gmail.com with ESMTPSA id j19sm3594338lfj.52.2019.05.07.16.54.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 May 2019 16:54:03 -0700 (PDT) From: "Niklas =?iso-8859-1?Q?S=F6derlund?=" X-Google-Original-From: Niklas =?iso-8859-1?Q?S=F6derlund?= Date: Wed, 8 May 2019 01:54:03 +0200 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, horms+renesas@verge.net.au, 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 0/2] thermal: rcar_gen3_thermal: fix IRQ issues Message-ID: <20190507235403.GA24112@bigcity.dyn.berto.se> References: <20190424051145.23072-1-jiada_wang@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190424051145.23072-1-jiada_wang@mentor.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jiada, Thanks for your patches. On 2019-04-24 14:11:43 +0900, Jiada Wang wrote: > There are issues with interrupt handling in rcar_gen3_thermal driver. > > Currently IRQ is remain enabled after .remove, later if device is probed, > IRQ is requested before .thermal_init, this may cause IRQ function be > triggered but not able to clear IRQ status, thus cause system to hang. > > Since the irq line isn't shared between different devices, > so the proper interrupt type flag should be IRQF_ONESHOT. > > This patch-set fix these interrupt handling retated issues. I really like this series, nice work. Tested-by: Niklas S?derlund Reviewed-by: Niklas S?derlund > > --- > v4: remove 'spinlock_t lock' > add Fixes tag in ("thermal: rcar_gen3_thermal: fix interrupt type") > fix typos in ("thermal: rcar_gen3_thermal: disable interrupt in .remove") > > v3: fix to use correct code base > remove unused "flag" variable in rcar_gen3_thermal_irq > > v2: use irq type IRQF_ONESHOT instead of IRQF_SHARED > disable interrupt in .remove > > v1: initial version > > Jiada Wang (2): > thermal: rcar_gen3_thermal: fix interrupt type > thermal: rcar_gen3_thermal: disable interrupt in .remove > > drivers/thermal/rcar_gen3_thermal.c | 41 +++++++---------------------- > 1 file changed, 9 insertions(+), 32 deletions(-) > > -- > 2.19.2 > -- Regards, Niklas S?derlund