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 1AC1A4F30DC; Mon, 21 Sep 2026 17:45:32 +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=1790012740; cv=none; b=HItKKpp60LYBauPaWfGWRmK3cgOjAtVhEwkkHYeNynrD0KckWhNOfEGUCUYXdTpiMuOWuuKHMR30LM9QE5oGV7fcRoZjXiN0bHmMzSuDy1Tb+CAzAsQDlG/q2GOThMDNwyQsWW0JxtSkd9EAGbLaqebC5BFIQbMv+FaEa4JSVCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790012740; c=relaxed/simple; bh=doy8CQVTkGDgR7A0QYfdmidqT7C6L19D+j8DtIbAz9Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WNbrRGFkWtk8jxukQEQss8+XKVm/cl14gsiGpdsGKAPGcZ0MhKBBEsQqo9j3I2NNn08lpF6T4UMkwAqBa3QrimCbtN3RnW/wwsWf00jq7ul3GQ/vACPgN2kOnZd8wFYzLfS6dFigOpxjNkO+jQEj9XUTPWaIZadksvUca79BE/o= 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=YZ3zKwJJ; 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="YZ3zKwJJ" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68LGUicK2707775; Mon, 21 Sep 2026 17:45:12 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= jEFAOUvkcm/hQj/EyLQud5GCptVe5eN3gxABCz93kmE=; b=YZ3zKwJJyieMHgGG DCLRhzoFqI4GTc/Ju8czee9iv5lTXwr2DM4C+QxQwIPxoGqSjLPwksUj7lZgQpje Rz9ygIVX6drz1Xt1Rz0bFlWngQtLze3L6HwSx/h6fmgIovrIRBJlmhjmsy4DdxRB UKIfngNF5kk1Vp42WF2kxkvqN+huiJu7X3z3L2LlgfzGgEMpEjrMwNzt6rkUa5bj JSdyJbIc3BSwGcwSMHLwIeqYD4JlZLGf//CJaLsNFAG0Ll/orEthtAUQ3V1XIr6y 2Y1XZ65l4pNxpzFTv6MPs1wir44Pl1G6IQuFB3ksofl9X5rvW5qhS0Yj8cDV4hb4 8G3Gxw== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gu85vgaqg-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 21 Sep 2026 17:45:12 +0000 (GMT) Received: from pps.filterd (apblrppmta01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 68LHj8R71531239; Mon, 21 Sep 2026 17:45:08 GMT Received: from hu-ffaruque-hyd.qualcomm.com (hu-ffaruque-hyd.qualcomm.com [10.147.245.31]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 68LHj7Pq1531207; Mon, 21 Sep 2026 17:45:08 +0000 (GMT) From: Faruque Ansari Date: Mon, 21 Sep 2026 23:14:16 +0530 Subject: [PATCH v14 1/6] power: Extend power_on_reason.h for upcoming PSCRR framework Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260921-pscrr-framework-v14-1-a16290003b7c@oss.qualcomm.com> References: <20260921-pscrr-framework-v14-0-a16290003b7c@oss.qualcomm.com> In-Reply-To: <20260921-pscrr-framework-v14-0-a16290003b7c@oss.qualcomm.com> To: 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 , Faruque Ansari , Sebastian Reichel X-Mailer: b4 0.14.3 X-Proofpoint-Reinject: loops=2 maxloops=12 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Spam-Info: AW1haW4tMjYwOTIxMDI1OSBTYWx0ZWRfX/CjLzSDslU+T VEPEDnvycsqPuMP2T4JzUnAyN15VGl/2Mk6DzKXJJ+H0BeAkrVFoUJjwzva3IpvhTj7HipqnSxr CorXujqEDkgRjWtZ+MGC4E+/sdQTVuI= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTIxMDI1OSBTYWx0ZWRfX0oFQlmRI8bc/ ExLB5Aci670G5cMWI0U6Yd+gEDUJ0gm9ql+wzF1zWJUHqIV5xAsnM3RipTrbRYUQYk32kqAAJcZ 2rpKBnjzkQ9msmJIFz3le1FiaNZd0JlpbBwlK7jF4ghEc0xU7nl+HrImzSVWcxhUl66t17wVAmv Cp8TFScwPu4WOtSh2+E1yO/2Q8v5DMbjYHR+R/Ao6Bv1BUNerI2KHEbiGFQeUwhFHOAvESiDfgr 6mgrxWkDPmYhFCNv3jMweBJmX1wxYQp6eQNvwOt6+OhLVTc8B8f/ODcN2mOu07hL6mbgghxBMcE mtzh7g7skDq96RNKN4l1Uw3hWF+M2DJf7DPRPlug3/nC++dn3HJW5zpstBdmwPMAVwJaT2LgJCB ++B6RvTaqK8qAMrgpbJFfxM7abFb/GFdvs+8AqVfCzrGyjJVqrxTnfYWqLE8FCNM1U8IPPGp4kq WPskZPpF8alHK9Y0qsg== X-Authority-Analysis: v=2.4 cv=E8FYNqdl c=1 sm=1 tr=0 ts=6ab16d28 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=QX4gbG5DAAAA:8 a=EUspDBNiAAAA:8 a=7kjejDXy1mYeYQkWB3oA:9 a=QEXdDO2ut3YA:10 a=AbAUZ8qAyYyZVLSsDulk:22 X-Proofpoint-ORIG-GUID: jwsM9vYREWfJP_wH3EjjZAPkFf40vO13 X-Proofpoint-GUID: jwsM9vYREWfJP_wH3EjjZAPkFf40vO13 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-09-21_05,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 clxscore=1015 spamscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609210259 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. - 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 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 (cherry picked from commit a6fb08a81864e2ed17cebba9f249af3d44e42c3f) --- 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 */ -- 2.34.1