From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751462AbcFSEMi (ORCPT ); Sun, 19 Jun 2016 00:12:38 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:39159 "EHLO relmlie4.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751206AbcFSEMh (ORCPT ); Sun, 19 Jun 2016 00:12:37 -0400 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="213273472" Subject: [PATCH/RFC 0/3] thermal: rcar_gen3_thermal: Apply shared interrupts for thermal sensors To: Kuninori Morimoto References: <57661211.7010900@rvc.renesas.com> CC: Wolfram Sang , Geert Uytterhoeven , Magnus Damm , Zhang Rui , Eduardo Valentin , Rob Herring , "linux-pm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Thao Phuong Le. Nguyen" , "Hien Duy. Dang" , Toru Oishi , "linux-renesas-soc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Gaku Inami , "Khiem Trong. Nguyen" , Catalin Marinas , Simon Horman From: Khiem Nguyen Message-ID: <57661BB1.3060401@rvc.renesas.com> Date: Sun, 19 Jun 2016 11:12:33 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <57661211.7010900@rvc.renesas.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset intents to improve thermal driver operation in interrupt mode, which has been introduced in [1]. The original idea is using 1 interrupt for each thermal sensor, to detect both up and down temperature. It caused issue when the temperature is changing rapidly. The new idea is about using shared interrupt I/F for all three sensors. Two interrupts will be set to detect temperature up and down. When interrupt occurs, the temperature will be updated in all 3 sensors, if the temperature value is changed. All comments are welcome. [1] [PATCH 0/4] thermal: rcar_gen3_thermal: Add R-Car Gen3 thermal support https://www.spinics.net/lists/kernel/msg2282663.html -- Gaku Inami (3): thermal: rcar_gen3_thermal: Modify the shared irq with initialization thermal: rcar_gen3_thermal: Modify the way to detect the interrupts arm64: dts: r8a7795: Support shared irq for thermal sensors arch/arm64/boot/dts/renesas/r8a7795.dtsi | 9 ++-- drivers/thermal/rcar_gen3_thermal.c | 89 ++++++++++++++++++++------------ 2 files changed, 63 insertions(+), 35 deletions(-) -- 1.9.1