From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB82E17A31D for ; Wed, 30 Jul 2025 09:06:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753866402; cv=none; b=ggzIoY2teyoJ7DhIzGYvhaDG+RFTkOntC6upQfNd1wgow/1cBGO4Tnf4uwWZ2GkDdJkQBZkY9iumi8R0WOKJjBCygvSojNeW2+1wDbMCMPg3wD9kC60Iyk9VnjhainlT+t5XOIDO7a11y8C1GFra6IyAp2kB8KmRHudLj70qgDA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753866402; c=relaxed/simple; bh=Q5x39miEvnyELWRml8u2bUeF3gEXQOyITf6/yX7xoCw=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=PTQaE+L3xmTwCEukTCf5pTG9bTuy20BCuSfNMtYxSjwvPcRFz8PfhSFwLmL7kVfHo/b578j00eVG/jdS8cXfegnxbSNM5pZ43yqLuHxrgICaaWGbuSHdhR6OeCD+zoNfmTAAbhglJoUTVURGBfxrrmB3PT4dCyLsnTpoeFWLXjU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ehAtk7ZL; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ehAtk7ZL" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4561ca74829so66614725e9.0 for ; Wed, 30 Jul 2025 02:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753866399; x=1754471199; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=amCpS6Biku5UkvGCeY8Q3zKrvNs8l+NdNFt807Gj1q8=; b=ehAtk7ZLD4jF6mj+YB+znklz88s3nHDIS0ISkj0du9ONL1zw0Win+48TeYLdYJolLR x4AOO1Rk5oWPJckkEqltXIZSuvixZMWGZPCi37ixk8+/vycCU4ZRx4E+WfSLMQ39jcTk heP0t1sLrWy7v6Lg3+8ybRk8IMBHpHTM86ICWUgMtd8d56LTgAvuNAl7hZORZ/kN3RMe jcnvSCWtwM18PsV8gSB9tOVz/H5paOVfXxcXfQkoB/KZv6sAp2S7Ub3FfYbE2frD/zix dOKkSYbyrzsfY6riZt0N+7p2inKLOPr22zWCb01IGTxO0XcWOIo1qVL0T6N0U3ecgWwS ghRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753866399; x=1754471199; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=amCpS6Biku5UkvGCeY8Q3zKrvNs8l+NdNFt807Gj1q8=; b=GHPkXFRNorM/ULLk+jjyFQGv5WJPvrlhn0D4mZt2pW60J8dkuZkt2gl9lhmF0UMlXc 1cmB1TM34KpSZ/BqqPeR/xM0Gn+IGssWu6BelMaYYmBAVImQK4ywz+L7qRUEljB0oWPS mmEzYqV7xbF+1CgBGSL1W22qjDaLHePm5wMnhZBVeOW6SN/SAhdQXoJRmZ97ckzhqsrx 6vwbXubxKxRrHPcs3Z9CXPTKCp4SOTpbYb/OOAiMKCXldhh7uprE3KkNaR3zFwt/7QyC 9T+41JHeW+AdBJdm51tI823XLzl9BsvUqFTpPT8gLaljlCPPQXyCsgPmDQv1bKKZIU3n +6cg== X-Forwarded-Encrypted: i=1; AJvYcCVXA1AXZI/wg/mUYxcduIKzNvh5zp3082IXJMhkIw5CgLaG/qZmQtkMmQQq6r5smeGRsAurAq0BoLbDVoxV@vger.kernel.org X-Gm-Message-State: AOJu0Yx82tjzEOra9SIhr8DWxMyV5BlHWzB8Zu95VEL8Bbvzh2v3e3c+ /DgCe4Z9do3arAAksuEDMWvsfLVE/Do4DZHdjtBGFFjXKUhrCors6xWk0JRfmt9muOU= X-Gm-Gg: ASbGnct4FvHjUKDaq9dHTmpCKfiZICUMDUISB2ycyT6g066ehbRVl3gE3nkupoEUwBi nN0vLMV37uzlS6Hs3JT6w0H6Lm4ZCxF9CH9S4stq0PGURypfjN61ukbZagpwoNHE95SzJZUc+6x Vt+IwVrhVEVB+I699Hl/RHlba3VsgkaGMXhNEFQBnC9O4fxiDh6qq0CKq19SppS4YgthclYkWAW uFBnM4+2CVL0GuB04t8whCcCmLcFCTL4En8vjJgSFH7CVyAQu9iWRta4MkBPHXvUxzvucjr/YHS OkiWzYPX4n44bOrgCMW9ue7VEPtMn7twoceYn9KpDKK48YOWt0Z7BPyhbuhxRuD4/HSrt85b9tK +8F5KerKwZ5yznu3KmpC5fNI5Jg== X-Google-Smtp-Source: AGHT+IGu9BTjzxVnqGeLDV3BoeEs9yZzpZzfEcV+C4Pb53LxtnI2Wds8ED4FoqgjBE3qk36pQJS9SA== X-Received: by 2002:a05:600c:6995:b0:456:2cd9:fc41 with SMTP id 5b1f17b1804b1-45892bc44a5mr21276705e9.20.1753866399264; Wed, 30 Jul 2025 02:06:39 -0700 (PDT) Received: from [10.1.1.59] ([80.111.64.44]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b7973a9422sm814667f8f.21.2025.07.30.02.06.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jul 2025 02:06:38 -0700 (PDT) Message-ID: Subject: Re: [PATCH v13 04/10] Documentation: ABI: Add sysfs-class-reboot-mode-reboot_modes From: =?ISO-8859-1?Q?Andr=E9?= Draszik To: Shivendra Pratap , Bartosz Golaszewski , Bjorn Andersson , Sebastian Reichel , Rob Herring , Sudeep Holla , Souvik Chakravarty , Krzysztof Kozlowski , Conor Dooley , Andy Yan , Mark Rutland , Lorenzo Pieralisi , Arnd Bergmann , Konrad Dybcio , cros-qcom-dts-watchers@chromium.org, Vinod Koul , Catalin Marinas , Will Deacon , Florian Fainelli Cc: Dmitry Baryshkov , Mukesh Ojha , Stephen Boyd , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Elliot Berman , Srinivas Kandagatla Date: Wed, 30 Jul 2025 10:06:37 +0100 In-Reply-To: <20250727-arm-psci-system_reset2-vendor-reboots-v13-4-6b8d23315898@oss.qualcomm.com> References: <20250727-arm-psci-system_reset2-vendor-reboots-v13-0-6b8d23315898@oss.qualcomm.com> <20250727-arm-psci-system_reset2-vendor-reboots-v13-4-6b8d23315898@oss.qualcomm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.1-1+build2 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Sun, 2025-07-27 at 21:54 +0530, Shivendra Pratap wrote: > 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. >=20 > Signed-off-by: Shivendra Pratap > --- > =C2=A0.../testing/sysfs-class-reboot-mode-reboot_modes=C2=A0=C2=A0 | 39 += +++++++++++++++++++++ > =C2=A01 file changed, 39 insertions(+) >=20 > diff --git a/Documentation/ABI/testing/sysfs-class-reboot-mode-reboot_mod= es b/Documentation/ABI/testing/sysfs-class-reboot-mode- > reboot_modes > new file mode 100644 > index 0000000000000000000000000000000000000000..7147a781e5d4d11977c3a156b= f4308aa13310e39 > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-class-reboot-mode-reboot_modes > @@ -0,0 +1,39 @@ > +What: /sys/class/reboot-mode//reboot_modes > +Date: July 2025 > +KernelVersion: 6.16 The version should probably be updated. > +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 comma > + separated list of reboot-mode arguments supported > + on the current platform. > + Example: > + recovery,fastboot,bootloader I'd personally find space separated like e.g. in files below /sys/power and many other similar files below /sys easier to read. Cheers, Andre' > + > + 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 reboot() system > + call, with the "argument" as string to "*arg" > + parameter along with LINUX_REBOOT_CMD_RESTART2. > + Example: > + reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, > + =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 LINUX_REBOOT_CMD_RESTART2, = "bootloader"); > + > + 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.