Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp614269ybk; Fri, 15 May 2020 09:06:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI79XRSQT1OCcspdz94HIlrxmaP9Cc1xp1tCOiQqKB86aEngmc+tXXMRAAf7qRVkh99+ce X-Received: by 2002:a17:906:398:: with SMTP id b24mr3592290eja.356.1589558767782; Fri, 15 May 2020 09:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589558767; cv=none; d=google.com; s=arc-20160816; b=wCIJtyZP19868LVklAt0sUyFoC9bzd5+K3oJndqJIs0oXR5ZZssqejvTpG8P9Etwcm x6eBXeDG2HFlvv1/jrC63dJKyAbdZkBcbe4SixA1X4kqDiDewRpSInfs6/+T/fMsSNHn BGqi5md8LUU6rOu2HtqffyBtQKRVYCUo3/ZJzD5IS0H3PD2bSatWQb4fSn6Ic3he5nZS p2y5YsT12wnB5GG6vTsv0m+H9NrAnNGCIvD2xzUBCxA5hUHvJC9rtsH8t85mo5aLuHHl +u7uN0FHNVe4Tyj0gkztmIE40ghw4sYHM7/WIKexl5m2zOGvXqBw67Led7Kl6OhSeWTj A3WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=by9Cy6f/9VU4gqDwLjQaapC/XTQl1hGvwF4G8bP7aX8=; b=bY2L4MnYgVokS5bwlXP9gXGmOH9DaCxl0ydLeJJmHYdKS+8WbiCTJRPS+CBzH2ErEx kA9fTRwFMeoTkKKJ3hRMtTyhem3IYJ3dfxJ8jhELtmX9dfJTGScN3iT7Lde8CLMDk47/ 3VSd1rJ+shOhGy2Z9xk72H7+HejPllIf95uK6VxLp57r4J16fSgSp58Jow103U5iiOO0 OKMzy0/WMGEXKzvK9qXy+MLV8Oz4TGIoELt0jI90ocnA5HMhzckoPgMSzxuC9y+T6hQ4 ++2IPqvYc7TPEenUs/dCro2LzrEkbvGaQpMGM3Qd7bTbMmHYddu7GJqvjaW2r46odmcD Tqew== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rs15si1448718ejb.244.2020.05.15.09.05.44; Fri, 15 May 2020 09:06:07 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726695AbgEOQEW (ORCPT + 99 others); Fri, 15 May 2020 12:04:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726374AbgEOQEV (ORCPT ); Fri, 15 May 2020 12:04:21 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D3DEC061A0C; Fri, 15 May 2020 09:04:21 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: evelikov) with ESMTPSA id 4FCEF2A3495 Date: Fri, 15 May 2020 17:01:41 +0100 From: Emil Velikov To: Sebastian Reichel Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCHv1 03/19] power: supply: core: add manufacture date properties Message-ID: <20200515160141.GF2836808@arch-x1c3> References: <20200513185615.508236-1-sebastian.reichel@collabora.com> <20200513185615.508236-4-sebastian.reichel@collabora.com> <20200515144732.GC2836808@arch-x1c3> <20200515151408.vbj75fag6ya5g2bq@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515151408.vbj75fag6ya5g2bq@earth.universe> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/05/15, Sebastian Reichel wrote: > Hi, > > On Fri, May 15, 2020 at 03:47:32PM +0100, Emil Velikov wrote: > > On 2020/05/13, Sebastian Reichel wrote: > > > Some smart batteries store their manufacture date, which is > > > useful to identify the battery and/or to know about the cell > > > quality. > > > > > Have you considered exposing this as a single file? Say following > > the ISO8601 format - YYYY-MM-DD. > > Yes. My initial implementation was exactly that. The thing is, that > I suspect some fuel gauge implementations may only expose the year > or just year + month. I chose 3 files, since receiving 'YYYY-MM' > instead of full ISO code might be more unexpected than not having > the DAY file available. But I don't have a strong opinion on this. > Fwiw the ISO 8601 allows for YYYY-MM, although you're spot on. Having the three fields separate makes perfect sense. Thanks Emil