From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B741D1E2843 for ; Tue, 8 Apr 2025 21:51:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744149103; cv=none; b=LbN0gpxKnVOUDhzYIlbjir3eAkJBtwNGeiTFDxvrQLn24fAn+lrhoj3YZuoV4Lfdq/wl27ILmLa4mcDCKc/LeMAl6cqmt+OIEn5gegOe781BJYmPFdjNdH3JBGIxqC8QIK0bsCCjv2C8ob4/6SttoEVnJU4kUuMJuxZDWcDyj4w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744149103; c=relaxed/simple; bh=SO5j5WgpKL3BcXKO5kOdxByCJcvTLcn9ijCoQY04dpQ=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=VDTqrXreIPSbm4xqz9PDOJJSvn+R8MiJ8b+mu7ydTjh0WTV9gXseaaF+zOPXJ9AIanNRGC6Pl2b0R7xp2d8ipiyR3cm7rVRQzTV8qp6FekIDdDREwCPOuytizN6JmTMRkry3msTXS3KZ6ZBDFXoPJM8rNZq+Th0nj2KGO+PkmVU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=fHN20sUj; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="fHN20sUj" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 538JYxBd014992 for ; Tue, 8 Apr 2025 21:51:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 4qYMmx1cwwXQQRUe4B443jnoYMCJS9Y4BrBHvddUYs0=; b=fHN20sUjyr6/tJLY VFhatTXDYbz76Q0DK5zR2QYW9X9Y/auQ1nlJ7HFpRTshffjRlcLSirXqIxTLYqXN w9ZEOnVuhOGlCcoyLHhIlt8tdrbPluKXVrQurRD6TS6/lva/R+tq9uDsvFZ0xQ+Z a8oBH20Ljg9CewBtye8yMMArv4aaBjMQDRJ5jO0eqoUpthRtmP68Ac4hWhMDDm5g y/cf6cS5DuNI8wypYHE7MXHll3Esx3tiBVKMMI9PAOg77sogXsoWndhNgaO91H7w ttTbf4MUUpKSARWg9BevWtu+FFt5XOHTPhBZob3Dbve218YHPWsWynBBu7NIsiLf LJtPTQ== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 45twbuhadj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 08 Apr 2025 21:51:40 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-225505d1ca5so51488805ad.2 for ; Tue, 08 Apr 2025 14:51:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744149099; x=1744753899; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4qYMmx1cwwXQQRUe4B443jnoYMCJS9Y4BrBHvddUYs0=; b=NhjkuUQTVCxklvw92SIgQLhU8DhOT5xDy9W4BHUi5Z7vT+KC/hLezDvxmkHBomWwvO HJRA9hetlOEbwtTBQgFsBjGL1OM1fdsu1giKuj7/sgpQOpmvGoyIZ1X89gutkkXetdM9 cs2LrbuG0A8AYIu/LboeXQfmReYJTFhRMVr8MfpGKFEyOrbi4GUdQh6jZUyMGwj60Smf bTtIDwFT/6DBrkEXF9M2/7A58HQTN9ByctsVRtGZnZE7qQg+x+cluOFFfXp/+xEL/GTo OJinWMY2WldBLkbfS37JkHCjmwUkU8o6aDXzwyTJYLle8ZS+dG3C5KdVI5hHA8S0qn7L STAQ== X-Forwarded-Encrypted: i=1; AJvYcCXREWV6FoGq9AM+NFpNP1qH37sfsS+UKE+UZX5HMIZJR4bGcv6y73YMNjNIGuHByKrsYPQbmPzvuA==@vger.kernel.org X-Gm-Message-State: AOJu0YyTW/z3/sxgznTL9p5Buw58mqbbuEkz6FPN2o/sND7gTRtaBhik D4ysEcXIzK+X3XCeQzi62Y7o7F7fcpEuMSDhnIP2BAlgwgI5g25SviBXj007YaqEPiesBfUM57X 8fY3L/BpwsKrGu6tY2nAvrDfAjaEsgy6m4gNUR6Z9Yb40SIujmBhJVknfZg== X-Gm-Gg: ASbGncv1AA8p43nbqFbmOdCtlLgiGPFBl1F82koVBVW622iXmdOh91aJgFpy1k/DLFA Tpxc/zOxpPjWiZvwPZ1eQylTXg4QBUTbAwx0NofiHsG+fqh32+KkwetXOvWb+aWHljmH1Y2h/xM aF56VqLXjyy830t4AZP+YD9hCRTwa737hnOv5EI8dQ8t62Edj9rDs8Lvwxn1ifOUo3aJOlgHtK9 1aeWgMA7YWXYHKRXJsz79L22SnrwWZD/eKBCd9y4fnIAwa2HR7pBaitGwCxU9PtQ0SS36dxKOhq iwIJ5etXE+5XGSsBh5bjCRpMB8HIfYV7xzdzJaYlFREIbefZZw5mqApRAMrtdd5+RtvVX8UHlWO Lh43pxg== X-Received: by 2002:a17:903:1245:b0:221:7b4a:476c with SMTP id d9443c01a7336-22ac2992a09mr8608985ad.18.1744149099659; Tue, 08 Apr 2025 14:51:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFCNranT1CO/GEUVT0ohp6e+mD5pBJVFGlgN+QUZlRKj2YbWbEFTNk7ni641yJ3KvIeudhivw== X-Received: by 2002:a17:903:1245:b0:221:7b4a:476c with SMTP id d9443c01a7336-22ac2992a09mr8608705ad.18.1744149099281; Tue, 08 Apr 2025 14:51:39 -0700 (PDT) Received: from [10.71.114.173] (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-229785ada60sm106004875ad.3.2025.04.08.14.51.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Apr 2025 14:51:38 -0700 (PDT) Message-ID: Date: Tue, 8 Apr 2025 14:51:37 -0700 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 0/5 RESEND] thermal: qcom-spmi-temp-alarm: Add support for new TEMP_ALARM subtypes From: Anjelique Melendez To: amitk@kernel.org, thara.gopinath@gmail.com, rafael@kernel.org, daniel.lezcano@linaro.org Cc: rui.zhang@intel.com, lukasz.luba@arm.com, david.collins@oss.qualcomm.com, srinivas.kandagatla@linaro.org, stefan.schmidt@linaro.org, quic_tsoni@quicinc.com, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.baryshkov@linaro.org References: <20250320202408.3940777-1-anjelique.melendez@oss.qualcomm.com> Content-Language: en-US In-Reply-To: <20250320202408.3940777-1-anjelique.melendez@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: HXnsagJuLA4qB2luG9ln76EjqDK6t-BU X-Proofpoint-ORIG-GUID: HXnsagJuLA4qB2luG9ln76EjqDK6t-BU X-Authority-Analysis: v=2.4 cv=dbeA3WXe c=1 sm=1 tr=0 ts=67f59a6c cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=IkcTkHD0fZMA:10 a=XR8D0OoHHMoA:10 a=VwQbUJbxAAAA:8 a=COk6AnOGAAAA:8 a=p-nOP-kxAAAA:8 a=EUspDBNiAAAA:8 a=P6RHbN-0fNZ3JhbA0IsA:9 a=QEXdDO2ut3YA:10 a=1OuFwYUASf3TG4hYMiVC:22 a=TjNXssC_j7lpFel5tvFf:22 a=XN2wCei03jY4uMu7D0Wg:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-08_09,2025-04-08_04,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 spamscore=0 malwarescore=0 clxscore=1015 adultscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2504080151 On 3/20/2025 1:24 PM, Anjelique Melendez wrote: > 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. While at it refactor the qcom-spmi-temp-alarm driver to limit > code reuse and if/else statements when deciphering between TEMP_ALARM > peripheral subtypes. > > 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. > > This patch series is a continuation of older series from 7/2024 > (https://lore.kernel.org/all/20240729231259.2122976-1-quic_amelende@quicinc.com/) > but current series has been reworked to address the change in thermal framework to > update .set_trip_temp() callback function variables > (https://lore.kernel.org/all/8392906.T7Z3S40VBb@rjwysocki.net/) > > Changes since v2: > - Updated function name to include "gen1" in patch 2/5 > - Added Dmitry's reviewed-by tag in patch 2/5 > - link: https://lore.kernel.org/all/20250225192429.2328092-1-anjelique.melendez@oss.qualcomm.com/ > Changes since v1: > - Remove unnecessary moving of code > - Added new v2 patch 3/5 add a preparation patch to v1 patch 2/5 > - Updated temp alarm data function names to be consistently named > - link: https://lore.kernel.org/all/20250213210403.3396392-1-anjelique.melendez@oss.qualcomm.com/ > > Anjelique Melendez (4): > thermal: qcom-spmi-temp-alarm: Add temp alarm data struct based on HW > subtype > thermal: qcom-spmi-temp-alarm: Prepare to support additional Temp > Alarm subtypes > thermal: qcom-spmi-temp-alarm: add support for GEN2 rev 2 PMIC > peripherals > thermal: qcom-spmi-temp-alarm: add support for LITE PMIC peripherals > > David Collins (1): > thermal: qcom-spmi-temp-alarm: enable stage 2 shutdown when required > > drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 515 ++++++++++++++++++-- > 1 file changed, 464 insertions(+), 51 deletions(-) > Hi Amit and Thara, Can you take a look at changes when you have a chance. Thanks, Anjelique