From nobody Thu Apr 2 01:49:53 2026 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 AA649304BDF for ; Tue, 24 Feb 2026 06:42:38 +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=1771915359; cv=none; b=WmibbfvrpWP1xXIZl+vZuXNsCWDE8RkXnfhk5Kk38W6G5w+XTqR6w1eaMA+Xm9xLkFNTOYBKPgLRfRjikOwXVVcdsiSCfLbC/da47/ojfHN39R7f3bChBHoF/pEXiSNdTJAtDeORWtrzAjyP8cLuCGJDm1Dyp7zeyOhnE1Gw/wM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771915359; c=relaxed/simple; bh=PdSzz0bj4RkAm9gUU9i1xAXXLdjyg5Gspl8Tfkihp6c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=h/y3/CiFi7P2qwB5MBUwMC9SwO7f3+ovdXq/IJqWsTtsWQ7DQEHOifFWMAFtLy5joMlQpAANnUWjB5YClkdW5l8Z4Ww9nYRMLgEpS6xC842I4DSsGlq2KHMlNbTGHjpj3SQ4H10Eus1o5jBlNM6jjDEs4jjti3Atm3f4LzHA1XQ= 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=C/7sh+F6; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=cN6BjzD4; 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="C/7sh+F6"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="cN6BjzD4" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 61O4Lifa2808544 for ; Tue, 24 Feb 2026 06:42:38 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= oHUkWHA7HOd0fTIofvIxhQ4B2OX1P9ypBZz5EM2pVT4=; b=C/7sh+F6t6c7mNZH LOENAoK2g9gdWxr35Ubb9rvP1Uyz7uCLyk73zjCdkBTCTeREdm5SU7B0wEtt2Cbl ATMYUGG8XMMg6ZK2r27bi2MNOZvOoXsrBqretJ4AX7wsgFSZM2Ra7RIoSaieVTrU +erRVB/iY6Yq+hhT/fw/3sAbID5pQJr6BZQ+rV0OtC9m3nZ/hroZXyi5IMQBejUT r/gjjiNMOR5Jl6RGJhu8P8/+zv5wLfx9btl74Ag6nrCdCoyc45ckkLgqhmHPIVxr KHj+08cNw0AQteiWsuqMTu8GOVKFoKmgNHjlMuQDmoEBkuWJp8He7Bo7aH3TUq5k bzZiEw== 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 4cgn8rb6fj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 24 Feb 2026 06:42:37 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-824f75913c4so2366926b3a.1 for ; Mon, 23 Feb 2026 22:42:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1771915357; x=1772520157; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=oHUkWHA7HOd0fTIofvIxhQ4B2OX1P9ypBZz5EM2pVT4=; b=cN6BjzD4VHiYhfriXHme/W0T+4jIL46tNlC5SVsIdgjTMtqvysyIb7dnoh/ZVip1Sx IG0pcebDYwMl3iermqGyALcnLkKNzCT72+hRQLE4170SGqAIHu27h0hwS9ayINCb92pl VIOS39609bA13ybNOQs7gCBqOQR97HrpmLrBn4NEk3058mWxGQ0ROoyyelU3VAyBQtcr vijP9TK9+nhglqRr8DqEqASVl+K8qO0/RW9MIl0aIkmcuiyecfuqGzlRNbQkgAMYtMCm loKA+I1lqvtBMunlPn9fVbL/cJcYGUp1PBHea7XMs5//DtilM3G3ZwUdQ/BbUjgl7OTX yYFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771915357; x=1772520157; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=oHUkWHA7HOd0fTIofvIxhQ4B2OX1P9ypBZz5EM2pVT4=; b=HwH15lTxZcKeQAKqcegOU8fs2qYKL+yBIh6eCWDs1jogDs6D+n0gPOKS8KYK7HPWCS 1tNJ64uh3udPwvfObb8e5kOgJfK/M+Q8V4vDZZKuX7kUwXs+x9LZfyAjZKcYL67Muupq ovnZwtwDzvVdO+/OiQj4Hko/cpEpGbztXBRQHLuI2kPCDDGjMkaHD5Msxu16b9il4LrG PQBoJrtYzoFyOMv3Lzx2Wffyhv6IH7lAUuERSUI7U7xJOW+gohNCUICr9ycxxR97Lbna 5bCqhKsvOAo/GENWZfv4ZEqtHUVc7FhX3MyBMg82if+1j9GhZmknb/oTaKtws2qWNxgO C6rg== X-Gm-Message-State: AOJu0YxgvqkWxg93cS1HQVA0jEqDxumBwHu8KdCoXoh6PiwMxJGqa9iW 69RNhzHfPYjvKACDeHKHB8zAROMVAPYEpDf6x/LawxneSRPJKdcwz0jteOxSCuaul+bspMRIeGm NMAsd+l5m9Eq9mFfBsHMVJIWMhUnqv0O5mMdx8f1RMwDHw7ZZPi8+ejLJATs2X98jIcc= X-Gm-Gg: ATEYQzwFj6OgOcTOyAfzf9dIrr8Qwa15JphIScYzu18mcxkpyEI2FiydZ3jwFO+CDWZ 16kYM7sfVgxClobd+2JvU3uWbsGcAnLE/iiD1BL2f/a2AeUIKQEhAaiuo7i4YW122aPLbAPx71P l0BpIcm15HWZ2GFDWIq2/QkY2ZIeHtZliOyi+BB4ADyOpwgkIX9nA6FihVWjiPS38JktoJXSZ7x H2ft9vDr6ddC279/OijoMF7La4vvQDyvuMirlGSsZmtXwHB6G2+mCWpTr5fAxggpKOMC3Kbe7vZ XJxqkuuMud+YTUcLpg6mZZoMP8Ayp8gFXQS+2snybhsNJDGYg2Q2CQRnwHUvQMbxXnO15EWcK1W pwQs1nCxK9n/eQmbtLh0wgA/rcH60dyakHccUPpENMfg3jc2XJaVLsk9YOg== X-Received: by 2002:a05:6a00:23d2:b0:81f:4a0c:c584 with SMTP id d2e1a72fcca58-826da8bf420mr8945007b3a.1.1771915357196; Mon, 23 Feb 2026 22:42:37 -0800 (PST) X-Received: by 2002:a05:6a00:23d2:b0:81f:4a0c:c584 with SMTP id d2e1a72fcca58-826da8bf420mr8944979b3a.1.1771915356677; Mon, 23 Feb 2026 22:42:36 -0800 (PST) Received: from hu-spratap-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-826dd8c7535sm11857732b3a.56.2026.02.23.22.42.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Feb 2026 22:42:36 -0800 (PST) From: Shivendra Pratap Date: Tue, 24 Feb 2026 12:12:26 +0530 Subject: [PATCH v24 1/2] Documentation: ABI: Add sysfs-class-reboot-mode-reboot_modes 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: quoted-printable Message-Id: <20260224-next-15nov_expose_sysfs-v24-1-4ee5b49d5a06@oss.qualcomm.com> References: <20260224-next-15nov_expose_sysfs-v24-0-4ee5b49d5a06@oss.qualcomm.com> In-Reply-To: <20260224-next-15nov_expose_sysfs-v24-0-4ee5b49d5a06@oss.qualcomm.com> To: Sebastian Reichel , Bartosz Golaszewski , Bjorn Andersson Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, Bartosz Golaszewski , Shivendra Pratap , Bartosz Golaszewski , Sebastian Reichel X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1771915349; l=2327; i=shivendra.pratap@oss.qualcomm.com; s=20250710; h=from:subject:message-id; bh=PdSzz0bj4RkAm9gUU9i1xAXXLdjyg5Gspl8Tfkihp6c=; b=H6a3q9ynFdCwo5wpTqcHf5538fqn73/13OZdKErzfYNcjDDmjyLtPqStq0rg9px0DnKCAxID3 Hh7skNuRg/lCIFVGTJaBVf4cwbIJEfBLWke7TAsD6yxHI3FctC7bAk1 X-Developer-Key: i=shivendra.pratap@oss.qualcomm.com; a=ed25519; pk=CpsuL7yZ8NReDPhGgq6Xn/SRoa59mAvzWOW0QZoo4gw= X-Proofpoint-ORIG-GUID: GRXmNhIEPQVkzBb-CZfEOcwabk0rYuhN X-Authority-Analysis: v=2.4 cv=V7twEOni c=1 sm=1 tr=0 ts=699d485d cx=c_pps a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=QX4gbG5DAAAA:8 a=EUspDBNiAAAA:8 a=LKyF0dicRlewKW4vAhwA:9 a=QEXdDO2ut3YA:10 a=2VI0MkxyNR6bbpdq8BZq:22 a=AbAUZ8qAyYyZVLSsDulk:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjI0MDA1NiBTYWx0ZWRfX14p5g3Dcd1sY TbgES2gf8KDa2aQ0hx96EwWkHm/jSIECWuOOpGP59aPBweAOvM/F1eg/lIaJICVwXljAfto0h7j 91fAZ+AM1/TDhhy5Je+8A2EO6+RzNyRh/Uqt79pyehiEayNeyUQiRPi7ErKHvaWC/SXa2Js7YCi 2slPMIosgoqgFMjlBpWBxFTAE6oZq+GOoqUwRalZT05zvzJO1NZTTFhyN6QhDMe+WTFaTqMTOD8 el15ATQj3RJthGxj/w4srLhDOExIb1h2AeZYhZr9PmVAXT3CGXLS+apjeD9GUIy/r2M9wTMoltM KXohbS8SsKgUH1OeLIVBsN4zOpeGlpqfD4214oYZ7UW2HSbZUiEq2K+se74TP/db0/Xjd97mS18 KjarqH7UMcYpLJwVjFLk80ZBCfGYzy0sO3s7bSWNyKr8/ndc7Tw8zgKz+jGho4oDswqqqnK9b2u hlJfWc+Qm7xx5P5Jdpg== X-Proofpoint-GUID: GRXmNhIEPQVkzBb-CZfEOcwabk0rYuhN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-23_06,2026-02-23_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 lowpriorityscore=0 suspectscore=0 phishscore=0 impostorscore=0 bulkscore=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-2602130000 definitions=main-2602240056 Add ABI documentation for /sys/class/reboot-mode/*/reboot_modes, a read-only sysfs attribute exposing the list of supported reboot-mode arguments. This file is created by reboot-mode framework and provides a user-readable interface to query available reboot-mode arguments. Reviewed-by: Bartosz Golaszewski Reviewed-by: Sebastian Reichel Signed-off-by: Shivendra Pratap --- .../testing/sysfs-class-reboot-mode-reboot_modes | 36 ++++++++++++++++++= ++++ 1 file changed, 36 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-class-reboot-mode-reboot_modes= b/Documentation/ABI/testing/sysfs-class-reboot-mode-reboot_modes new file mode 100644 index 0000000000000000000000000000000000000000..a16c54ab841bb4687d3844ac5dd= 4abf6b37326e1 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-reboot-mode-reboot_modes @@ -0,0 +1,36 @@ +What: /sys/class/reboot-mode//reboot_modes +Date: March 2026(TBD) +KernelVersion: TBD +Contact: linux-pm@vger.kernel.org + Description: + This interface exposes the reboot-mode arguments + registered with the reboot-mode framework. It is + a read-only interface and provides a space + separated list of reboot-mode arguments supported + on the current platform. + Example: + recovery fastboot bootloader + + The exact sysfs path may vary depending on the + name of the driver that registers the arguments. + Example: + /sys/class/reboot-mode/nvmem-reboot-mode/reboot_modes + /sys/class/reboot-mode/syscon-reboot-mode/reboot_modes + /sys/class/reboot-mode/qcom-pon/reboot_modes + + The supported arguments can be used by userspace to + invoke device reset using the standard reboot() system + call interface, with the "argument" as string to "*arg" + parameter along with LINUX_REBOOT_CMD_RESTART2. + + A driver can expose the supported arguments by + registering them with the reboot-mode framework + using the property names that follow the + mode- format. + Example: + mode-bootloader, mode-recovery. + + This attribute is useful for scripts or initramfs + logic that need to programmatically determine + which reboot-mode arguments are valid before + triggering a reboot. --=20 2.34.1