From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 601D2C433EF for ; Mon, 13 Sep 2021 13:11:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4495A60FA0 for ; Mon, 13 Sep 2021 13:11:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230042AbhIMNMx (ORCPT ); Mon, 13 Sep 2021 09:12:53 -0400 Received: from mslow1.mail.gandi.net ([217.70.178.240]:54483 "EHLO mslow1.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbhIMNMx (ORCPT ); Mon, 13 Sep 2021 09:12:53 -0400 Received: from relay6-d.mail.gandi.net (unknown [217.70.183.198]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 5EF17C7F22 for ; Mon, 13 Sep 2021 13:11:36 +0000 (UTC) Received: (Authenticated sender: hadess@hadess.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 76F4EC0005; Mon, 13 Sep 2021 13:11:14 +0000 (UTC) Message-ID: Subject: Re: [PATCH] docs: ABI: sysfs-class-power: Documented cycle_coint property From: Bastien Nocera To: Hans de Goede , Sebastian Reichel Cc: linux-pm@vger.kernel.org Date: Mon, 13 Sep 2021 15:11:13 +0200 In-Reply-To: <20210913120925.591608-1-hdegoede@redhat.com> References: <20210913120925.591608-1-hdegoede@redhat.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Mon, 2021-09-13 at 14:09 +0200, Hans de Goede wrote: > Commit c955fe8e0bdd ("POWER: Add support for cycle_count") added a > POWER_SUPPLY_PROP_CYCLE_COUNT "cycle_count" property to the set of > standard power-supply properties, but this was never documented, > document it now. Thanks very much Hans. There's a typo in the subject line, and I had a couple of comments. > Link: https://gitlab.freedesktop.org/upower/upower/-/issues/152 > Reported-by: Bastien Nocera > Signed-off-by: Hans de Goede > --- >  Documentation/ABI/testing/sysfs-class-power | 11 +++++++++++ >  1 file changed, 11 insertions(+) > > diff --git a/Documentation/ABI/testing/sysfs-class-power > b/Documentation/ABI/testing/sysfs-class-power > index ca830c6cd809..643637c6bb58 100644 > --- a/Documentation/ABI/testing/sysfs-class-power > +++ b/Documentation/ABI/testing/sysfs-class-power > @@ -480,6 +480,17 @@ Description: >   >                 Valid values: Represented in microvolts >   > +What:          /sys/class/power_supply//cycle_count > +Date:          January 2010 > +Contact:       linux-pm@vger.kernel.org > +Description: > +               Reports the number of full charge + discharge cycles > the > +               battery has undergone. What happens if a device doesn't report cycle_count, the property just doesn't exist? > + > +               Access: Read > + > +               Valid values: Possitive integer representing full > cycles positive > + >  **USB Properties** >   >  What:          /sys/class/power_supply//input_current_l > imit