Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp242992yba; Tue, 23 Apr 2019 23:52:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBJDeiU8lzQgwG8wr+1mhHDIY7q5puPL3F9+5wYpOLfKaHN+8qL8KiBWyZmJ6e34ksFuPl X-Received: by 2002:a65:64c8:: with SMTP id t8mr12448161pgv.248.1556088775509; Tue, 23 Apr 2019 23:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556088775; cv=none; d=google.com; s=arc-20160816; b=uFiQ+bEEyjKezcKiVR63N9C3WvwkF+gCamSUW6nygcphgAfwrRGUDz/1fdaJawgZGR ApZhDp6T4rEDqncOGvaZW+BvLThUOe81YMwYmvP8gtsEhUH2HyfwMWcMpD+MQg9Pmn01 Sm5KzRvqvVbL9P0QiUB+q0zrNcLzIziSjAufAD11vt8BfutYZKQGze8Nqc9Jvs6gMlYS YCiBwJoYK81mbgXFhOastTUHe+VJwK10xpoMklkpo7OF8PTvzPQm/gKjv+csYw177Skv RzJFWsO1V9kKSMLv+xs/Z4LqyKO8JsGhrmxRzezr2TiRo1ioDGC+ldNA9HJEnFLud9cT +Ahw== 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=Y5k8Zl0aW5C267C4j/HBp5q69Gzp36YYg8rvv3NnlIo=; b=1KQj5QRQV7DwY4B0ta6O0WN1Q+E59z0eP69oYO5A/wubvBH51GxPn0xGz2hPbA/dCo l8tmiPbMzAlPaVUtjasGq1huY1RYHjbaPVdNw6n1W3bxm06t+iAFEQRvqiAfJP1qHFO+ 42oqKYsC78vPCbb+qTC24wCHdmSqQjB/1OSbcfBHHgN6P2jcBv/EhIv4V0S6Wp1kdaZQ fWuDAbnpfxmXlWUsPKkz7+t6fULkq46YdPO3AWBFhA2E8BzSFfCyuCVibLLmWNCl83gA IvZsHUhz2paGBtztdvxJFXG9m9zCkf3iJW2wK3UQPFy0R9oRCCbFSOt0le5umOX5eZtB c65Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=PEknDINQ; 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 b40si18445409pla.277.2019.04.23.23.52.40; Tue, 23 Apr 2019 23:52:55 -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=PEknDINQ; 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 S1729713AbfDXGvq (ORCPT + 99 others); Wed, 24 Apr 2019 02:51:46 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:37133 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbfDXGvq (ORCPT ); Wed, 24 Apr 2019 02:51:46 -0400 Received: by mail-lf1-f68.google.com with SMTP id h126so3080701lfh.4 for ; Tue, 23 Apr 2019 23:51:44 -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=Y5k8Zl0aW5C267C4j/HBp5q69Gzp36YYg8rvv3NnlIo=; b=PEknDINQJpTKcxr0/R3I3nmMCQyoBfZ/VBea+uvb0fqIBZ7YTFhEl+648C8mWnGL3t CLVkuvIYKX3Be+Ebqu8zF3qcsLTuIVmWPGbin5acRFkugLbtTQElBu5+1IgQLVPBcpho OBGdSOW+qOeIuJg7rikCabQoc4EORnETlrCzVtfL4XAMBaOb4KeFJZepez6qaV21zZL9 ntTMuWib1AeANgkEmY4MfEj7WNiGhF2Uk9LCe1PaDy4KQU6kyF29Xz6jabRFLkOtxO1O POJ0SjMIV8yR2Fe5VOR6SKliKFBbOsdjszy8Bkcog+045LR0EQbZ8ParWOb3m3BwAjYS WQDw== 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=Y5k8Zl0aW5C267C4j/HBp5q69Gzp36YYg8rvv3NnlIo=; b=f4n9wRlEhSkZbPZjIfiJ/Xs0saAfKdSQjh1C2kuWFKpcplbGvAP6IuktZe1/IQDaUe Hk3BHL/gW+pKE87Myy7E/DJEqv3RAbiD/TEP1pc3kaGOCKRIm74jDJaEp1bYp0Bbpukc XamivtQwdFXcMToi6dvJ7hb1cRslVl6j22fPY5Gi5yWCBVFHf0I0AOgmziqlOm59KaKR fOA2zugbAPlzAdbqzHDErvEBU5WaAQyGDjNHWmV3NSqITScgmYRMTxbzDXGj5vlkNiO+ nW/JEYAlt4J7PTYhvcqnpDzqPuMe7+R+2B5wqmQaQK4z6tJmEkeAj4dPHg+TP8sk6kA1 FYSg== X-Gm-Message-State: APjAAAUZYR2n3fpFNOTMD0DEFzvPSjuvZdD3U809q7OZsvyHcj2jmnkr krY9wm72zgnKR4fDtfrxG9WJcTS/tUOAPA== X-Received: by 2002:ac2:43cf:: with SMTP id u15mr16190801lfl.67.1556088703925; Tue, 23 Apr 2019 23:51:43 -0700 (PDT) Received: from localhost (89-233-230-99.cust.bredband2.com. [89.233.230.99]) by smtp.gmail.com with ESMTPSA id e17sm3828721ljj.20.2019.04.23.23.51.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Apr 2019 23:51:43 -0700 (PDT) From: "Niklas =?iso-8859-1?Q?S=F6derlund?=" X-Google-Original-From: Niklas =?iso-8859-1?Q?S=F6derlund?= Date: Wed, 24 Apr 2019 08:51:42 +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: <20190424065142.GD16573@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, I think this series looks good. Unfortunately I'm out of office for the next week and are thus unable to test it. Please don't let this block this series but if it's still on the ML when I'm back I will do a proper review and test of it. 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. > > --- > 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