From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 2F1F848A8C6 for ; Thu, 1 Oct 2026 20:22:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790886174; cv=none; b=eZ03/dajFuflkFpQwepiw2+NJYeFNSK4rglsLt0XE3h0oF47hDBgIpe7OT4lWqxXdHUKy2XOzspbEhdDojV/6HUdHipLTjwI3wmlg4aTgAE3NWfAiyeOh0DoJYKjXS37r0Sth4tQ70ifItDfpzYjsaRfwN0URR7TA7y1jw9l+IM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790886174; c=relaxed/simple; bh=3qP8FPDf5DakBu1LqR7A+pXGd65AiGRjB0416cRxaMU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BCccYKUkniMzvlHjXcrJA+kiSKKOXnU0Q0921+ir7TzJs7gb1Dee4IB7g4qYLVzSepg/w7H0VQJkoA6QJj5miKJmLbtUM4eR0tluI5SxJLJ/9xPdl13tLjKA7PHYl9aGsU3YUzS7K+6r7IxrQx+kWJ7no9yUQ5ZQO32jJQmjr9g= 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=pjTRilbx; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=TZAz2Wr6; arc=none smtp.client-ip=205.220.180.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="pjTRilbx"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="TZAz2Wr6" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 691FsaBv2886351 for ; Thu, 1 Oct 2026 20:22:48 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= mDniYY0z46vcWvJ4WbPnahjC8lYCnyjzy3DyehxUHio=; b=pjTRilbxHyga3WmE SYB1k3DKTS3i9N+ilFxUOvkfSxHnt8AswQZlDSPc12CgKmdPFVPLETuLXLnESeA9 f8f1i9VAgSIwHeFaJaq++dNJqwYUGg2h7Sg418egg9lyIugODAqMcs83oRgbO7G/ Nxy4l1xfp1osVyb3KfIKOwdsT8xbTKxNp0R6ukfkyxu7bpWO//hdUv9eaUyyTikc 7exPlWyVdKnRju3vtCNkEfVGmnOe6zTd6/hhXvQhif6f5YJWsBPoSaoTegeqDNrL 3NzSbi9RRA2KeXV0Mpr/uWNyJBh6mt1abVwWYSnc96JOIO44fB7BxHo6j32HJWol U+eUFQ== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h1sdchmth-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 01 Oct 2026 20:22:47 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93bf4c0af4eso263258985a.1 for ; Thu, 01 Oct 2026 13:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790886167; x=1791490967; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=mDniYY0z46vcWvJ4WbPnahjC8lYCnyjzy3DyehxUHio=; b=TZAz2Wr6j1F7S7u0wnj+s5XnaDOFgSfdgze1SGj0X1XhfzDcqsU3rldk9b65lPIEYX bxznOGG+2xcg2iF7q2ZG4G49zgiOCRpA8hwfcHiTVTHCgtUsSjFHpjuQMHgwMRB0hML7 gGnMkH1VoJOSiU+4VkDaE8xaFwDT3vt6NpGgOKKL/LCS41nLcClpUDhC8jCTXFtru4Rw KpnbsaMQwqsxTe9QjmlcSTeJ6bKDBEITZPOjcj31nGYzel3lF5N/ZJxpDsPIS/etlElI EhlAEKxY1diSTX6tb0lwuYdpLNFv1cUQ7Ha8jFmWWlg2bYO3geEJAWjNHO5XOwCc0hdH iTWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790886167; x=1791490967; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=mDniYY0z46vcWvJ4WbPnahjC8lYCnyjzy3DyehxUHio=; b=ig9JWskWWO57VP+QaT+zGwaF1bkp+DNyKMhrO9qPEchyndzgXaakuW3MGY9ulV9otw tEm9Yi1a97k1J292AhomKFvV/YkHKhzg33PY98aIGk63mFos6PUCyfq8+GyvaJnHVynB 6kMEciFstnz5gO7y7NjVvwno/LwRrB4esqos33/tFdRhMYiuPvk0jKViwpxPLbmJ22hB S43A4YALkeGxhP0qVGXBZTQj8sZCMv+m0YOHdRZyd99xLTjVscu+Pr3c3M1akVEkc1C7 xenm1LtjY37PTy/vB8GI4FjaLueytkDAEgPYnscFOKOy8OdTnh9R4R7s0ddxHDD23/n5 Zxsw== X-Forwarded-Encrypted: i=1; AKwUvByjnCoJwtvSxbPPUxErLLnq6qcr6mKVMnzCkPmzaCqHgo8dY14zHieboF7uyq4TROlaXmMwophN+g==@vger.kernel.org X-Gm-Message-State: AFuF++lhIo6lynnzifKTAifbwtwyKr6RAg9A+zL/PjQckTHYFoTZR//K cMNAq7Uhm5nlRXvm2iJGbf90AaElRiBSNVvRrS9my8D/ZrREjTmLBs0hc8Kex2bbf7vAxospeB/ PDLXKAxeAd3yuaoXKJMHGWDQdBKn6qJTnZM7WXXS0HdrZtA6ic/r2nPy7nReLNA== X-Gm-Gg: AYBFou2VvJUuHm9rX9dvH87dzo8o8ulfJmlRv+VAijWgOQbEel4sxg1GZVC3iVoHDBX jfPAOVHY778sj/JvQatp4/2mTuDV4xJHcS759IZHzu8CSZPnl3jMae5fwOuW3N1GIpfId4d0ZIx NCxhU86uKhJftNcWtUTuq4EAAUA+bZ0/xChe5gXzHUNsR5XG5vxopK/55CDM49I3M8VP4n2kDcg 2Ai+X1F25XZ7enBlT3j8aTNBwepJIzPbxciPghKJ8FhPCnRiSwuI1L00SncRDyv/WgajeqFkuwO nGC2goxs7zaNnjkykDRex5HTGFFyHKeDAJBPUnlMIRhS6PoC7bBXSnoZDDd3QZquH6jRLCIU9Gw Kjx+P8EJ5DXFmZQstOth7L5Av6nrSvSTHDDmJaBOgXTgdSLAsUqW9VOFfusTDlA== X-Received: by 2002:a05:620a:2956:b0:93c:6e1d:96b0 with SMTP id af79cd13be357-93cb5abb8bemr763981285a.17.1790886167177; Thu, 01 Oct 2026 13:22:47 -0700 (PDT) X-Received: by 2002:a05:620a:2956:b0:93c:6e1d:96b0 with SMTP id af79cd13be357-93cb5abb8bemr763972385a.17.1790886166618; Thu, 01 Oct 2026 13:22:46 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:f14c:b716:c104:4712? ([2a05:6e02:1041:c10:f14c:b716:c104:4712]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a027740a2fsm18335995e9.13.2026.10.01.13.22.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Oct 2026 13:22:45 -0700 (PDT) Message-ID: Date: Thu, 1 Oct 2026 22:22:44 +0200 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 v15 1/6] power: Extend power_on_reason.h for upcoming PSCRR framework To: Faruque Ansari , Sebastian Reichel , Benson Leung , Tzung-Bi Shih , Guenter Roeck , Liam Girdwood , Mark Brown , Matti Vaittinen , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Oleksij Rempel , Pengutronix Kernel Team Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev, avaneesh.dwivedi@oss.qualcomm.com, Umang Chheda , Sebastian Reichel References: <20260924-pscrr-framework-v15-0-7af87107e0d3@oss.qualcomm.com> <20260924-pscrr-framework-v15-1-7af87107e0d3@oss.qualcomm.com> Content-Language: en-US From: Daniel Lezcano In-Reply-To: <20260924-pscrr-framework-v15-1-7af87107e0d3@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: Oe-4zl5417B6SGM82MxjYi8fC0SVKmuz X-Proofpoint-Spam-Info: AW1haW4tMjYxMDAxMDA4MSBTYWx0ZWRfXysb1AON3/V6y N0hnoAvGhCBlIEfQbB5+HJLPQAWUaipgHSEUyfq1PPDqTygCW2GdZVFbP4+2jlRtmQiN+nelfWv 9HYzMqBbAZ4ivtSJKLoFu/+vygYHXEw= X-Proofpoint-GUID: Oe-4zl5417B6SGM82MxjYi8fC0SVKmuz X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDAxMDA4MSBTYWx0ZWRfX+J1Jcp1utzQe /IOv5pAlryfgYsVxWmnRo40TQaewrKygK+1zj2Tp+psUSk05/meka6yjIulFP+wrhYMavnNFcx9 fQ166CgtonDtJK5VYSGr1tRRchP3DK/gARZgFqT9FX9DJmJFkVTFmSvJnyOIGkEg1/rAfVK0Bok e1Q/v8ItCBJpVT2+UB3jhaBT3YFQugWoocHPNqgiM6wfM2iWNhpovHJ/tdmUoUv3at7I2Z0JMiA 8MGT77DJZr2fTFC0smpxqldv8KBA8zFKupCpU/ow9Kb0AHw94L/zZs5oEljN6eys65YE/T48quP k1WqygALxTZSVec2D+yaJVKTsByhnLTbUKiOKaygxa9X74WIG4xSLMQ7VzVzdhHZI28ZufGomUb oc5AB5DV0xH5IuPDn98r9HQJQcfJh232EzRovGR/6HY5CSdHFvM70iyZkHIcuIhF0jyqrxLU6OU l9NB9+pcw99gfoAtp1w== X-Authority-Analysis: v=2.4 cv=D87SufRj c=1 sm=1 tr=0 ts=6abec117 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=QX4gbG5DAAAA:8 a=EUspDBNiAAAA:8 a=pGLkceISAAAA:8 a=bGjUZXh9VHoPU9QoGbYA:9 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=AbAUZ8qAyYyZVLSsDulk:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-01_04,2026-10-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 malwarescore=0 adultscore=0 impostorscore=0 bulkscore=0 spamscore=0 phishscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2610010081 On 9/24/26 09:08, Faruque Ansari wrote: > Prepare for the introduction of the Power State Change Reason Recorder > (PSCRR) framework by expanding the power_on_reason.h header. This > extension includes new power-on reasons: > - POWER_ON_REASON_OVER_CURRENT for over-current conditions. > - POWER_ON_REASON_REGULATOR_FAILURE for regulator failures. > - POWER_ON_REASON_OVER_TEMPERATURE for over temperature situations. > - POWER_ON_REASON_EC_PANIC for EC panics. How the system knows an EC panic happened? > - POWER_ON_REASON_EXTERNAL for an external reset source. > > Co-developed-by: Oleksij Rempel > Signed-off-by: Oleksij Rempel > Reviewed-by: Sebastian Reichel > Signed-off-by: Faruque Ansari > Reviewed-by: Matti Vaittinen > > changes v12: > - add POWER_ON_REASON_EXTERNAL > changes v10: > - add Reviewed-by: Sebastian Reichel ... > changes v6: > - add POWER_ON_REASON_EC_PANIC > - s/POWER_ON_REASON_OVERTEMPERATURE/POWER_ON_REASON_OVER_TEMPERATURE > --- > include/linux/power/power_on_reason.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/linux/power/power_on_reason.h b/include/linux/power/power_on_reason.h > index 95a1ec0c403c..13e61ace14f5 100644 > --- a/include/linux/power/power_on_reason.h > +++ b/include/linux/power/power_on_reason.h > @@ -15,5 +15,10 @@ > #define POWER_ON_REASON_XTAL_FAIL "crystal oscillator failure" > #define POWER_ON_REASON_BROWN_OUT "brown-out reset" > #define POWER_ON_REASON_UNKNOWN "unknown reason" > +#define POWER_ON_REASON_OVER_CURRENT "over current" > +#define POWER_ON_REASON_REGULATOR_FAILURE "regulator failure" > +#define POWER_ON_REASON_OVER_TEMPERATURE "over temperature" > +#define POWER_ON_REASON_EC_PANIC "EC panic" > +#define POWER_ON_REASON_EXTERNAL "external reset" > > #endif /* POWER_ON_REASON_H */ >