Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3833779ybf; Tue, 3 Mar 2020 13:49:08 -0800 (PST) X-Google-Smtp-Source: ADFU+vugy7mkPWwuf8dgO5lcvpIjI2aIXG1g7yEJnpeIa5XTNoCwTj3e8fZGo1uciLbBiyf5Agum X-Received: by 2002:aca:d03:: with SMTP id 3mr437735oin.69.1583272148349; Tue, 03 Mar 2020 13:49:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583272148; cv=none; d=google.com; s=arc-20160816; b=clPgNv4Eyl0OffG3boEw0lub0cnkpn9vioVuYmVOEVpDjTQ+oGjaiEts1cglvyIJX7 lNi5as8YqIT0JpA75bZShbQUt5ueFyInHe6/xKqz8563hiMkCGKq8+kjaBwERD6TgoQs 5ZXclJVncTbZDCS6mMqoDmU5G1TDaOK1eAhsRehxvnuxXfr8MtWpPN30IgyTMOgyGl52 dVnRE9gi2aS24JAq2mXfDyBWUxId6zY+0rUTW9/QYQjTFIVIcMz2isW5X95wq5OQqPI/ pKQ2acHR2Fu15zRfjPwBcWGXTriZBREDmGGYcUzLePvA3rt/JCF5kEiUf9Qsr+MgvMXS QvoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=CAOZIgfDIS+AB3+7WHXR850uyviODmmQIQn/vcCEQR8=; b=Dxe94hznuTw7dA419mxFkQs4YtX4aVORHqUb7vIcPEFLthcc94GLDR5f9yCS5xeRqj oh3OqaiSsBKbMVyPCJMWi5Y362zXhzU7jUKYGm6O1jadDmxUSLiKOtnHcV+L20hHhtou 5mrvD8F3JU+I3pxcEqB3fUnvZWapfMF8CmvsEYio/s/9aSvUZOf7ip0eDPWVU7yxkVKX WIBGU638Dy0a/6xlODQMLQbudA/khNguaFttl9wz1WoK+spokNfX4SFmBPzugzdjxjOZ u87ZiKwkGjzXsVJqxImTpqDv2T4nV6u4VG6K/G4Uon2N7t8s57yAZWAEkSR8E/mloQel 86WQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w31si313932otb.59.2020.03.03.13.48.55; Tue, 03 Mar 2020 13:49:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731856AbgCCUd5 (ORCPT + 99 others); Tue, 3 Mar 2020 15:33:57 -0500 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:24943 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728176AbgCCUd4 (ORCPT ); Tue, 3 Mar 2020 15:33:56 -0500 Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 03 Mar 2020 12:33:56 -0800 Received: from gurus-linux.qualcomm.com ([10.46.162.81]) by ironmsg05-sd.qualcomm.com with ESMTP; 03 Mar 2020 12:33:56 -0800 Received: by gurus-linux.qualcomm.com (Postfix, from userid 383780) id 404F04B06; Tue, 3 Mar 2020 12:33:56 -0800 (PST) Date: Tue, 3 Mar 2020 12:33:56 -0800 From: Guru Das Srinagesh To: Dan Murphy Cc: sebastian.reichel@collabora.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/4] power_supply: Add additional health properties to the header Message-ID: <20200303203343.GA3496@codeaurora.org> References: <20200116175039.1317-1-dmurphy@ti.com> <20200116175039.1317-3-dmurphy@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200116175039.1317-3-dmurphy@ti.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 16, 2020 at 11:50:37AM -0600, Dan Murphy wrote: > Add HEALTH_WARM, HEALTH_COOL and HEALTH_HOT to the health enum. > > Signed-off-by: Dan Murphy > --- > Documentation/ABI/testing/sysfs-class-power | 2 +- > drivers/power/supply/power_supply_sysfs.c | 2 +- > include/linux/power_supply.h | 3 +++ > 3 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/Documentation/ABI/testing/sysfs-class-power b/Documentation/ABI/testing/sysfs-class-power > index bf3b48f022dc..9f3fd01a9373 100644 > --- a/Documentation/ABI/testing/sysfs-class-power > +++ b/Documentation/ABI/testing/sysfs-class-power > @@ -190,7 +190,7 @@ Description: > Valid values: "Unknown", "Good", "Overheat", "Dead", > "Over voltage", "Unspecified failure", "Cold", > "Watchdog timer expire", "Safety timer expire", > - "Over current" > + "Over current", "Warm", "Cool", "Hot" > > What: /sys/class/power_supply//precharge_current > Date: June 2017 > diff --git a/drivers/power/supply/power_supply_sysfs.c b/drivers/power/supply/power_supply_sysfs.c > index f37ad4eae60b..d0d549611794 100644 > --- a/drivers/power/supply/power_supply_sysfs.c > +++ b/drivers/power/supply/power_supply_sysfs.c > @@ -61,7 +61,7 @@ static const char * const power_supply_charge_type_text[] = { > static const char * const power_supply_health_text[] = { > "Unknown", "Good", "Overheat", "Dead", "Over voltage", > "Unspecified failure", "Cold", "Watchdog timer expire", > - "Safety timer expire", "Over current" > + "Safety timer expire", "Over current", "Warm", "Cool", "Hot" > }; > > static const char * const power_supply_technology_text[] = { > diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h > index 28413f737e7d..bd0d3225f245 100644 > --- a/include/linux/power_supply.h > +++ b/include/linux/power_supply.h > @@ -61,6 +61,9 @@ enum { > POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE, > POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE, > POWER_SUPPLY_HEALTH_OVERCURRENT, > + POWER_SUPPLY_HEALTH_WARM, > + POWER_SUPPLY_HEALTH_COOL, > + POWER_SUPPLY_HEALTH_HOT, > }; > > enum { Tested-by: Guru Das Srinagesh Applied this patch and verified that the new enums and the display strings match, using a downstream driver (currently under development).