From patchwork Fri Jan 10 10:15:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pascal Paillet X-Patchwork-Id: 11327101 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B54E5930 for ; Fri, 10 Jan 2020 10:16:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 932532077C for ; Fri, 10 Jan 2020 10:16:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=st.com header.i=@st.com header.b="C9kWgr3J" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727466AbgAJKQf (ORCPT ); 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 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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(-)