From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 F26642698AF for ; Wed, 30 Jul 2025 09:06:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753866403; cv=none; b=PmF3qfNzfhBakXTOa1UXmOcAepfn9VxgEL18PObcxd9ghrWIWyC6rScsrWwhhkrfhFlyLzXpVEcbsULhfeoRMJJ+OLfuAPXpAEP6ZhY3dLUNiKKskYcm1gQK6p55JdRUTsyeSI0/TZzxuqgiwzu56WuBoS6m1tli7UO/wMegBxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753866403; c=relaxed/simple; bh=Q5x39miEvnyELWRml8u2bUeF3gEXQOyITf6/yX7xoCw=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=S0fjy+wQwnhzDKDP8OKITvJ9JmG+iR0gEGcIw90hjS3UgZcj/Frje4tKUFf0CtPCi51HZYYztL0nfVR8KAlk0IkeQQBdX94k60UHPTvDDr79aCkHz6ggnSY66LJyXz9MiGQvqP1359L9BCVSX1Sp0u1hxsDp72KsQpiddCx4QL0= 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.54 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-f54.google.com with SMTP id 5b1f17b1804b1-45618ddd62fso63608415e9.3 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=P+Gg/awHoEZsZZ910lRfD+/9uCTnmbHg1dUmWAaZBOjskF4YqqehKxJQF8Q/vF7zZL ck6DopxUstjSpSWQliI1x4AnQG7UmSsUn9QplLHpsyu4VLX8i+C59CwqLT565DWxLkhG NIWWkv0OcRAJPcVVwEJFvN0e8F070PsJFxn69D1nZgp6X/0nNFd9yUpFn2H85Rq4iGgz UKCoZfi2JmHdTEBqaHLafPeI7ifg5TYW8teuYDp61EH67W6acS9+y9CUK4Q+nIaO5cb6 cHV62WghptROkfELHlfG87l26g2VoNiaSj3cxQIG7xcZBMzAt8hJBF3WU5Sg6ax2AQdx VbXg== X-Forwarded-Encrypted: i=1; AJvYcCXHgAJPUEUR2RppukSqtX8lFM/3F1kg0Pw7nQwIFR1ifbvovnZJtSF2oNNNdqNzGrsjZ5jEnWKQelCS/zg=@vger.kernel.org X-Gm-Message-State: AOJu0YziJUSQBcTUq9CUUourwWQIqAWj3YhLx6cDcdptmETKZ9iX+ZKR InsvpFbiKsG/t6kvOKzPiHe5hKtMwausgYfZ69WXXEHEJ2BqnDuEaOVVwpNpfC51GDg= X-Gm-Gg: ASbGncu0HsJoRUmCCybkHuPK9OWnq7iHHaf7x5DOvxMkG8sB7jPUXEKLqmhGxzhjxOz yhUeQclvsVXZz9du5IRhPWjCZCjmOgfjHjWhlNxcL7urPrS22Ybua8bxc/NkuBN+g5QDewybkBH BfxYhftzUGPP58VmA6T63gXgh5TzX3WDc/gmbOP3iEDMh9im7xRedmh+au7QQkWLegmxuN4nAWn pnBGLc8v5zSU6cxrhXEL0L5Kham2AEbt/brhrC5ipOhi318jzVCICWJ8JFFgwmhUpr1isVBh+lF FTKFNTa1kXyjNvQ8G8CUsQtZ3Nazkl4rT0OMou7jl6uLgfPocKRC57wnNVCK09RfoZwFbLJIKy8 zwk/MIiPdJBrq0JB8jrmycsxIMA== 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-kernel@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.