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 397D43CD8AC for ; Thu, 25 Jun 2026 11:52:56 +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=1782388377; cv=none; b=ELKhSPGuhBWp5vnIOhFL/DVaeMG7ouCMxYzkjWs7w9rf1Jv5+Czu/AuUXbTPo1TXdv+XQ3DIf2zacgHJwv7x3AzY/RNFlwQk7sNpKE90wy+X6+Apw7gBv895k9F+SE+AiO9IaopggPr5068aQueW9+0EOoA3Jq8R+KJEC1V2ygQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782388377; c=relaxed/simple; bh=3sAE/VMNu80O+WfuSL5iBs98yx63G14GTapXzogclNE=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=tQVtmOZkF2S0oSZt1DptaTBLMlolaYXA1bFYpUNy7ykp0W47w7LxA6hptHtnrwG8pPuOoRiktGh1sqpEI7x9mLKRJF8dmlaisE4d8Z4tXzrgE6PiNXZpqfJz2mXOj+ttrgZH71QugoDhpeDBLo0z26cBq7fevvyyFvGxgAKp0D8= 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=N6RBiN7A; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=SPZbt4m1; 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="N6RBiN7A"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="SPZbt4m1" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65P9k0hc1398021 for ; Thu, 25 Jun 2026 11:52:55 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= cxK7ioiXaD8p2DdI5Hqejs6IMcrdhSLYsitFgDmOuW0=; b=N6RBiN7Albr7Uwb+ n9LHghEu0cWJcld+Y18GGJx4RSNXPR+QPqdi0sGQtKsplA3J9+KVRtzNs/+R6Uzc u8FXAmeRWpE6ASGQlk3AqY52m7yS0E6jWS8pDrXOEIsrIoz8LOaZBuBfgoHD6jXY Qict4Wr68n7NKH8daHgYRwSfumA6lel9MKUbYA4w9YVmGIGzpyMH2DkwLAoiraKI mDWKO2SbmiRVdT+Hs9KtO+RQ+ARGj2ju+DkCmeLBQWY8G1x1tPVwEas3slVp9bSq v1NkqMZ+xQc5l5cD8PGSjxxCsRjrwPAVKcyiK4vTELn81gS3jDWWtJT40eQcLntt YDABPQ== Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f0uudhy2r-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 25 Jun 2026 11:52:55 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-84238e83851so1604898b3a.1 for ; Thu, 25 Jun 2026 04:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1782388375; x=1782993175; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=cxK7ioiXaD8p2DdI5Hqejs6IMcrdhSLYsitFgDmOuW0=; b=SPZbt4m1Urz0wZMJgst4Re+3jU/uQuj49ZcSBQiVIoxK1YljKpZhizJEUwMP3StMzs 3bBI1lCW+xKm6CyCMiTz93ISF0Po8P7/jhA1AToX1V6wiEBjoB3OjKR9FmNEyr247t/v nKO35oSFdlBsGXQxeGS7hrEK88Lqm0zjVEn7BBSI57Vg4dCIFKaROmrl0L86hyo1VenG zBw1z56UAJvCCzdZaexuPOEEStHmQWfmbJY8q1HsNLhk3W3ZBeJHvPysUvGNgnRYhPma xojY1zZSmSwatgYwOKdwCLpq8yEOK6+SIQBIGfr7wNMkm5bQcwRYEeCIbtDrteeZHMtq qYiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782388375; x=1782993175; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cxK7ioiXaD8p2DdI5Hqejs6IMcrdhSLYsitFgDmOuW0=; b=KdME+IQ0AJKUjbT5N34R8qviZfEmA42EQENoWVl41lZyU3m3sVIfy9Sf16d07SXuld DUzAK6VpOvexwRhbKynAWJ1qlzCNcnDMA/ji979JnGNHQlPLJGvOQE79CKSJn2MVupmw uqS+UvQ7GniO/cieUV3nTIeq9QH9VFjNrfcFx+TIvBVenkwLZN4fp+rFZTuffmBd7r82 IuSTj2eQ9/Z0VrwG71E6GngPSt/SXk+4kyzu2LCUTx5EOjd69N6WupjS4/Wz3C/OVu5e azQewvSpET4rNIAApUiaqwTPhkQpygUpEWcCk8ZmSUAMsPIvtpoOcb5uBnSnReRuLYko HLBg== X-Forwarded-Encrypted: i=1; AHgh+Rr0qkeNzyTPIIqwzaPQdS9IAyapNaggBLKkF5fM3FAupsx/pyDsnr6iFVH3x3UAxqc1XghTwEZ0UPnjVhQ=@vger.kernel.org X-Gm-Message-State: AOJu0YwHHKYERFbW1nb2r8kvqLSSdt1G+bxIm2zBzMxbq7Wlb7TRd3QV CEaqvNtm9hmtxI2E+B2kB7q33TTrINy7RsmKz69uXQgp/6NyriVtn5TWBAv/OuozVgyBThfTm5k N1M2ebkVbU8zZ5t5EckvRO5+iK6lFkQmS1/ymKgG2GbRaRTE1xQj2KwhiDcbQ+VHmOg== X-Gm-Gg: AfdE7cll/7fnJGofMZRImiGcH9tATAfAAg9lBbuM9jVSwL7rMay67eWyGi5Lumgxluf J5IS89uximnhh58lJI+M3ZBGKRDyEqcNtwdyyQPAJqZ4Et88vWZhQ9k/hKe0Gu2Bj5DUEy4NvY0 UjKweBbyz+9XhK7aS18hr660adJK7Xb0k3AYfc5XcGrtrHMTKwxb8QjCwj0CDDypGJQOFL+rtwI iNp3vmZgbD3gJvz9GNdRD5ipUegdbvbZSGB4PNc/ia9/px+YMDL8Kp+Dxojwwa8ShhipOjDRlLR ygEo55Su0hHitGBTyI0HZMk44vRYX2Cvxei6IbjkMXGMHWIzR/dw8CblSTUKVDJsIPKohQpQ69E 745WVFrxMWDAld+cMF7b29TIUdIfCnT3lxiNDdPrmCw== X-Received: by 2002:a05:6a00:2187:b0:842:6849:2180 with SMTP id d2e1a72fcca58-845b3ae2581mr2805643b3a.37.1782388374808; Thu, 25 Jun 2026 04:52:54 -0700 (PDT) X-Received: by 2002:a05:6a00:2187:b0:842:6849:2180 with SMTP id d2e1a72fcca58-845b3ae2581mr2805609b3a.37.1782388374290; Thu, 25 Jun 2026 04:52:54 -0700 (PDT) Received: from [10.218.33.235] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-845a40d8f2bsm4499571b3a.38.2026.06.25.04.52.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Jun 2026 04:52:53 -0700 (PDT) Message-ID: Date: Thu, 25 Jun 2026 17:22:47 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Faruque Ansari Subject: Re: [PATCH v11 6/7] power: reset: add PSCR NVMEM Driver for Recording Power State Change Reasons To: Oleksij Rempel , Sebastian Reichel , Srinivas Kandagatla , Benson Leung , Tzung-Bi Shih , Daniel Lezcano Cc: kernel@pengutronix.de, linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , "Rafael J. Wysocki" , Zhang Rui , Lukasz Luba , linux-pm@vger.kernel.org, =?UTF-8?Q?S=C3=B8ren_Andersen?= , Guenter Roeck , Matti Vaittinen , Ahmad Fatoum , Andrew Morton , chrome-platform@lists.linux.dev, umang.chheda@oss.qualcomm.com References: <20250618120255.3141862-1-o.rempel@pengutronix.de> <20250618120255.3141862-7-o.rempel@pengutronix.de> Content-Language: en-US In-Reply-To: <20250618120255.3141862-7-o.rempel@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYwNjI1MDEwMSBTYWx0ZWRfX93NyfC7g2Nnp HfohtZID8V6DzFcBZhPXJH7ey6UWSx/97WxDEfqxMz4nkR2RdnlkZ95pFHXoUV3K++SHF6zX1gI jYc1kFCrJgXE0AFnH6p85vmAj7cQr8o= X-Proofpoint-ORIG-GUID: CU-wimax9mh9YkQQ478yslgpQn2nVBLU X-Proofpoint-GUID: CU-wimax9mh9YkQQ478yslgpQn2nVBLU X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjI1MDEwMSBTYWx0ZWRfX1X7Ngd88ATGV 3ierqn/01kvJDIA6uDz/yTix3b1vwQEt+lXG56qfbion1xWxjBCxtEZDZJ4APx5s5R9zCvcJVJU bfK0guCS+0GKE5WyR+ASknu7rW+gScYaV8pIlPBi6JCUJ81jOggxuGpzLPUA/uGHOypN/9WmqqL wnKd7vsh2od+3KpO7MOZCzMtE+iTt1b69ZIMbrG0vVfE1EBmMUNT3DsBLTxAyenkKuXLlb2O0hp 80VsORgXEF5t241ZpefhSZCkeJ4f7KIUn79mMdB6QI8t4xb2kM6T4tZrvecvnyfpbMxxsiNiZd7 T0ZH/pttjRADtpGEmFSNoCNR++S+I9cAutFqrmMXIF6GIJ5X5VWx25KPSDsk1Hul5aV3Gxd8xpU kRMnXhb35LumyHJt/BjWt0E+LXDPi8W3biyQDfn1mYS9NseOFuFxD565pvVBFvNfPbQZOeR+OI7 HnIWBxXAd02rwjUPgmA== X-Authority-Analysis: v=2.4 cv=HdckiCE8 c=1 sm=1 tr=0 ts=6a3d1697 cx=c_pps a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=PAdduzmm4c7iO6b64JwA:9 a=QEXdDO2ut3YA:10 a=2VI0MkxyNR6bbpdq8BZq:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-25_01,2026-06-24_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 suspectscore=0 clxscore=1015 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606250101 Hi Oleksij, On 18-Jun-25 5:32 PM, Oleksij Rempel wrote: > This driver utilizes the Power State Change Reasons Recording (PSCRR) > framework to store specific power state change information, such as > shutdown or reboot reasons, into a designated non-volatile memory > (NVMEM) cell. > > Signed-off-by: Oleksij Rempel > --- > changes v6: > - rename pscr_reason to psc_reason > changes v5: > - avoid a build against NVMEM=m > changes v4: > - remove devicetree dependencies > --- > drivers/power/reset/Kconfig | 22 +++ > drivers/power/reset/Makefile | 1 + > drivers/power/reset/pscrr-nvmem.c | 254 ++++++++++++++++++++++++++++++ > 3 files changed, 277 insertions(+) > create mode 100644 drivers/power/reset/pscrr-nvmem.c Tested-by: Faruque Ansari I have tested this on Qualcomm's lemans-evk and monaco-evk platforms. The testing was performed across the following scenarios: Userspace sys node to set reboot parameter - Tested the userspace node interface used to configure the reboot parameter confirmed that the parameter is applied correctly and visible post reboot by reading back the sysfs node. Overtemperature shutdown - Simulated fake over-temperature condition and verified that proper reason is being reflected in the sysfs node post reboot. I did not observe any functional issues during testing on either of platforms. Thanks for this patch - it is helpful for us as well. Best regards, Faruque Ansari