From nobody Tue Feb 10 14:33:24 2026 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 B626730CDBF for ; Thu, 5 Feb 2026 17:17:28 +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=1770311848; cv=none; b=a0NyzJDWOKRMUJmWQh1ceM9kQmHRZbn3tP5G8cbAxY9winC3NX2ZTjmZg32Ooy9EsKhwCkMZz6+rrZQz9OiHWdk36TXx5yJeN9BA1xw2K36PizPcz9UTe4FtWgLDJnIS44xBa06PWAHpnNmTHVDXz8SnYpqPXX3OxC9ZBYTcpxk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770311848; c=relaxed/simple; bh=PdSzz0bj4RkAm9gUU9i1xAXXLdjyg5Gspl8Tfkihp6c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SEigSWzJizN9fcaBxCnkjgpAemU45S+WL83nfKzI8mudIa7DCn3CHPLJpu/zdgBosTqd6lQKuGu/1Isl9xRRhrK2m8KVzI9VvdJOs2qTCtq+BITlpQEK78ghnk0DvJLgFVOTZJtRq5LkutwIW9H89LnNGLxEG7sIZPxj0Coknss= 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=KglyyFKV; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=jvKws7ZK; 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="KglyyFKV"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="jvKws7ZK" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 615Brhxh4166394 for ; Thu, 5 Feb 2026 17:17:27 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=KglyyFKVYVqEmoln pBjoyIchtGMRXQdHKAemD3msQ1KLD/ovTxbbzH4FxAKOpYP88QhQPeb1WkNdvcVu UATZymUN1YJczFGPoydbahb8uj17LlJ/8Vz2cgBYnhpqYtSE5TShiwbVS+FugD33 Cw6Y7ocp++DraE0Xm/9ZD31nmn0F0V0xROROR6epQp4QaMuVn/SoMfX9L8ctL5fL RGiWIrhK/3L/eoybY2DfOMZfZtRhs1Bwg8z42AExWlYPMLGgFyEXZqkyJmyiQ+fg /Kt/wmsGincKeSjE8p4ex3pjJHEPlBNVSC7z2SGlThGBNc2htWlAsF8SLbLwh9Ti IAbRBg== 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 4c4nega4gh-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 05 Feb 2026 17:17:27 +0000 (GMT) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2a8c54bbe46so27990865ad.2 for ; Thu, 05 Feb 2026 09:17:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1770311846; x=1770916646; 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=jvKws7ZK6xKdmkZEQDaitHvkgaj97jfw62Y9QM5w76I65mf0L/yMfizNTXnp3QvLv8 DafMgNcAraQqccZ4plRbhw92KK78O7z4QRw7tcqXSBWHmkhNu5kADlUUZR4ZVlZ6ZcgN sj1fXm48qGORNbDTcnm6LyysOh0uRuSIMMCeFIioICO9ckYO73iUSBG+XCJ5MgXKtETR UBKwmoAWMMTWF68kNsj6YNXxEzfpl0T27lfbPB7KVTEwTelQ16FjldiI4N+oS5SaJZw7 iowdE7LvkbiTqpy0H4Luq7LJfKXBi0dsP6FfoVPekQakr0rWoIWFXx3ct2u8E6n4wDng SAyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770311846; x=1770916646; 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=Hm97RCh2XF92zp6IUiSpHXAqnqqIScSLoNq1WUoRhDQOgOwtHRN6qb4k7hF40awX/0 VtgiHylT4vFpC2T9wNt5p2SIBAMbvSkfYY1uUtdRP0+WsaEDRgA8RHAps/D21gEmkTJn S9MdK4NyZfbtrZvWtWjMxHQLVUb6EuoZkZIW/xlDysIOnX1hjyrl0Gyqqy7j1NkGnaMD 10u+wZS6j4ft4spnPMAkmWbKNF1ZO62fUGjumHr5lQ7azx27DZonuKfhZdkz7/g80Peh OPW2qHH2NIENJ8VfsfI7Bn/pqBfO5h8Yi2NLv0qBxysTVkqbSXmb9ACyjtK6QDXmsZY+ nl0A== X-Gm-Message-State: AOJu0Yyf1AOnaVM/n9xBpMOdeEISVGdPicEUouUIKyqTtYQUXGqOxNI5 f4fNXfn8mPNHPd4V+FS/FmaTf+LOZj78jfYrrpdqINQ0fdxPoSCXd55m/UV3uGAWD/1wZhtBhhl pXqh3nlg3K5xZ68XDhw80quoEQdrsrDA+WAFOHwqhi5H0w4slYy++JEYu13TM+YSM7lE= X-Gm-Gg: AZuq6aIMVdIFDBSSLIIC8negwoKF9gknjKnb53tMI2ZSrYp7TCr64bpitOIZSH9JKu+ V/JLAl4jvQ0fpvP9cke+ebOo1bRoWRGnUDNd58jhhCleaXzWHACzslJYPBFUKNglVamHHPfBekQ sU+E8y6/RIgT1b2xNrh9ExdWS9VL1oJQm8JB3dk6fN7ZsVVaTO44KHbdJx+IzzBSvn4QVek0I37 G6E8c3e4lziA89HclwnADrerHS7yVF0cgPF8WwpEJknVoURwObi0rz53st9V6DUwRs5wPnbLt8k 7bHm98Rn2+ZMNibtQajg/66UWRRRuSJ04TLS+1gy67bBrnxYXNLT8p/8VTGRpyjuG9Cc8oFzUKw 2s+xt0LJydKdG4TU+Kjr67vF49QMp4bKMOopE3m4RcEHEPg== X-Received: by 2002:a17:903:8c3:b0:2a7:7c72:42b6 with SMTP id d9443c01a7336-2a95162538amr100045ad.18.1770311846254; Thu, 05 Feb 2026 09:17:26 -0800 (PST) X-Received: by 2002:a17:903:8c3:b0:2a7:7c72:42b6 with SMTP id d9443c01a7336-2a95162538amr99805ad.18.1770311845752; Thu, 05 Feb 2026 09:17:25 -0800 (PST) Received: from hu-spratap-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a933966f12sm55059415ad.76.2026.02.05.09.17.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Feb 2026 09:17:25 -0800 (PST) From: Shivendra Pratap Date: Thu, 05 Feb 2026 22:47:13 +0530 Subject: [PATCH v23 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: <20260205-next-15nov_expose_sysfs-v23-1-b0c5bdcc9f94@oss.qualcomm.com> References: <20260205-next-15nov_expose_sysfs-v23-0-b0c5bdcc9f94@oss.qualcomm.com> In-Reply-To: <20260205-next-15nov_expose_sysfs-v23-0-b0c5bdcc9f94@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=1770311838; l=2327; i=shivendra.pratap@oss.qualcomm.com; s=20250710; h=from:subject:message-id; bh=PdSzz0bj4RkAm9gUU9i1xAXXLdjyg5Gspl8Tfkihp6c=; b=KE4P3jBLhT5sMnwR5f5AIEdie8k6/O3aU5yDalttV/ckA3l1/TysQCT+6B29nBWldXpPHcaGQ XWJLe6CAyXYD6I3SglZn1D6GjYgcUJRMalFHqrEaLIsPSCjoHKU7tU2 X-Developer-Key: i=shivendra.pratap@oss.qualcomm.com; a=ed25519; pk=CpsuL7yZ8NReDPhGgq6Xn/SRoa59mAvzWOW0QZoo4gw= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjA1MDEzMSBTYWx0ZWRfXwYjW5U5F9PuL r/MFnRzOEnUg0oJXcmNBQzeCZTFnMOur59k55zakvT2mCHEtYHfXe7y1ztKKjeBUgbuyLxuC31w diTAzI5pHOFQvenKCJ3lnTygUNL/XwMMPBLk9xTp2khJqYSAAoY5uMcXY2axwPMJls878QamFKW 3CkrOAuJi12plSlZkGRoDgCkNyTx3lRLw16PUMxN4Tq65QJx6SPNZdxTLPfiNjGjNfhx7+vIvh1 D8KAh1cc9bA/KtA8WCfE4P5b+a74AVssjXg1CPaClqgd7hytDdO1NahLXNhGDU+TksWgzkYxTOO h0UYjDGXhiFN8e1lClsvNXj2QTzLk9zHVVX/mJMaq4cd4jUxWaGn24ipolYt7k611dxk6bvnTbU 3y7Oa7RCs/R8GqQO0EyYWHlFmjkq0FY+i5lcSgJGPayJciiAgbJNsXD50JFrN51lnsALfY6dMOb dvShxHnj6qJRrAhsnhg== X-Authority-Analysis: v=2.4 cv=ZITaWH7b c=1 sm=1 tr=0 ts=6984d0a7 cx=c_pps a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A: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=GvdueXVYPmCkWapjIL-Q:22 a=AbAUZ8qAyYyZVLSsDulk:22 X-Proofpoint-ORIG-GUID: 035uN72TkmCIL6HRjVxeuqPQn6QbRrD6 X-Proofpoint-GUID: 035uN72TkmCIL6HRjVxeuqPQn6QbRrD6 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-05_04,2026-02-05_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 malwarescore=0 phishscore=0 bulkscore=0 impostorscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602050131 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