Message ID | cover.1670454176.git.quic_collinsd@quicinc.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp459818wrr; Wed, 7 Dec 2022 15:33:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf4mXP4S9xnIQhc+rllAGlrMGYZoXn9f8Zo4zj1Vr8C8yoV6E8K2QaoctbVLiozLpR4E1SEQ X-Received: by 2002:a05:6a00:1a14:b0:572:5be2:505b with SMTP id g20-20020a056a001a1400b005725be2505bmr75862489pfv.52.1670456013086; Wed, 07 Dec 2022 15:33:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670456013; cv=none; d=google.com; s=arc-20160816; b=ikEbGCo89t/Cs1596mnRnvUIZdWd+enxb7T0W5TqCO2gd/OH8GxUqsyGsws9YUcX8V FG0jvDieO0Qihkgut+jARuUn7WbUN7IvNvz4PSjj72Zoo1ZQV1V2MKNeHFuTkSqbTi1b Qc8laPh8yzZRu+QGHsGNP5RlSlPpjHuaeVfWRD4YjReE0I56eKN8BtsK0eySOOfaLhOJ igNRoFwUHypRVoec3ZbIP1HuZNxDTgynLLznbdoVeyn2bp9qe6i6gwh4+RG4U7lob2/q kKlOo/2KW3i+q34p/Y5dmUh7xbxym4t3Pld0Edd+9Twu2Dyb0fdRVsIsVuTlneO6bNk7 revg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=X2Q0tE37VDp4hy/FQTBoYaG77TQ/eZFORCyeWxKtWp8=; b=dv97sJz3ndd2EXzKXNlz/NOlOSKApMXafCV4A92NQbXeNOne0lz+PT2i4XgokmRymP S+wGUGHSD/cNgURdtgZ1M6JSBDwblcx8uavpZrdbHp3xYD68ZpyXhAIBHaSMItB/Kzgk dXtH52MlT1rQTsnbzi5rNk7X5iVJplHW17yS4hJqPXQism57IWfjMl6gBnn3i65xNwFm zUuyhss6S+sKJ2AfviB+DI1XQ3F0Fa748HhJoeLMKLCfwtSfS7+U/TVkaIvZUkibuGpU 4DaA+nhqFn6M85LiWdi5JvbEBpqwhz2z5E+OyhXQMM555VFDvMExMX0Z0sbnGqkOo0Pz zVlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=dk6gBEs0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020a056a00191300b005383ec972b3si21883901pfi.72.2022.12.07.15.33.06; Wed, 07 Dec 2022 15:33:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=dk6gBEs0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230102AbiLGX0G (ORCPT <rfc822;foxyelen666@gmail.com> + 99 others); Wed, 7 Dec 2022 18:26:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbiLGX0E (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 7 Dec 2022 18:26:04 -0500 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5748A88B5D; Wed, 7 Dec 2022 15:26:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1670455562; x=1701991562; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=X2Q0tE37VDp4hy/FQTBoYaG77TQ/eZFORCyeWxKtWp8=; b=dk6gBEs0i4XW3Hhv1f/zGkRElirSqoxEW5R+94VTiP4xOBZ7KeKj68W7 W3rv3U6/k7nZIrXcDZPfwTuxt7Uugpbx4/se/RPkDYx0GNEgM/zpKTmKs +jyaJ/0M6l7DpNgcJE0W0DTfELhY3o1sZXreT8uVB1WWXv7ingmI7Htib I=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-02.qualcomm.com with ESMTP; 07 Dec 2022 15:26:02 -0800 X-QCInternal: smtphost Received: from nasanex01b.na.qualcomm.com ([10.46.141.250]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2022 15:26:01 -0800 Received: from hu-collinsd-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Wed, 7 Dec 2022 15:26:01 -0800 From: David Collins <quic_collinsd@quicinc.com> To: Daniel Lezcano <daniel.lezcano@linaro.org>, "Rafael J . Wysocki" <rafael@kernel.org>, Amit Kucheria <amitk@kernel.org>, Thara Gopinath <thara.gopinath@gmail.com>, Andy Gross <agross@kernel.org>, Bjorn Andersson <bjorn.andersson@linaro.org> CC: David Collins <quic_collinsd@quicinc.com>, Konrad Dybcio <konrad.dybcio@somainline.org>, Zhang Rui <rui.zhang@intel.com>, <linux-arm-msm@vger.kernel.org>, <linux-pm@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH v3 0/3] thermal: qcom-spmi-temp-alarm: add support for new TEMP_ALARM subtypes Date: Wed, 7 Dec 2022 15:24:55 -0800 Message-ID: <cover.1670454176.git.quic_collinsd@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nasanex01b.na.qualcomm.com (10.46.141.250) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751600084527171779?= X-GMAIL-MSGID: =?utf-8?q?1751600084527171779?= |
Series |
thermal: qcom-spmi-temp-alarm: add support for new TEMP_ALARM subtypes
|
|
Message
David Collins
Dec. 7, 2022, 11:24 p.m. UTC
Add support in the qcom-spmi-temp-alarm driver for the new PMIC TEMP_ALARM peripheral subtypes: GEN2 rev 2 and LITE. The GEN2 rev 2 subtype provides greater flexibility in temperature threshold specification by using an independent register value to configure each of the three thresholds. The LITE subtype utilizes a simplified set of control registers to configure two thresholds: warning and shutdown. Also add support to avoid a potential issue on certain versions of the TEMP_ALARM GEN2 subtype when automatic stage 2 partial shutdown is disabled. Changes since v2 [1]: * Added missing header <linux/bitfield.h> in the third patch Changes since v1 [2]: * Updated the thermal API usage in the patches to work with the recent commit ca1b9a9eb3fd ("thermal/drivers/qcom: Switch to new of API") [1]: https://lore.kernel.org/lkml/cover.1670375556.git.quic_collinsd@quicinc.com/ [2]: https://lore.kernel.org/lkml/cover.1663282895.git.quic_collinsd@quicinc.com/ David Collins (3): thermal: qcom-spmi-temp-alarm: enable stage 2 shutdown when required thermal: qcom-spmi-temp-alarm: add support for GEN2 rev 2 PMIC peripherals thermal: qcom-spmi-temp-alarm: add support for LITE PMIC peripherals drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 407 +++++++++++++++++++- 1 file changed, 392 insertions(+), 15 deletions(-)