From nobody Tue Feb 10 10:03:52 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 6ED5E23D29F for ; Fri, 26 Dec 2025 18:56:43 +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=1766775406; cv=none; b=I/bCF+vBfl3Va3e6MqENdCXmzStfUcDUt4j4I/l+UFvEnIVK4uzoy5sCQMkYdLVKBMjD8bXITOX8KI6hhBkuRADsa/JOX8c39YDcYmm19KGCLMzlH65paM9h828rSEmU7rS5xszHU6GZ5MGoevTLZ0CfCpDD2m6zcT+o4gPL+os= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766775406; c=relaxed/simple; bh=VbqIQMroIlq6JMMANB+DTWjTL1f1TuzU3o0hZWDdc+U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PGuhz3B0emvYh0kpneON8kavkXtBxK/MZ/eSsw7eDr+smeMKos8UN/Z7ELq3ErIqLvMgBkxy54JX/06+sNAhF1+tBEDUDCHMAdX5HDM0gPW6zm4NIjOoTzkMRooNSECmInl0pbIysw5ZY+9WQDGSMVMcRv5KMaAe06JdxVuMfq0= 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=lHhhSnoM; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=TxJaYJuu; 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="lHhhSnoM"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="TxJaYJuu" 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 5BQ8bcvu2454362 for ; Fri, 26 Dec 2025 18:56:43 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= maLQn0/g6TQ0tBQyQOJF0vW4h969wzxQrbt5sqlv9hw=; b=lHhhSnoMJYdVHeZl PpIZjGnobDA0orpmLSNWu5yRdrBXr9oszi3rQDyEv+lQOTJjaVbfOPVML8xvikU1 D+LZJwJXWh7+r5QvfglSw8rePqNVjSOZdaqKLsjrSsJLIz1++52kTlKM9Rhw9Nul 3SH3uGD4iTA4/5eNrW0zMSeQouW7f1766xlQyrVy5nKMfnsq1wxkMmtHp2j0EIYu aSvpRcyT4PA9r61UsQyphtoAZqljP63+jKymcFStM0Uf9F+dGuGDx9K5WRGc9BHX QWk5G3zgawnMXT7qfErrOa7XtufXFCOxyDH2dCrKLSE19uQpeHbW4H3iP4d44cr3 nwWEIw== Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4b8hwe4vbx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 26 Dec 2025 18:56:42 +0000 (GMT) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-7bad1cef9bcso15455092b3a.1 for ; Fri, 26 Dec 2025 10:56:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1766775402; x=1767380202; 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=maLQn0/g6TQ0tBQyQOJF0vW4h969wzxQrbt5sqlv9hw=; b=TxJaYJuuWbbNvQxrDhQyw0ruwSk7fchj8xe+/WOWxND0fkA45R/MgS3YB0miQJ6nTO IupxwIE7IQW7u7NkFEe7WhZQkB5NulQ5oO68fpUuufShrTM8/Ib3f39vfMugyAYgH0vq fJm7XubyRCyj+0V/o2u4s1KKDtN/RKxANKp749vsy10AMR0rzs1KkLFLYoDzAdwbHJnL E27ZQdOUzZYWBotQq2tq+IoPfRpiykkCAxZFB0grOjlLyIW/2FW0hdJZJmdViJk0WD2M Z3S0uccdFZQnX3xS+30pyg3Xu2Jwtv4kGFUqgVKXyrEIcjJ8RBzUbH6ZB7U6lEACZ2gs ebhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766775402; x=1767380202; 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=maLQn0/g6TQ0tBQyQOJF0vW4h969wzxQrbt5sqlv9hw=; b=JYuAXWKWYcKUJ7946bjZfBqs4VZa5X4f8uMFBBBfUdlv1MRlE8o3rvCR1FnyI2+RzA 7O4RU/xv+XseDoOlal0vDl1ElpeYk1WwHZkaWtbZKg4vEbdcYG9IuRuc/V6Q/pu9K4T3 HXTtrHW4X4igPAWGNxlnGRkyTcgciua77y/rxaR4Xpdve6Vfq8QVwJlIcRYDBnFhK7aA aD1y1YB9ys1t9GoLL182xoZ9ADyv4t9uPSMYHuFsQomikzhEE5BaugeA61hVCohssO40 EXce2pXuXFsVhaWAopupM2mMqOJHgufPsPOISuhDgAigMVKAoYfm+TstcI7RYaqUSbXw ufxg== X-Gm-Message-State: AOJu0YwkoW2jOhHAiA/sOksAzLtyDNuFURLzXy19XCAZpkC/yhiJiYj4 gP6r8A4l/wtay1m/0/uH9imwdLdW97QxwXhQLFeL19qMSUhTi+aMI+sgyZRxOYv+GLspMWygA6C rPxPjpEAv07jZEiUYUTRiHYosCYmCYDYRqD+7NDUI0feDhb8PCk5tQ06/wUI5cPhCquc= X-Gm-Gg: AY/fxX5hz5M7YI4xIIjWHrJNNfZVxVwCWx/p6eYgmbNUmXpo1DusrpcZgwpXBWxCkyF yRl9m17Zng5pRDSmppZ5fz2DMo/qVT1ROfm0Mmeslxx3p8Zeexop0hCdglKbJxK2H5p8qUkL37R 1cLTVs3/8/1Jcag8RjuMumUjrkr1G2AdREHJvKYCg9JQ87jr24Apc7wuG5R1TXBrrSVumBhr+uS XvvOw/kVIlWc+Hgt80eg/j+NjU2AfdGCHgg4vWNTcqBe+RLNP2jengR47RFXhpZY78t7b98BUt3 +GRaPwsnnwTmUvveHE0lG03Mz5Q6v/xWUmzepcbpb6Hai3tv0eJrgdHDTEpbqgkmVJFh/rZg5uC tljnD3ZfhYDaNO0KWWD6/4JF/CqN/zjHPZh6/oIpwT4cRSg== X-Received: by 2002:a05:6a00:1d27:b0:7f7:1857:8456 with SMTP id d2e1a72fcca58-7ff6667cdb2mr20548010b3a.55.1766775402137; Fri, 26 Dec 2025 10:56:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IERWjkBwyqqrCPa7tb3AVg5b/stcMwi80y4amP/imcusyJfTWAvkM8b4jFCAfc7rNtZDEIG3g== X-Received: by 2002:a05:6a00:1d27:b0:7f7:1857:8456 with SMTP id d2e1a72fcca58-7ff6667cdb2mr20547997b3a.55.1766775401707; Fri, 26 Dec 2025 10:56:41 -0800 (PST) Received: from hu-spratap-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7ff7e88cd71sm22638187b3a.64.2025.12.26.10.56.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Dec 2025 10:56:41 -0800 (PST) From: Shivendra Pratap Date: Sat, 27 Dec 2025 00:26:33 +0530 Subject: [PATCH v22 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: <20251227-next-15nov_expose_sysfs-v22-1-2d153438ba19@oss.qualcomm.com> References: <20251227-next-15nov_expose_sysfs-v22-0-2d153438ba19@oss.qualcomm.com> In-Reply-To: <20251227-next-15nov_expose_sysfs-v22-0-2d153438ba19@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=1766775395; l=2330; i=shivendra.pratap@oss.qualcomm.com; s=20250710; h=from:subject:message-id; bh=VbqIQMroIlq6JMMANB+DTWjTL1f1TuzU3o0hZWDdc+U=; b=YwXhOppQlqYvmBBf4fFNIoB7tI3zaKTtQvQ09Aq2dEY2KHHMWL6LPmNCn4iulQmTqKnjZWxr2 IWYEMyCGav/BcyUaB38KPl+ey2tvAJPHkVy/02G+lZ3f2HmvJJSDVPl X-Developer-Key: i=shivendra.pratap@oss.qualcomm.com; a=ed25519; pk=CpsuL7yZ8NReDPhGgq6Xn/SRoa59mAvzWOW0QZoo4gw= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjI2MDE3NyBTYWx0ZWRfX2nn+zW2tCM3h 3MP/A3Sd9uBUZJQxw9VewuNUz9d5QbsIsWJw9E0Oihp5nknBvlerFCyImFkkqB4h0NBN0Qe8uEi 4P82KnzoRE5Crc9MzE+Ablnm6IvfRNulNeikBXEj7h30e87ZhGAUSwIrA56Z6vwyuVT/pCtOVr9 pzDwTjIqFihCWZYXPZj7H93+VO1nxwX8Z0WGAhgpvew5HX9n/kAs0A6duqX27+jigSwrfTAczqf R1FlrvNz8Pps6kPrNhCuUVF7VuyTAbFng/M0SFKlG5pyy8/9Dw3/In/JxgXQzeVxV4bAaNy09T7 CEk0ZyUaN270H5BsMH9B6eQrGOePEDXIw+ND+6bi+Jt5rfSz5JyGOU38spQ/RCYt0iz12bhp8PY gcbjY0SVTO7lBMhUYNymPDDrQCvEGx7jORO4Bm9WB12J4HJRAC+bg9XLXnIUsp/gY+ReMr31GKi 5DtSelR1YrFxGnoCaJg== X-Proofpoint-GUID: _KFcn6Zy1ToLxbVN5tkWoQ7hsgGX_Taj X-Proofpoint-ORIG-GUID: _KFcn6Zy1ToLxbVN5tkWoQ7hsgGX_Taj X-Authority-Analysis: v=2.4 cv=P9c3RyAu c=1 sm=1 tr=0 ts=694eda6a cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=wP3pNCr1ah4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=VwQbUJbxAAAA:8 a=QX4gbG5DAAAA:8 a=EUspDBNiAAAA:8 a=LKyF0dicRlewKW4vAhwA:9 a=QEXdDO2ut3YA:10 a=zc0IvFSfCIW2DFIPzwfm:22 a=AbAUZ8qAyYyZVLSsDulk:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-12-26_05,2025-12-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 bulkscore=0 clxscore=1015 priorityscore=1501 spamscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2512120000 definitions=main-2512260177 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..dc27cb4e698eebc99e72821225e= 8bf3bbe7cc7e6 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-reboot-mode-reboot_modes @@ -0,0 +1,36 @@ +What: /sys/class/reboot-mode//reboot_modes +Date: December 2025 +KernelVersion: 6.19-rc1 +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