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 6611D52F29E for ; Thu, 1 Oct 2026 20:22:50 +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=1790886177; cv=none; b=uwOGoMXjDwwDtxWVd7LMMeMJTD3yR480OObsEXA+L8wB3IU3Q/8TxtX3dqHydzfk8w6qbDRiJ2yeFihvrmUAIXyJ5V3V5yQ+KJkLRjSlyBn4dGDJuF51o/CxYllL1O2QNl3fwOnCKwb9K0MeuHtMQLOsOhGowoTZqWUOt8ykXjs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790886177; c=relaxed/simple; bh=3qP8FPDf5DakBu1LqR7A+pXGd65AiGRjB0416cRxaMU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kNAjvLTSYqQdiY6e1i1AmSLGWDRqs8+J1u9/fFm7K7NnsrpUlb2k/IhS8iKyZixZ79aQCo3xbQ4onU11oFb9zNLVMmyJOSD5VH6EJw4UCt6kFASweSiUwBZDYisUJUhk+HK84GjGqDbTaiUeGUcpBOqMf5N1X1MhRyk0OUloO2M= 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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 691HV0EE2353193 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-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h1v030qcy-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-f197.google.com with SMTP id af79cd13be357-93a082c014aso301696985a.0 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=TxtMqw9tYiGoS8/gqKhFpjXiJfjkzuKJ21qlP59+Q0VuNKsl2PP63v5Curj0URESEZ kjKa1JvCyKYC7+sA/UnhuhZeJ9jDUlwU9JdjF6nmxg2E1mtsnNMK5UsWBWD6xC+UcLdu C8kAbMiVgq3ULw1oAW5D4uu+Pn5HA9QsFZbNan+d7GVz/ciTzHAogLAwBCIKghfs/xhX Hr19z+Ii67CYPPSofxlVuPaySoOmmDG+W4u4yv98F0HfCfShfQnsxIrFT3+xdrxRVi0T kMOwVhyvRsfEGpMjhBCf/p/jDW4tERnkrazAEWC91723T2ubS4uRnvMmiuKsm5PghFkL nm8Q== X-Forwarded-Encrypted: i=1; AKwUvBysHjjULoKm2lyIeRQM5un2tVHuAIMqY873VK0m0y+/PHBXc9/FQHRhO7fyZZJvgP0EeSiXdL6pBoNBFcA=@vger.kernel.org X-Gm-Message-State: AFuF++mfH+TKE0Vi3yl8qp+hfJ6plpz7Yo2i1dbFVjS4Wi8tcGjgZz28 RHkQ/wZbWsylv5RGyFOG7hBE+/9X3cUy79p47IGRM77mTik4jeGL7EL2WkJdvphN7NwkQGwLros reOKyEFTiWROL1zqvRH6yAx0XGNxUAaG0P1g3P74fs/n1GPI/sks6wy75CSbSI3addAg= X-Gm-Gg: AYBFou3mazApFFjPkTsRuojemDR3k1LYd+sXsZWBismzWxJO4BZwElAok4Bt2T83Tcw LlKgj557hF9ZwRS6hGj+23MRchGPHD79UmsV9ffr7bRp52ALp46lL27VZQyMgj/wpOsl+UF4To4 a6k6wOsc/cxXX0MwQHH8tKcfZKMBVX93+ptYpApL7HYxXOGxAFeUCQjEaW38YazSXs/5x5b8DCw u4IGjandM5Im7l1ZoUyL0unDvDhyZ6G9F+5GBBcznA5mMSw/UG3pw1rKno9g5veN+PaWfzwDDzC jo3k81Sxx/EhFd6vid5kNwDObkLYvVGQRxqgEYV/V5hluEW5EDW0dsLqrbUjcE9/v5AOM7aKMZ7 YE1SjtPpyGJUpD11GOFyjOL0d3Q5/SqbwAiV3Dnl+Mfkf1hBOe6ZA1pcHkvM/9g== X-Received: by 2002:a05:620a:2956:b0:93c:6e1d:96b0 with SMTP id af79cd13be357-93cb5abb8bemr763979085a.17.1790886167117; 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-kernel@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-Spam-Info: AW1haW4tMjYxMDAxMDA4MSBTYWx0ZWRfX3ltxQGiph5vr PGo+ONI8mWfOvSEOkrxZzurqcYJB64np6RGBeUZOYgazUVKNlpoehP5Ed7jkuI52yIZjojvbOX5 3oV4Ts1KtyoME7vSz+Rlzcmsla2ssi4= X-Authority-Analysis: v=2.4 cv=GqfXaU1C c=1 sm=1 tr=0 ts=6abec117 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=QX4gbG5DAAAA:8 a=EUspDBNiAAAA:8 a=pGLkceISAAAA:8 a=bGjUZXh9VHoPU9QoGbYA:9 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=AbAUZ8qAyYyZVLSsDulk:22 X-Proofpoint-GUID: kEub979agKiCp_rw4oVgcuIcIDeLwp6E X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDAxMDA4MSBTYWx0ZWRfX+QJeLws4tGP6 FAlgqXavDa3K5eqkimBX6o9iiotMY7BzD1GycYS15TCC15H3zgx9fdptb50+mhU55495SZr8esQ OTZTTu6tHkowgUSi7a8u3d+QoxlHq5AfruoRfrHf6uhoC4ub5/bab6N/TIiYEQBddeKwM7amoHP 4FQgUm4P+by/ZBK/sxMZmgC2kY7vU0IBdeiZrRKICDFO21UQwHHg8TQcan5FofqSgiPiLFoY2G6 N0iLweGs+b9EuT/1veVm2HRHEvYWHUahLBFnzwzEJBjyxYmj7Q8WNguiEZ7eYS6TDQBe0jwegNs ibzmxNT/l1SkoYLSK5gszzygsA6XO1i/8Hda1wt1ipbn6W72eNzdu2Q1IYyo9+FCbjKfCRueGke omYs7GgPuQD5ImPjX9TjmNUdv7/QxAmhYNO+2dN6qG3kAP9MLFKaNiiqo/LvZvhGgAkFC4JetC1 VA9MLMkFCdQjHO3DV0A== X-Proofpoint-ORIG-GUID: kEub979agKiCp_rw4oVgcuIcIDeLwp6E 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 phishscore=0 impostorscore=0 adultscore=0 bulkscore=0 suspectscore=0 spamscore=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 */ >