From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796304632; b=refFBqOfWfOR3G4MznZgpKZEI6BAsLg7mCphpJTf68XKa7fUtB0cQ3WT1ZEBN2mA6odt kdpmKtBb+yNL1H7vYiGBZlodtR/oF8EgKbDZ0JGfqNUgJp9DHWj8++ilV2XWh2fCi2jIs y9V1/3hJS9JB8fjGxmfGWgs7bWXz3ABvbtdJSt36rwJqix0D3FBPkzHlWozAdpaBKPmA0 p8fEKj8jQeaRVbP9v6ofHF9uMfcLJZa1nThQVufKOv2GogWa1IoC5hVM/IVpwzooUcYKO NbA7INRDEV/SSwwqkEdcQZB2DIc2cfV8SrgNDg90WSyftgizPM2q/eWwMOcab0Wg0Pw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796304632; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Authority-Analysis: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Spam-Info: X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=jImevC523PuGdqhb3Fl36oycBvSZH4P6LnltrHK2V58=; b=w8RWozfURnwBWhpkMr5bTllh8SAWCaPxKC148k0UP1x8BF2L/s/wFOhPBEkCYSGzQxo+ uCeMioohM3OlVpmvFJe8u4y/aLG7CpK7wOW6uv+e84GjLfMtbebdHEvLdbcTJUiMZIiN/ RD4OFTUI+e4oERfcbD+ipG3BHNskySD/MvsGsOwH4dLbO9tGMoOhIGe4r1IgAxa7TD0lD yd6gQDapro84OM/+FBEe+wPJT7Xy53u2CUOuYhr/mQ5+b35XVw6wfq5pQNZQMObpsZqR+ 2FlShCWgMfcGWay297AatmLCJN0NrHErqkc7QBdXXKyQ2K25WE8gtvej3qGaj8GZV3g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Q2OqgnaA; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=KVV0bJpN; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D329606A32D for ; Thu, 3 Dec 2026 13:30:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8D329606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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.a=rsa-sha256 header.s=qcppdkim1 header.b=Q2OqgnaA; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=KVV0bJpN 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 6B3DGCoO186355 for ; Thu, 3 Dec 2026 13:30:30 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= jImevC523PuGdqhb3Fl36oycBvSZH4P6LnltrHK2V58=; b=Q2OqgnaAp5Q2PFiX Inbw87V8WQrAvZUFH0azsawxEsWh8L0gRVCSAaxI/ZGsJYbymUHZONeyAOvZXq/X 4vl3rS+lFmuvbmvOuOjWh7yvq6s56m9gODkM2WBrbCQukcZUqa4JQG1BxTaz8gJh C5ZhOklsvejPg7Jhe3sKDgYI8dmQC5zpLu9Ru7RBOYkJ8I/SGPSktJpyEXyA8TFe RracT3wZoCUAdAU0y5fjWYEYpkUIsj/Zz9cI04Jwq6mGWmmahXpPuq1TEzJk/56E 2zPG1VsRB6TYmFNsOYSlk4dNfjIYBHBE2HuWWNOhg5wie5hS2lVIkydkINknj5Jd xxs7mQ== Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jb395hqq2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Dec 2026 13:30:30 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-5476f5bd009so45168381cf.3 for ; Thu, 03 Dec 2026 05:30:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796304630; x=1796909430; 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=jImevC523PuGdqhb3Fl36oycBvSZH4P6LnltrHK2V58=; b=KVV0bJpN7cavah7qysewAJmV+M8EvC+UPkvMvE966YCJE/2bGUff2sjoLUrN+xfVd9 4uDWs53pnA01WNDq3GSiyS/Lws1UFpGqjCkOgAmUdA+pcJ1w6U4inhI9DT3z0QEyABH4 LA7rWUY2zkinZy+PIEUfRjsnVCaCJpXpZsJgZmD+SxdLTwP7htHjrlkHWanEAbgMpp3z 0D0/DddTWsVSCvURxPnhukUHF6MSKcJEJAlcSjMRIilgfE0hT5LWfotvmRtYvTEeWf94 7RvaCJ7XCRDN5Ovw2dHpHktvX9ff7jRM2d7v7jEZzAd99z/v1TemNhV1stAABIY1qlPB CmlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796304630; x=1796909430; 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=jImevC523PuGdqhb3Fl36oycBvSZH4P6LnltrHK2V58=; b=Px6TtUmTQ6ia8lAcvrh14RFVBAypiK6TzklZZD67LJhfWkuYhfIAFsFIQc1ui6GNex kPEvx/s1WzAw6glXJasr9po6L7ny5AzX62fdYjWmYMhde9txZ2qS2QH5xhPPBLq+Bp4U zV8sATmNNlJ2qXx4eqoIB5o0QoM3tYEwXpC5kLFBJ7RhO+903dnPzML3WNuCiH3tr8Dj UorrxdNmqbeccO94VsyF8oYEo8PW1t8e7ibhUHyGOnJcfo5OMx2XbKjwyFRil/s/3hYL QLgW49sb2au0xLuYN9N8jb6x84Hs2pEtNF/0FC7C/qTFCebTCm0Ky1LFGmkLM3NQvqzY ZgVA== X-Forwarded-Encrypted: i=1; AL+hErHmijmbMc0AYaUd3hnom6FcV9xY0Hq2piTfX3J8gJl1H23u/nAQz8fOzBqyxDjs3PUOwnDesmMcHVgN@vger.kernel.org X-Gm-Message-State: APuU4Z9teG+NmbJ1lc1zq0PmE13lWDh7O/hfLajByb3gPxQoh4D5ca0O h8MNcsQqD60NBysr1576VCrisMrLDbKNoIRm3LhHVXhKaF3cYCKpJ7WUJx0jYi1ImvF2wkZ1y0Y SJbbLFL8WwoTeyc4htUIyU1hkDNG0ipfH0Hih8x6kG9dXyF0sVbkKwcYGS9X+4JkZ X-Gm-Gg: AZFdTZfqUhyKWE/bjaZqnECKpz7gDjLO2bzyUGdiZpXunsVpuoiB/7IBlTG+Zk6SsX3 sQmOdCl6jyCvpRJaX6CKWznO4eYybYwNL86bmQjmY9WyMOUbDtIRgBF2ehPcZS7fz9BhGyERJhx LDNtYmqxAPKwMPrIUFO8IjSgKB6f7+qe5lBR7Pq3aW90pu+Xfw363G5PWvZefNb2zF226o+ZbhT GazRe1sp9r/cysVdlzz1aDDzcrfc8/gQHy5iK1GmPn5Il9CB1oiDTDHmPCNd9VHd/wlkpQdLkPw xKLgbSdhTltlD5gsHhQNsH6T5HlTvBVw30+TLXoLLnHISRSxXqQBqVE/LgXvHRYJI99rB1cuYgJ T+d03B/AykR8/PyQBnvFHpDrEEbrggybcDmaeLxxGMbHpEQzBNv/atIUrIScqI1dpkOSZjA== X-Received: by 2002:a05:622a:6a44:b0:54a:a0ae:795b with SMTP id d75a77b69052e-55e2a9c62fbmr25319681cf.3.1796304629643; Thu, 03 Dec 2026 05:30:29 -0800 (PST) X-Received: by 2002:a05:622a:6a44:b0:54a:a0ae:795b with SMTP id d75a77b69052e-55e2a9c62fbmr25318901cf.3.1796304628952; Thu, 03 Dec 2026 05:30:28 -0800 (PST) Received: from [192.168.226.72] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6bcab248dd5sm356758a12.8.2026.12.03.05.30.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 05:30:28 -0800 (PST) Message-ID: <7a89c469-c0c2-4331-bf6d-bea989793a05@oss.qualcomm.com> Date: Thu, 3 Dec 2026 14:30:21 +0100 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v27 06/10] power: reset: Add psci-reboot-mode driver To: Shivendra Pratap , Lorenzo Pieralisi , Arnd Bergmann , Bjorn Andersson , Sebastian Reichel , Rob Herring , Souvik Chakravarty , Krzysztof Kozlowski , Matthias Brugger , Mark Rutland , Conor Dooley , Konrad Dybcio , John Stultz , Moritz Fischer , "Rafael J. Wysocki" , Daniel Lezcano , Christian Loehle , Lee Jones , Ulf Hansson , Pavan Kondeti , Abel Vesa , Bartosz Golaszewski , Sudeep Holla , Andy Yan Cc: Florian Fainelli , Krzysztof Kozlowski , Dmitry Baryshkov , Mukesh Ojha , Andre Draszik , Greg Kroah-Hartman , 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 , Ulf Hansson , Bartosz Golaszewski References: <20261029-arm-psci-system_reset2-vendor-reboots-v27-0-fa4b3ff1359b@oss.qualcomm.com> <20261029-arm-psci-system_reset2-vendor-reboots-v27-6-fa4b3ff1359b@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20261029-arm-psci-system_reset2-vendor-reboots-v27-6-fa4b3ff1359b@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=DK8acCNb c=1 sm=1 tr=0 ts=6b116ef6 cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=7MS9Kjim2gai6s9ofkIA:9 a=QEXdDO2ut3YA:10 a=dawVfQjAaf238kedN5IG:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAzMDA1MyBTYWx0ZWRfX8NBnsWWNKnPZ Ym1zTO//NxnF1AooDhNgtW7xEx5zFZNPnTLwgaONuDC6GQO1AnPZQlRNvsROULEgPh1VtLws39a OcrGaLWtIRhVGtrzKCqOI7YCbh6okpHg1/VQhaJ0R/bI8JZW980yrt/JOpk7+nYv+YqBj6NO/nt xoNRs3182mjXelrELMPkCXlo6KES0tnu6BPxL0wu0hEhsHCJmh1sQl+CTqixThQQE2KMJujhR1m DvdppL6yw+eK5JuzVEF4DUUUk7Lm2fQUzHjrSj/eNS6jOo0f6oyMxYkY+sKKBLecntHW0yRpjo7 NEMzd8sxibG4EGRzpne1+m+FGSHR2rA3uCcJkkh4t+rnv6s0cfkS2wVLKgIy5KI/MCBnjzE7hel oagxBVHDjS8IBu7tr23ge7jbZEN/RJfubHVOpPVQRlu5r26J4+tedyaOkSlEz/GYIfEcCJuYHB9 33J5UoiVvQWK5ttloEg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAzMDA1MyBTYWx0ZWRfX6BR7KzHxkd1S VIS2A79ws9f1Aq9meCVCalPYRQphNiRrLgwZ6NgbwXX07rCQhOhCbdXgDsu2pQfZE7lWLB1Wfak lSxBjpJv/qrHH45U0U1IzLYNCgT8GxQ= X-Proofpoint-ORIG-GUID: y4W1yTTrFl10xHa0nvNLarp1gMmUUDq- X-Proofpoint-GUID: y4W1yTTrFl10xHa0nvNLarp1gMmUUDq- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-03_03,2026-12-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 suspectscore=0 adultscore=0 phishscore=0 clxscore=1015 spamscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612030053 On 10/29/26 10:01 AM, Shivendra Pratap wrote: > PSCI supports different types of resets like SYSTEM_RESET, SYSTEM_RESET2 > ARCH WARM reset and SYSTEM_RESET2 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 psci-reboot-mode as an auxiliary device created by the psci-devices > driver. Define two types of PSCI resets, predefined-resets and > vendor-specific resets. Predefined-resets are defined by psci driver > and vendor-specific resets are defined by SoC vendors, under the > psci:reboot-mode node of SoC device tree. > > 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. > > Suggested-by: Ulf Hansson > Suggested-by: Lee Jones > Suggested-by: Bartosz Golaszewski > Reviewed-by: Bartosz Golaszewski > Signed-off-by: Shivendra Pratap > --- Tested-by: Konrad Dybcio # Glymur Zenbook A16 Konrad