Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp84042ybm; Thu, 28 May 2020 16:44:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQjMFaFXhmUmMrru/mjFlgY+Adz/Nh9tA+XPXWLQobEkbxveqcm3XyfrzufbFjQcGndC/5 X-Received: by 2002:a17:906:7848:: with SMTP id p8mr5492723ejm.244.1590709467269; Thu, 28 May 2020 16:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590709467; cv=none; d=google.com; s=arc-20160816; b=M9EoRKYZhNR6Hum/GqviEQvSa6Xleh/wmyHXuSsCRCz0vU4+20H2+IwA2mYTEaoPCx dthBWseFnRUIclPuIB/xiRd0ngWUMsbp3DHgx6k/T/54NFvQ6jfCDbn0BoYBZRKu2sYF CkDDfm/GZV/HVsy8L+VWZ4KLqWbkdxXayOcfATbWzlHam4TxJJgqPjso9kcR84fo5yWN s4w+uHHh6bMkYFwnmAcJk2RNiOeUqw6VX2zQIKaK66gq2/6iwoaEM9gHT6+Z+4Tms80I ECDLDwcgRsQpF4HUXGM5ArGo4Jx5eN0V5r+DRAb28h4BCyfQTrUzkylCt+tXYYnvatCJ M6Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=rl7/xrN4dyHCY0P9+fejZ1982cTwA0TKyTv5w1Z40oA=; b=Eh+pTshW8cOGGIzpbXo5TYS4g4metdli+LEk2svEfhwO0b4tc1zBw2dgYmRXVRowkq Q+ijdU3hezvFScGPxxW1/GGigbdgDXKZ7LX6YDiwM+X9uvjpox9NKSrcuOCJJcHrMlSA WtdqBThZbyNP6RicaGEepLyTooA/Pm7Pjd/cbZY7f3L2HT/4qHupMhM6et8ENp64SjHM mqUHHQeLeAUMJuD4QyPH2UiXPeaxOAKIHisUP3b97cHy31EfI9VSD7faRjbRkNtFLAR/ nd7cjicbpI5nvKVblaGbLNSbcTmPTRwSTQl+XRfVgBBeXVRuTQs+e5BQ1FuaxkurtcZw zKSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iM2RRmz4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u14si4814724ejx.342.2020.05.28.16.44.04; Thu, 28 May 2020 16:44:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iM2RRmz4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437650AbgE1Xkt (ORCPT + 99 others); Thu, 28 May 2020 19:40:49 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:40680 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437593AbgE1Xkq (ORCPT ); Thu, 28 May 2020 19:40:46 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 04SNYfv7090690; Thu, 28 May 2020 18:34:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1590708881; bh=rl7/xrN4dyHCY0P9+fejZ1982cTwA0TKyTv5w1Z40oA=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=iM2RRmz4/3X5f176xVtTiWBycEJKu+Heq2CbqG5eR0d6bNtQ+WIcMlVIcRDeC7/yl 35/hMLFEeKXzzrrGHFsSXLXcDKemIdhgbvq3BOXdLZaqGnQ00zNDwv6BX4CpjpgCF5 83y1ahAhQxC/Rc2zgX/gORZFZ62zBbjxsBlm71GI= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 04SNYfPu022920 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 May 2020 18:34:41 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 28 May 2020 18:34:40 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 28 May 2020 18:34:40 -0500 Received: from [10.250.38.163] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 04SNYdoL029206; Thu, 28 May 2020 18:34:40 -0500 Subject: Re: [PATCH v12 1/4] power_supply: Add additional health properties to the header To: Ricardo Rivera-Matos , , , CC: , , , , , Guru Das Srinagesh References: <20200528225350.661-1-r-rivera-matos@ti.com> <20200528225350.661-2-r-rivera-matos@ti.com> From: "Andrew F. Davis" Message-ID: <5be7933c-dc85-d526-a321-1cc0ce127ddc@ti.com> Date: Thu, 28 May 2020 19:34:39 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200528225350.661-2-r-rivera-matos@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/28/20 6:53 PM, Ricardo Rivera-Matos wrote: > From: Dan Murphy > > Add HEALTH_WARM, HEALTH_COOL and HEALTH_HOT to the health enum. > > HEALTH_WARM, HEALTH_COOL, and HEALTH_HOT properties are taken > from JEITA specification JISC8712:2015 > > Tested-by: Guru Das Srinagesh > Signed-off-by: Dan Murphy You should collect the acks and such you have received in previous versions here, like mine from v11: Acked-by: Andrew F. Davis > --- > 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 dcd5a71e6c67..8670e90c1d51 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 { >