Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp508191ybl; Fri, 10 Jan 2020 02:17:46 -0800 (PST) X-Google-Smtp-Source: APXvYqyZl2vcCEjtsLn/Q/0FdkSmICVKTLmabgcbUgibX/Q8970mQBEjRGB+ae4bmN9KARQDWpbZ X-Received: by 2002:a9d:68d1:: with SMTP id i17mr1847142oto.367.1578651465905; Fri, 10 Jan 2020 02:17:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578651465; cv=none; d=google.com; s=arc-20160816; b=zf1oX9i85xCY2Zcgo2EwwrqICrLC2jK1wzXUrdInVj/jIsmVM4roiU+4Scqh6j393U sutdlZUqZzNdKdYL0KLOKtDJhmacSK3qdh7eztoIm1+pNfDRi7Fzw71TmHcOcURZuN3q XhfmjQ7On1If5Wosok7iBqsELB0JFF00YHUjhyr7B/RtgN9TMzWkV+IY3POnmWgvlVSt Zclv4rd3ZUPsEK8yqEZfouezD5YndoEoZVTp5+QDDt7C+afFh5VxN4y2bKBt3iRTkyZv xY4npYN5lld2sTAMYCiQ8/a1wYIiKauogs8bm5CmIf+6c5tqnCyTG1jBWFHLG/aJseR8 SyiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:to :from:dkim-signature; bh=I+2Jh41DPPQg0BnU2mDecRhoZBPH5KFuDv0ySmlY5mM=; b=CeCB+NC0dVvDhvpU5XdE0/7hxXNsclybENANcocC/haMe8eDfoaKPAXiejbUF/K/Ik +fvpi3DaYDA11XcdejQ/TXdamRrxnYseacmP8YTC3YwfmikEc/KDpLerzQjj7tO140SZ c2TUZyEKIhHy83AN2V4bMstl7wQ1QMcwCw5pKHTHApXfgK4xxOh2h3j4s0rHDR1L7abR jAFkTAz7z3BmBITiU/SiI6msn5OtNUQGh9JI+Y0THNO91NSIvhNc83ZvdMGAfJp05zt4 o/F2FZiI+jdW8e4QexQS254KPM/H/uzL0EW+2AsvS4Y+tf6AfvTlaJ1BnJGZiadBsynI R9Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=C9kWgr3J; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si968431otn.150.2020.01.10.02.17.34; Fri, 10 Jan 2020 02:17:45 -0800 (PST) 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=@st.com header.s=STMicroelectronics header.b=C9kWgr3J; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727563AbgAJKQf (ORCPT + 99 others); Fri, 10 Jan 2020 05:16:35 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:22082 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727364AbgAJKQe (ORCPT ); Fri, 10 Jan 2020 05:16:34 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00AAE9Ns029506; Fri, 10 Jan 2020 11:16:11 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=I+2Jh41DPPQg0BnU2mDecRhoZBPH5KFuDv0ySmlY5mM=; b=C9kWgr3JnhtXeBgg64jBh4ZkGIxHXsbcoS0w93qJi4SoOAJAd+WaZsqlFIj6/1v4TpSl D7huim9bk+A0nONC1MsMXoKASpTz5Yk/7idwzkbBRWrhTd2NeIyLz/OBOfJoKdQ+lfSh 4ye2xHMmOZpWPB8nQtRlL48zke3pZ8VApjnNNH4+FzjRuxO5gyf0fG5Ab72qtfys8K70 sn6JlZzJE9vBo2JBiteyWvGsru7LsZ6sjAJEvFAnubbWgJ6G88Y0ErseyPYbLgCG6lbx 4saIAHxLe4chevMmleIRgq1AFf2SzMKPenAW3OmAi9WvxFL/oZWARFYehuTIaPAI/4Oh FA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2xakkb742b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Jan 2020 11:16:11 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7466B10002A; Fri, 10 Jan 2020 11:16:08 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5C6B52A6197; Fri, 10 Jan 2020 11:16:08 +0100 (CET) Received: from localhost (10.75.127.46) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 10 Jan 2020 11:16:07 +0100 From: Pascal Paillet To: , , , , , , , , , , , , , Subject: [PATCH_V3 0/6] thermal: stm32: driver improvements Date: Fri, 10 Jan 2020 11:15:59 +0100 Message-ID: <20200110101605.24984-1-p.paillet@st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG8NODE2.st.com (10.75.127.23) To SFHDAG6NODE2.st.com (10.75.127.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-10_01:2020-01-10,2020-01-09 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The goal of this patchset is to improve and simplify the stm32 thermal driver: * let the framework handle the trip points: it very is hard to split this patch into smaller ones and keep each individual patch functional. * fix interrupt management to avoid receiving hundreds of interrupts when the temperature is close to the low threshold. * improve temperature reading resolution * the dirver is backawrd compatible. Pascal Paillet (6): changes in v2: * Split "handle multiple trip points" patch to make ones: * rework sensor mode management * disable interrupts at probe * "remove hardware irq handler" is squashed in "handle multiple trip points" thermal: stm32: fix icifr register name thermal: stm32: rework sensor mode management thermal: stm32: disable interrupts at probe thermal: stm32: handle multiple trip points thermal: stm32: improve temperature computing thermal: stm32: fix low threshold interrupt flood drivers/thermal/st/stm_thermal.c | 388 ++++++++++--------------------- 1 file changed, 120 insertions(+), 268 deletions(-) -- 2.17.1