Linux Power Management development
 help / color / mirror / Atom feed
From: Sebastian Reichel <sebastian.reichel@collabora.com>
To: "Iván Ezequiel Rodriguez" <ivanrwcm25@gmail.com>
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
	 "Rafael J . Wysocki" <rafael@kernel.org>
Subject: Re: [PATCH v1 4/5] docs: ABI: complete power_supply type valid values
Date: Sun, 4 Oct 2026 19:50:40 +0200	[thread overview]
Message-ID: <asKRNfzLdbpP_uYY@venus> (raw)
In-Reply-To: <20260831155339.181487-5-ivanrwcm25@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1303 bytes --]

Hi,

On Mon, Aug 31, 2026 at 12:53:38PM -0300, Iván Ezequiel Rodriguez wrote:
> sysfs type already exposes USB_DCP/CDP/ACA, USB_C, USB_PD,
> USB_PD_DRP, BrickID and Unknown via POWER_SUPPLY_TYPE_TEXT[]. Update
> the ABI document so Valid values match the implementation.
> 
> Signed-off-by: Iván Ezequiel Rodriguez <ivanrwcm25@gmail.com>
> ---
>  Documentation/ABI/testing/sysfs-class-power | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/ABI/testing/sysfs-class-power b/Documentation/ABI/testing/sysfs-class-power
> index 5641f1fd5fd6..08afb75973d2 100644
> --- a/Documentation/ABI/testing/sysfs-class-power
> +++ b/Documentation/ABI/testing/sysfs-class-power
> @@ -34,7 +34,9 @@ Description:
>  		Describes the main type of the supply.
>  
>  		Access: Read
> -		Valid values: "Battery", "UPS", "Mains", "USB", "Wireless"
> +		Valid values: "Unknown", "Battery", "UPS", "Mains", "USB",
> +		"USB_DCP", "USB_CDP", "USB_ACA", "USB_C", "USB_PD",
> +		"USB_PD_DRP", "BrickID", "Wireless"

The USB sub-types should have a marking, that they are deprecated in
favour of using just "USB" and additionally exposing USB_TYPE. There
is only a small amount of legacy drivers still using the subtypes
directly.

Greetings,

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2026-10-04 17:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31 15:53 [PATCH v1 0/5] power_supply: errno, hwmon rollback and docs/ABI sync Iván Ezequiel Rodriguez
2026-08-31 15:53 ` [PATCH v1 1/5] power: return -ENOMEM on OCV table alloc failure Iván Ezequiel Rodriguez
2026-08-31 15:53 ` [PATCH v1 2/5] power: restore hwmon if extension update fails Iván Ezequiel Rodriguez
2026-08-31 15:53 ` [PATCH v1 3/5] docs: power: fix power_supply_class.rst status, health and time_to Iván Ezequiel Rodriguez
2026-08-31 15:53 ` [PATCH v1 4/5] docs: ABI: complete power_supply type valid values Iván Ezequiel Rodriguez
2026-10-04 17:50   ` Sebastian Reichel [this message]
2026-08-31 15:53 ` [PATCH v1 5/5] power: use tabs in power_supply_get_property_direct Iván Ezequiel Rodriguez
2026-10-04 17:46 ` (subset) [PATCH v1 0/5] power_supply: errno, hwmon rollback and docs/ABI sync Sebastian Reichel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=asKRNfzLdbpP_uYY@venus \
    --to=sebastian.reichel@collabora.com \
    --cc=ivanrwcm25@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox