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 DD0C43E4C66 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=1774978826; cv=none; b=tuFAzNhZ9yjTLMA8FSHzEcL+a2POhtwnWzsaMkDDNbZgl0ntNMlYa+Ab/xno9ZGSvL4dlffmdanlF8/cSkb41gmPPxnMwEo61WmoEXQuEZ4J5z4X2l8BaFTYhW9Y7O6hWL1sgsqhUjxrdOhZUs+Xd2x2utXgbCkfrBqxr0WLPog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774978826; c=relaxed/simple; bh=dOHoGdSrbxBMY26bEZpdWKTbAmt3hyzNOpR3Jxbvfuo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GoKpqm9znFrgVSF08XkZ3Q3LloOx/o5/M3z2qkvZJEy6lwSorDCxvDiUSGOnJkiQ1VM7GoQ6Sn9Z2j2vH9VcPD5kFe34a7BOrTaiKrLj8zcZPmot2GgWcaIRkrnNParYmmkdBdoQPA5pQD1sB8GoBz4QfUth1HPc7GU0G8uZ7x8= 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 (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62VGdaoP3240141 for ; Tue, 31 Mar 2026 17:40:24 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-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d8b1yt9h1-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-pg1-f199.google.com with SMTP id 41be03b00d2f7-c76ad3b732eso2421606a12.1 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=bmBlbcAJaOW7hI0emIUkQ5w5v13yS97V5rQfT5bpSZ30C3PyWzWNUGwBmC+puPBJtO HOqJkRcvioorHbazPxjBmkfq9Er4PUuwo5mWapl6fzWy3FNbG/fxFn8l2fTsZFqYKt5i OXxRkbrmgi05C1L/Va9QfKL62sG4R1F6JfTEgDqZm6RVoE8RKU8YN8N0MBjRFcHD7Q0H 9msFFX73NVFhrH6YuHHH320WLn6fANmqvVWlD7coqld/By7aazlapG6KuIby6WTcoWam ecvD5RADA7+1ghkp/5mhAUk2+rxFgUZC5iA/NDlfrJBs96eAkbD/0yB3oziT7HbQjdMN kVkw== X-Forwarded-Encrypted: i=1; AJvYcCWAT9rKICcJO51QHwMnh0rvGNtJZOEyA2vlp2LQ+KvQxcsG6xJF62DulTCQ35zxKwRlrL8B4E+8JmOe@vger.kernel.org X-Gm-Message-State: AOJu0YxB7VrJClyxZZti3VqZ3W57DNV3q+EEsfaZmXK1Kvua5gjIQevF fsyZuisHku2263ALpdPt+alQ8KiMk/b/2mawt/p+/r8mTOrCICYmyKQflfMFj0rX3J/zIuNeFwf 51dgXdHvknxHrEQrZxyvhctQ3wbOUzmOutGpqJILWk/wzxkI4OJaFZ7cc7jpUOef9 X-Gm-Gg: ATEYQzy55J4B5X0bJjdbL6mQ/6ptBUg2x6I6tNpG7ilcvX9+ME/8V1RzQTCoxqlR+/F t4UOT2VCMk8tLCpYGTLil4zKYBpcwwfFjRcL5B67w8R+jA0NRcAYWgMbNZ4F9/83VdiLhNtP9/t Cf7AySbVxvYen6Ro1YBxKuxc1zDHPDqAjFlar9mgXc33TZz2L4aU+fxIWVKxlBUlsKx2UmL4vPS oLecVKBNqNXs38shogOS02Ng0TKwUyzFVwZ/J4p5+/sN/WK89MyiIxSMmgPSy6l14e2o2E7dgjl tfunb2ZpwaVTCOJMOvrGkPwGkGSJ9uU73gQrErlNATx+HhY1HzZjuVDK50I2K7gvq/2lzeQvPvT 8sOEBUU4RRSW8SPIJ0TF7zNZxikGwBGd/HcDcCk1wyOqzIsTcsStah/E= X-Received: by 2002:a05:6a00:44c9:b0:82c:d7e7:2f8a with SMTP id d2e1a72fcca58-82ce8b296c0mr488233b3a.39.1774978822193; 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: devicetree@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-Proofpoint-GUID: O67qUMnTgpnx9jHfubf3a45kf2KkH10l X-Proofpoint-ORIG-GUID: O67qUMnTgpnx9jHfubf3a45kf2KkH10l X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzMxMDE2OCBTYWx0ZWRfXyFE4R0Z7PA87 Rb58M0QmFonP/P8n3tyEwu5SxEYyphCcmopElt0o6MGHt+vHKervE6ZE680IxxWDmb0riUky26l E5b0PV3amoa0ZL7vMayGiZQeG0eZ97/XRx/Dx9sq4kR1XC0AdYDOIJ8Pm7mxlbGRpVeAz+dX4Cg bO5a+fpeNt0XQudfgnwcrJNeTVZEQQ65RRanyucPW6XeVHrIx6iqEeAKJctZUoiMl97tEemY4re esO5AQkmlf46qIixGhidnFg93Qr724i2R/LWtFncxqcL0L0cAqukoB4+nOZkMEQok9yWf4wZ+U/ Xrdoxdunqx0rot5lMj4ZP/bn1N3Esi7/PKx4aVHtd1fSrwU+hjpshllc51GxUgI7m3tUf5S+APh 4eORi9fdtGUgnB2g9IfQe2HOgPYfzHXTFg298mx6+mE4aHCsWQJsgKfmuv2vpg0SHVYeRpf2/CY YTQIKq/AjkGRJaAXNxA== X-Authority-Analysis: v=2.4 cv=aJT9aL9m c=1 sm=1 tr=0 ts=69cc0707 cx=c_pps a=Oh5Dbbf/trHjhBongsHeRQ==:117 a=mO+zk3XXGlxjkZV6yCQMJw==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=lfiaEQAQ_OMEnm63DysA:9 a=QEXdDO2ut3YA:10 a=_Vgx9l1VpLgwpw_dHYaR:22 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 suspectscore=0 spamscore=0 phishscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=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