Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp47705ybm; Thu, 28 May 2020 15:45:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtvK6O7muFcRwU4mibFEScwJ4o2yb0xoX0oM9S+vucCFK/QZEup3Hbp0Mt48QWGMMruEjD X-Received: by 2002:a50:eacb:: with SMTP id u11mr5395204edp.162.1590705905742; Thu, 28 May 2020 15:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590705905; cv=none; d=google.com; s=arc-20160816; b=AW8u0DH/c1MX5E/V5Nw6cepAcI0pghf3AgUnEBZzcGtlV5VcGfaOq/236TdMrWq/0A u+oY0Na8aV5vy4UeSXT+mxB08DCEx/9vGI1ROUGs0HHWJCq2zMbLgU5kFseSyiCo4bXL 6ERrGzmbg3SAlx/1V/nR4uzi+x8ZrwNK3YtxlDOYAFYK8wEn3QOL3X95qpa+zOpDM356 gOnFitX9WOkhWcBThfO0JY3mp/hbns+iK8mJedHrBJhx9Ol0YSmCfBSUd+6noBptyXXA AlKkZG0wzkKbWBnKIDx1WSYj0a6s5YH14xdq9CBK1IfoU1DT60oylligRwUcYou3y7Xg WnzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=7QwFblAtt+WIP3VoVS1JJkv9bJSkC9RsnIpL6BTk8Hg=; b=QTicwCvSsVeLYtkGbWObF5Fv8YFzr/41yTtiNJv0+g7xgkyqVHaeOm8613YVm7iI5f TTOSCcOPiDZc21sJS4xjEFSHk5e54k4roXwQnNwZDHbOVjZZbgs3m5GcQezPQQgbsBnY KZGq9EWm6Emo1bwowC/TTYmoO5Zy57+Vnk4QonPES0Ft5Ia7mO0/G+859mtMOZnCYIGf Qnfj+AGgtmthe2th0lKpOHh6S4XxO5Xahli8kKbRACrqJdv6fmJaUHoyahsgMNRfc2B/ Z2vRNMCgujLLxea2CBUcMvP/AfJvX319Q3pUZLXIfuu3REclhUPX/1FlHICjQEY3e8Cs d3OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tvup+Slj; 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 q15si4627688ejn.519.2020.05.28.15.44.41; Thu, 28 May 2020 15:45:05 -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=tvup+Slj; 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 S2437209AbgE1Wmr (ORCPT + 99 others); Thu, 28 May 2020 18:42:47 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:34286 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437076AbgE1Wmp (ORCPT ); Thu, 28 May 2020 18:42:45 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 04SMggbG078132; Thu, 28 May 2020 17:42:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1590705762; bh=7QwFblAtt+WIP3VoVS1JJkv9bJSkC9RsnIpL6BTk8Hg=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=tvup+SljfHGv2OIeX28+4Q4806IZagwBD3caCmcLx6SAVO/Y7RkjiIQ+ygqOvnI4d U+m7Ceo3S1E+NC9gWgBi1W52jYZXCmUee4Y6O8I0Iuf9tKk1QTnMKkNPDfQSLTHhYD 0XcEljj9k6hLGVadWDq9D5bEQLGMfShQjHYv3GMU= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 04SMgggI026449 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 May 2020 17:42:42 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE113.ent.ti.com (10.64.6.34) 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 17:42:41 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE114.ent.ti.com (10.64.6.35) 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 17:42:41 -0500 Received: from [10.250.43.45] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 04SMgfjx036389; Thu, 28 May 2020 17:42:41 -0500 Subject: Re: [PATCH v11 1/4] power_supply: Add additional health properties to the header To: "Andrew F. Davis" , , , CC: , , , , , Guru Das Srinagesh References: <20200528140546.25260-1-r-rivera-matos@ti.com> <20200528140546.25260-2-r-rivera-matos@ti.com> <66823f18-dc74-107f-39ae-aade2d3738c0@ti.com> From: Ricardo Rivera-Matos Message-ID: <18f0d3ad-f3f6-5c98-4612-0431f709fb0b@ti.com> Date: Thu, 28 May 2020 17:42:41 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <66823f18-dc74-107f-39ae-aade2d3738c0@ti.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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 9:16 AM, Andrew F. Davis wrote: > On 5/28/20 10:05 AM, 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 the JEITA spec. > > Wouldn't hurt to list the specific version of the spec these are from, > but not super important, > > Acked-by: Andrew F. Davis ACK. This originates from JISC8712:2015, but is more succinctly explained in "A Guide to the Safe Use of Secondary Lithium Ion Batteries in Notebook-type Personal Computer" > > >> Tested-by: Guru Das Srinagesh >> 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 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 { >>