Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3954857ybx; Mon, 4 Nov 2019 05:34:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyiZG9GivgdW8y5g2iGSjUk1aj6IjfpaEAZV2h2kZ/zxI4DWsvwLoMwqtpdz+sM7fZMRFfJ X-Received: by 2002:a50:c20a:: with SMTP id n10mr11293890edf.120.1572874483820; Mon, 04 Nov 2019 05:34:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572874483; cv=none; d=google.com; s=arc-20160816; b=nDMCh7yN7FiCv2TaElfPr5geSC0abPbPo33nFLPlEgVsdinc4GGo3QYCHLaxwXhAQI b/DPZzu06lcs9uLyQrRFqKIz7fbkEQxFBDsrUPuI6KstCIU3zwSfBVvC26VyLj6Dle+X VPSv5Nr5tW37phPSxsA7A847VEsUlNxRumXAjKLh1I0rt6yZQ9/PV/tnUn7hKRZNYlMx XAN2qjgp44r2AV8yOtUlCGEEyJlJ2Z23R21ozC/NuWW9Z6KHzRBz/Gbam7n1NFm9ccrQ mf7pKan+XHPzfgYnITt31P9MV2QJzOJs6eQhEy7zIfAajvvG5gJlEZ9HXJvSB3Jyhq+q WYbQ== 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=I3NGuc3Rt+teCuWa84VgiyUccSUQsi2ao2vZWxXCPGY=; b=uejQh4WQywl4DL7SktLy+8SXnd5ycognLpqxk7iznJ9K+sFaMsiE3Tu8GrGZPa3qbz OkC0cXkUrW2gqc0SqMvl43WzMPZR+OoeIJwb3jrW/JYiayukfG/bGTeUy1s9YVv8HYNf uBdVRFZD05Cj1yA55+hZgJcgVVx4WOql9yYQjSUlnwLidtd+CJ4KmLINSuZ3QcWiHS0z Famd5ouwdpozRfStA3+d6bbTqviN83YOuG9SgJRPlVbfnnKJyOkXT440ySgKqyYO4ht/ eqRe3sLTiHCJ33/DSkYSI01PIDiCHs4/PB3T5U8fFLErksABqF/Gi6JpDzQ5VMXMWtru 0Fqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=QNXyxE1y; 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 f3si11015074ejb.49.2019.11.04.05.34.20; Mon, 04 Nov 2019 05:34:43 -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=QNXyxE1y; 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 S1729170AbfKDNau (ORCPT + 99 others); Mon, 4 Nov 2019 08:30:50 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:52636 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728783AbfKDNau (ORCPT ); Mon, 4 Nov 2019 08:30:50 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xA4DNH0l017943; Mon, 4 Nov 2019 14:30:25 +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=I3NGuc3Rt+teCuWa84VgiyUccSUQsi2ao2vZWxXCPGY=; b=QNXyxE1yFylAYnPQmDlZtT6exOsIQPDCeA7Znu8TNAQhDGJcRJ1L2N6tKJ8OvV/DqFmb qdkcJWQDkvGStQ2i9mdI1lCMNaSIRsnAjeHan6LUMLv9MrwK72AVusRylcff0q/JAbNz UmxDmNW58GdFPHsnjkPu3mLQq15qMuhxGdEkfUc6AGPKF6JE1mzkl3rsNNtaSBAfR6g/ hQgrkasIV0FrAS2OD4Jc88cC9sEDrcXmeBa74CF86D1cJ3SNwS3t2hJGSS091xxwlBpP JeM+TSmHRho/fanptl/sxPpIAYwRgmf4pSDu5IUASxgw0NoFM2pNk7AvxgE8gajd470H 7A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2w11jn1vxb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Nov 2019 14:30:25 +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 00B10100038; Mon, 4 Nov 2019 14:30:22 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id DB3D22D379D; Mon, 4 Nov 2019 14:30:22 +0100 (CET) Received: from localhost (10.75.127.48) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 4 Nov 2019 14:30:22 +0100 From: Pascal Paillet To: , , , , , , , , , , , , , Subject: [PATCH v2 0/5] thermal: stm32: driver improvements Date: Mon, 4 Nov 2019 14:30:15 +0100 Message-ID: <20191104133020.8820-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.48] X-ClientProxiedBy: SFHDAG4NODE3.st.com (10.75.127.12) To SFHDAG6NODE2.st.com (10.75.127.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-11-04_08:2019-11-04,2019-11-04 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: * remove hardware interrupt handler that is useless * let the framewwork handle the trip points * fix interrupt management to avoid receiving hundreds of interrupts when the temperature is close to the low threshold. * improve temperature reading resolution Pascal Paillet (5): thermal: stm32: remove hardware irq handler thermal: stm32: fix icifr register name thermal: stm32: handle multiple trip points thermal: stm32: improve temperature resolution thermal: stm32: fix low threshold interrupt flood drivers/thermal/st/stm_thermal.c | 367 ++++++++++--------------------- 1 file changed, 111 insertions(+), 256 deletions(-) -- 2.17.1