From nobody Tue Dec 2 01:27:24 2025 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 AAD98285C99 for ; Sun, 30 Nov 2025 18:21:33 +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=1764526895; cv=none; b=czAaDrngzOosbQvjNz4cBmwYnJ9fnvWVlWsklxarUS2LNSR5nIvpUkvGsZHE1Eq6uS+2pcyiVoaiYMSQVrrqN4QdgVfzXnpaOiZdsANLCOExjTxVUN2jLtELsiaxzFwK7CBlADx4JshM1g7eolN7f0JrtulwIXAgjtIXLSjZ32E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764526895; c=relaxed/simple; bh=usgZ50lsKAOs/daHoCBRLBx0aO1Pg/3aRrkQMCznHx8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dp2myUWM0/LR3KvLoERxsBLGUFqXd4qDwXR1nedx6ryPZm6vy/jH76RAq8cZ0xnyaQaP7AaLM5RCVpKwjC4Q5axbtlWj1B4gKg39mHzkToZ9kE0q27DdvqYJuq6OdVd0RuU5hHpu3e3kS9LugnRxNlkZDc4r1gNJWyP2lVn3LPw= 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=E9Dysfuf; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=R1OjTCIU; 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="E9Dysfuf"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="R1OjTCIU" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5AUFpHDZ1892449 for ; Sun, 30 Nov 2025 18:21:33 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= zbSn4WvxMEi5fN3EkuAFKvYhh+IG+Q93MMbD1rInegA=; b=E9Dysfuf+TXjfmeT XlkZF19It1mpqJU5gUuXbv+TgNhQUAWrKQ6ZzPyybrYPU3LLzbrMdgQso8vZDh8t PqN9VqKO0DGivFCWo7XMNHBlKb9Vl5a1Y4dyrRP3HNEqaFnh3biltwMuh2pL/GFs 3lZd2yO+7V+49nKNlVGnSb9tP2aWqqBrpsF5LIOVfNgRz/x/WvyrWmp94q3xA7bN 6y1suCLlIbctmL8+BTi8bkLRLn/dpkeI6uY4GJlqxduy7gGZ/2UclH0nKnsJK3iB 0cGuWZW+I0Pr0SlLB6oV2+n5Nk/Cr5raM+D6DG90OdBufV6Pdacs91+ZXBxvLNrg I9YgqA== Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4aqskf2h10-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 30 Nov 2025 18:21:32 +0000 (GMT) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-29806c42760so119700645ad.2 for ; Sun, 30 Nov 2025 10:21:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1764526892; x=1765131692; 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=zbSn4WvxMEi5fN3EkuAFKvYhh+IG+Q93MMbD1rInegA=; b=R1OjTCIUZW2n+tSzMFzKD+yzhYwwyZTjOfTX4v+qNVq4PmlAWQC3kJ5Z48q2MI6bhU YJoxsw22gR3YaN0wWO6O3wbnCp30o4DkJjWFLJZxdGNG7A06CCm+4qK6Er6MuxER8hro Z2qHWqnkFaiRjJKSV6NnPl8DG+MnU7wQiAQthNohjoLagm0maiHfBfxiGUol3BCFCgGh EktONKEM3Jn+5EnjFFyZJb0izsbNm/8dZPd3SDxHcnCFkrzysyomXVy7TOs04ZLVgjCp Zaw4nvNrrtH4cgf+BXo5S38liZHdtMuF2isbiI0J+yUNcpayWCLb798TqZD8F4X08Jsk esGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764526892; x=1765131692; 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=zbSn4WvxMEi5fN3EkuAFKvYhh+IG+Q93MMbD1rInegA=; b=VaFaNLFZFg6CAg28IwH3D+xGq4EZS9puYlDUsbfPZEj9u8aoaK4Uaw4ZR0alLCqq5n nytvhd9lj33T9NAojDEMsdqeB5cq6C8Q43/J7KG416s+wRuNXe+bgFaGcOgld/NcODkW JaWcBFrWfatx2JFzR3pWMIt9Iqmsr91SdmAvrcbVY7hb/3U5ILyViFagZfSVsTbs6vna vHqx1ZGY3dYOikFiMJBdsfs+SASPps62KFjvjysk8CGz+mOdubI7tSha1dcxZ8OEdN56 9eRLTmFEmlvhZJlR34iE5BNeSUbiN48t4AcsENFHErR04CR/maIlCYuuX2eAipGmkksZ 8GSQ== X-Gm-Message-State: AOJu0YxdAEE4jdV4WoACGZcWkE8LOqBzrViNFhsMd6+MhLVtnpNU/CS9 SGNgFR5GSzl4pJd04oYummBXNkgT1lYP9iMjs88nMlzlZev08fdqAhsTs3d2Xf/G+UZgg9GZoYs RQ93rt4VXrEj5/XW6PGaPucHMS0DLTjwPUyFB7WR8z2rbc4qF1LLD7r9A9OdzKxgBQPc= X-Gm-Gg: ASbGncuT4J94aCexBzc6cFkw+oT63m128X0gRgQufvX/6o1uIu9jj8xWI5Rq/Z3rRFe 9HlYRFpTl7XMAyLIRQfbVQELky1Z0kg03x4cv07XezMPi6jcBkZFfF6oi31XHxT44YZ2gV8/Cne dznLS5Lfj73cimCAs1rLgwzrILCrs66g3LIDH0sfWlryeVonygjazUlCC+cZs/GR0aTqMxqiq7e 9nD854MZk110Pn/9XiSATFwxyiBA3+wE3QW6zmNMXuShfzwWzvYk/ynLGbfmmdcZtjl+7Kuy/jM PXBibUUNE/5OJtmfOs2yegz60LZMp5XQoQ2TyPknraQlsCRrrSktdZeRSWwBxJQLx4+Z++Eww3Q qmwgqaCZoKWb+18S0wBiG00I7zeu7+33H1ZEl0F35S4uKjg== X-Received: by 2002:a17:902:e882:b0:298:344:1229 with SMTP id d9443c01a7336-29bab1da652mr261181195ad.55.1764526891639; Sun, 30 Nov 2025 10:21:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFP+RmJw+aup4mPhjKFzb+zfYoq8ozIQAK1imr0RTv1Os4D/YXP04NwYec2eM1Ac94wW7bo0A== X-Received: by 2002:a17:902:e882:b0:298:344:1229 with SMTP id d9443c01a7336-29bab1da652mr261180975ad.55.1764526891254; Sun, 30 Nov 2025 10:21:31 -0800 (PST) Received: from hu-spratap-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29bceb27691sm100911385ad.64.2025.11.30.10.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Nov 2025 10:21:31 -0800 (PST) From: Shivendra Pratap Date: Sun, 30 Nov 2025 23:51:23 +0530 Subject: [PATCH v20 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: <20251130-next-15nov_expose_sysfs-v20-1-18c80f8248dd@oss.qualcomm.com> References: <20251130-next-15nov_expose_sysfs-v20-0-18c80f8248dd@oss.qualcomm.com> In-Reply-To: <20251130-next-15nov_expose_sysfs-v20-0-18c80f8248dd@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 , Sebastian Reichel X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1764526885; l=2280; i=shivendra.pratap@oss.qualcomm.com; s=20250710; h=from:subject:message-id; bh=usgZ50lsKAOs/daHoCBRLBx0aO1Pg/3aRrkQMCznHx8=; b=Q1xhijBVgDmDYaUV0LIScQ/DSz4W9ZS1DLIgSeXO630+u+GgJgoNgZvwdvix8h4H/hD4epZmA LKMFNhjH+stAwrbbZjgl2veh1eABz9M7T2KvuBqmryV+PqlsG+agSOy X-Developer-Key: i=shivendra.pratap@oss.qualcomm.com; a=ed25519; pk=CpsuL7yZ8NReDPhGgq6Xn/SRoa59mAvzWOW0QZoo4gw= X-Authority-Analysis: v=2.4 cv=X7Nf6WTe c=1 sm=1 tr=0 ts=692c8b2c cx=c_pps a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=QX4gbG5DAAAA:8 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=LKyF0dicRlewKW4vAhwA:9 a=QEXdDO2ut3YA:10 a=GvdueXVYPmCkWapjIL-Q:22 a=AbAUZ8qAyYyZVLSsDulk:22 X-Proofpoint-GUID: lXHK7e7IUdm8IaMJnOxNynejjS31nKGE X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTMwMDE1OCBTYWx0ZWRfX1Nrpd2IaCuRB xfdYl5DT1tX5nIzMUhSdJhPHX92UG83RfPCNijCcQcqlibFKRL3Q1X+giI3+Kl+zfZ4nn5Hc7ki fYZM/wFiH+SIdqfC+YatFy+jkjG1tfQlbOL6hH1j84+v7/EzHo4uHG/p1cbqtQxacd/Egx0ECs2 jVe2GIO+7cGpl9Dnxin99mkjD1+p5qVnHE0aLD8cjfk1vOM7GeT4l8N2G4L+m4ZB5SaaiCPRCBQ /l93iJZG8p+MFTAquoAQtERuTKD1sLB8RmZyvSJt/DsSqUYOJqOIXpuPlpHOkWwA3CrkcdDSMWT 3dnb8yb/ioFo3E4K5nOCr5GUYdY6Z3uUWKsF2WRZKAjliST0zabTyinNUGzFEFKoVS0BmUssqoA ry55sRsXNfxzooZqUc+EAZDCEom5UA== X-Proofpoint-ORIG-GUID: lXHK7e7IUdm8IaMJnOxNynejjS31nKGE 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-11-28_08,2025-11-27_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 impostorscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511300158 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: Sebastian Reichel Signed-off-by: Shivendra Pratap Reviewed-by: Bartosz Golaszewski --- .../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..a50f9433942b8cab4cb3d699e9c= 0955299ec48f0 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-reboot-mode-reboot_modes @@ -0,0 +1,36 @@ +What: /sys/class/reboot-mode//reboot_modes +Date: November 2025 +KernelVersion: 6.18.0-rc5 +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