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 7B78E36494F for ; Tue, 31 Mar 2026 17:40:24 +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=1774978825; cv=none; b=UnrTRcAU5fI2PptxauYm5aJ12oqNgHEihdfA687x8BCybuxmOPFwWnBWTopJqAgfvHPmvZWAA6tyGj1zQyEcXOBGPdj3WTsxNPGF6cp3pJR3djVEUOylzsQ8h8N56Upx2sN72g5B4xyY1Z2Bg2Z03YODwr1WxzUVU2bmQJN5x8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774978825; c=relaxed/simple; bh=dOHoGdSrbxBMY26bEZpdWKTbAmt3hyzNOpR3Jxbvfuo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FhzR3cz8RXekL9y7O6KL/M3hI4oXi6Nw291PHozkFSULxYOWA5CzrIg/a1uwoo9dZ5r155/ySBobCvu9FgOGHi9oWixykXQ7NUhC1X4TsxpJMZMQUeWvJV5Y3eyTObMXdc/z5DSRUmTwjaIG0CDc4H6wN3lYEOQQUxkny4Lvz7E= 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=Kz2kc8FQ; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Te8OOsVe; 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="Kz2kc8FQ"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Te8OOsVe" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62VGdjmB1056471 for ; Tue, 31 Mar 2026 17:40:23 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= prcTw8kBLNsWmYJw7kmJsuCzftaG/a70zFO0VwJYO7Y=; b=Kz2kc8FQv5x70bYD bS7v9DqujY/zHmDKexrW8gt8skz9l5BfdRncBLBjCGsLFCSi830T9bJRvl//VNc7 Qnn2zuzJvoEkhw92ySd0kWhAdqdFWW+wfGDd4LNO1eJiCCuvWor/nTF+uCGqlXMZ 99wvqlcB1xCDkERzDseVmBwJrycr1MiBxzW2lrMK/PcHF9kP2xxQEVekEFFE1iHD Hq2btl9lpe/0j9dDb9WmAInES7QJ3J1Ko3KJDNkuuaLx7iBFu2323vV5li/r9KIM SjVPzGbxG6h+qgXY0pLYEX72JjVe7/2k2K9OrOfyKVDx7RP6lQOZ41ItVeDnnSSN VCAioQ== Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d80hevhg8-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 31 Mar 2026 17:40:23 +0000 (GMT) Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-82c7ec40f92so9141194b3a.0 for ; Tue, 31 Mar 2026 10:40:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1774978822; x=1775583622; darn=vger.kernel.org; h=content-transfer-encoding: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; bh=prcTw8kBLNsWmYJw7kmJsuCzftaG/a70zFO0VwJYO7Y=; b=Te8OOsVexdSVAmyuTnyj13ig/0jKx637B6FgHRSJ+J/eqiL018Rh6hCa+ON8B55kGw 6HE6x6D2fS3XrXfd3iPueLuDCjdbbiFiTE5STnlNmC0ARlpHUets1f5XAC+2kkxl3z8A bjoqOGSiy8X0W9IzBj36zQEr3PYjRdXWvyZdqkyU0eoupBuTLSdQHGCtzwlwJiY1dX4/ qDnUXJhXjbsFgsZCC/UiJ9XNCaCJMIWDTgjxLPIADcTF83YcyDszSzYo3ITk8RN0h9iW fhzaoqb9bPqGYWOKxF/SgfjwhXF6KwIuIqLQ3QoxWtZnFkTDPK4WVeW9nZZ53o1wSOFM 8+ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774978822; x=1775583622; h=content-transfer-encoding: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; bh=prcTw8kBLNsWmYJw7kmJsuCzftaG/a70zFO0VwJYO7Y=; b=lkKcVQTEA1tKLNtmqJ0vWHfQbqTuBUVccRyDsHzxdDN1oghDYj+cp9DEO3f/ovVfuW zp7TupQi8Nvj95wF07eU02tud8C4fec35qlgfJ5D3rb3LJCBcVwx1p121iYQbdv66n8I F9HhXXW1pjFF+Sjva9WCbA+BYuz2VTyNhNO58JWakEtWvN8nPBB4LwPEsHgTkzymBk2Q rcTQ2LYvf313kc8wgwc68pUAmO5HSYP0+o2SONlNnZHYGu41YQrAg7w2WyQ1plMBrQb4 aS3NZm8c3w/QmZQDIAYMqLgcamGRjyibCe74Ad7Xznumv7ETA8r2WovO1nvtDlt8NA0A vTpQ== X-Forwarded-Encrypted: i=1; AJvYcCVqIrWrHBbVWZ+2ZYQSac5ABsZ4XWX0hkpAntdAj6c8libanhmCNjvdiy8q1EqsZ7WHsXyHIHYtlqXsMiU=@vger.kernel.org X-Gm-Message-State: AOJu0YyU6qVAgBdKvn/mM1NEH2BKPuP09xCuTAjH9sL2kN5FP6/k+soV EavxCHYWG1R1S7yMeRJIR/OYxng3EcVRzqf58weG2cFk5/ZGzRmY98rkLSnOw4qL0nYZWA+flzR I4RpgdV/qsNLynqrpL/9lSvPrl8mO7eTbMY++VY4ai5aWS5oWkQwDtcLS+vX7ofc+Th8= X-Gm-Gg: ATEYQzyRS7ybMpDBOG0rs36BvNatHIAWrrHwysrJu1pC+aqVPyiwKB/kvjSr2M3RokF KtXxvu1EDhRlRyzDf6rIlgpx8F6krT9biTup5FP4MpRCyUCpnzxieIILHBG/nJjyjaCAG+ugy2g VHodIf58buTaxUGbNiKC5nIb0SD7v80zRi0mEhGaLUh924ZK95WxeWGlmoBz0zUBGvlgIWPSDTQ RffYI7V2P51NFa3q0gMr8eG0un7l4awxP43CQBAMK0R89HDy4KIdFrY2iebzxZNuu7r+Ai57cfv 85JBYbWT4OMFWbv2XwJgiENBqaXF9OqwlNuQRkgmBL0opePYUUdFVOVJitOvEzb59xc3R5YiKcF mGivfkt5DsQTa3Pzrf/rvrHrhXCMBBC7Lb7Wir/uO1gheWqA1jYvDhw0= X-Received: by 2002:a05:6a00:44c9:b0:82c:d7e7:2f8a with SMTP id d2e1a72fcca58-82ce8b296c0mr488254b3a.39.1774978822204; Tue, 31 Mar 2026 10:40:22 -0700 (PDT) X-Received: by 2002:a05:6a00:44c9:b0:82c:d7e7:2f8a with SMTP id d2e1a72fcca58-82ce8b296c0mr488201b3a.39.1774978821720; Tue, 31 Mar 2026 10:40:21 -0700 (PDT) Received: from [192.168.29.31] ([49.43.225.5]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82ca85fc756sm10032533b3a.47.2026.03.31.10.40.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Mar 2026 10:40:21 -0700 (PDT) Message-ID: <4836ecc6-611b-4f21-9213-7aa6ff0a53ec@oss.qualcomm.com> Date: Tue, 31 Mar 2026 23:10:12 +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 Subject: Re: [PATCH v20 06/10] power: reset: Add psci-reboot-mode driver To: Lorenzo Pieralisi Cc: Arnd Bergmann , Bjorn Andersson , Sebastian Reichel , Rob Herring , Souvik Chakravarty , Krzysztof Kozlowski , Andy Yan , Matthias Brugger , Mark Rutland , Conor Dooley , Konrad Dybcio , John Stultz , Moritz Fischer , Bartosz Golaszewski , Sudeep Holla , Florian Fainelli , Krzysztof Kozlowski , Dmitry Baryshkov , Mukesh Ojha , Andre Draszik , Kathiravan Thirumoorthy , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Srinivas Kandagatla References: <20260304-arm-psci-system_reset2-vendor-reboots-v20-0-cf7d346b8372@oss.qualcomm.com> <20260304-arm-psci-system_reset2-vendor-reboots-v20-6-cf7d346b8372@oss.qualcomm.com> Content-Language: en-US From: Shivendra Pratap In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=Gb0aXAXL c=1 sm=1 tr=0 ts=69cc0707 cx=c_pps a=m5Vt/hrsBiPMCU0y4gIsQw==:117 a=mO+zk3XXGlxjkZV6yCQMJw==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=lfiaEQAQ_OMEnm63DysA:9 a=QEXdDO2ut3YA:10 a=IoOABgeZipijB_acs4fv:22 X-Proofpoint-GUID: hGLrf2leIL_stVmxAtco5dtEIZ_hEFPo X-Proofpoint-ORIG-GUID: hGLrf2leIL_stVmxAtco5dtEIZ_hEFPo X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzMxMDE2OCBTYWx0ZWRfXxZH7bRmDcnHV a7smVcjlMCI6PmjsyVUWDgkOJpFisuDBH3rJm29UYeAX5685Ida1dX6qn5lBX0lt7yIkmneMOqF TU8GdM2MYZbGBlST08E2m4YZCwXSI8NQLchyw+fQaYaFHH+/J2SghPe6JfZU3uENTLYwXrhb60i xO3lSZTaPyyt7Nj1xJA3nYf6XKWwXaORp6zIHYW8Gi3NCj9VXPE/lFsTYpNoPj1Ymvby8yxrQCP 236ETj52GsO/8BwmwUsDOJAKBGFQoR1sILP1oDNPAIgj2xzvoX7E/GxK+aOZLQLnX2doDkH0l6I cbqAph1cmkMpJjT/Ulti4OvE0w8tqm4pzbQc+ezb/Gf6q6HmL1/bng6N8DgizXzZWsJ24QiV4yw NKrmQpcyPrs5/5zxztHPYyeHeJ/yHzwRa2NvJfwjay6tRCt4K5uWJVcYar31KK5BliB5TyEARML fG+7ybWkj2zNforll8A== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-31_04,2026-03-31_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 adultscore=0 spamscore=0 bulkscore=0 malwarescore=0 clxscore=1015 suspectscore=0 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603310168 On 27-03-2026 19:44, Lorenzo Pieralisi wrote: > On Wed, Mar 04, 2026 at 11:33:06PM +0530, Shivendra Pratap wrote: >> PSCI supports different types of resets like COLD reset, ARCH WARM >> reset, vendor-specific resets. Currently there is no common driver that >> handles all supported psci resets at one place. Additionally, there is >> no common mechanism to issue the supported psci resets from userspace. >> >> Add a PSCI reboot mode driver and define two types of PSCI resets in the >> driver as reboot-modes: predefined resets controlled by Linux >> reboot_mode and customizable resets defined by SoC vendors in their >> device tree under the psci:reboot-mode node. >> >> Register the driver with the reboot-mode framework to interface these >> resets to userspace. When userspace initiates a supported command, pass >> the reset arguments to the PSCI driver to enable command-based reset. >> >> This change allows userspace to issue supported PSCI reset commands >> using the standard reboot system calls while enabling SoC vendors to >> define their specific resets for PSCI. >> >> Signed-off-by: Shivendra Pratap >> --- >> drivers/power/reset/Kconfig | 10 +++ >> drivers/power/reset/Makefile | 1 + >> drivers/power/reset/psci-reboot-mode.c | 119 +++++++++++++++++++++++++++++++++ > > Add an entry into MAINTAINERS.POWER STATE COORDINATION INTERFACE for this > specific file because I'd like to keep an eye on it, if you don't mind. > > Creating a MAINTAINER entry just for this seems overkill to me, it > does not look like it is done for other reboot mode drivers. Ack. thanks, Shivendra