Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1646963imm; Wed, 26 Sep 2018 23:41:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV61uXt9CjwXryiu134c9+2ZRfAfM5gHEuSqMjC/lUWMwmVKysDjtnMmQF60fqt2W1oigeWiq X-Received: by 2002:a63:ce14:: with SMTP id y20-v6mr8967724pgf.248.1538030475020; Wed, 26 Sep 2018 23:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538030474; cv=none; d=google.com; s=arc-20160816; b=CT+KmcrKawNIHq/fNmqHWix3K8zkLZQayrbiC9OT2PiCkSYo467CSr9VIFldVMv/vQ 1Dbzf1VRjC4ZokZqNRj+63lTu3wf/LHs2i4sC9U++AOoWeHkUy5LdoYklsOtZQBWatkO 43MiSkr89UdZVzHPhHD9ywzuzp8ZoOdcG/WnxHJjA4LWYudNiy799GOEh6tDz/NBcomZ P6r8BC6Pl6tl48vQt0KXypei0c5/yw5hoMNRUVgsx/OFGmyX98xCyVjFPZjqdAZOZh9B 4yV1FnQTEGX/lz2WSmrtvdCbOeZDpz34aNb1tQYBuqXtMwZ3aj6vhMcJjL1a7SmAwOr8 UtbQ== 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:dkim-signature; bh=J6sOyhgMVPt/PpOFGAP0Lmov/lyL0JZPsCIcZEYfykY=; b=fkSCBBQ8T+QHAvPTCtMxUai98sAs84LZ6tdmqAlIX/kRn0VeQjf9MBZjUKuNIvDrDs q7nzcFTW8303lzaKry7DgsABfGF7afppqb3cbmmSUq8EEvckG2V/8zUF4mOUmCSnia2A StnTOI2sdi6PVt4QQ6TzUywyPtwncROpZoa8gx/1R6N1MzbPElrBjX6IwCFFG6Ugncl4 XQcvg9uxhP7/CjqFy1CvxeHl92Uv7PGnkGYb8Gz/Sufts0m0sOtynxoiDu/OBTiNMpY9 gMNjUP2SfmqP/xHqo8Q4x7hISeeVRH8jmtQXxb8kS6KTnqB036BOF3+T/2TqlN3zlYzb B1IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gIOIX+y3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r134-v6si1288533pfc.202.2018.09.26.23.40.58; Wed, 26 Sep 2018 23:41:14 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=gIOIX+y3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727020AbeI0M5d (ORCPT + 99 others); Thu, 27 Sep 2018 08:57:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:39382 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726659AbeI0M5d (ORCPT ); Thu, 27 Sep 2018 08:57:33 -0400 Received: from earth.universe (tmo-111-71.customers.d1-online.com [80.187.111.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BED902156D; Thu, 27 Sep 2018 06:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1538030453; bh=J6sOyhgMVPt/PpOFGAP0Lmov/lyL0JZPsCIcZEYfykY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gIOIX+y3Umm3mA62XZSBIfKCSYRtvKuekmptqCQ46VUpE+U0v+sFUY/h0JzoFs/iL KYBvh725uKphEwUHc3JeiK5DoLjp0pJwBHBPj9WduAacSitcXgt3MARem1SaiPXCvC f00c2vLR4UUbJh6QGNsIxWTFgxCsrGORQq0sJGXw= Received: by earth.universe (Postfix, from userid 1000) id B2CD53C0892; Thu, 27 Sep 2018 08:40:47 +0200 (CEST) Date: Thu, 27 Sep 2018 08:40:47 +0200 From: Sebastian Reichel To: Baolin Wang Cc: Rob Herring , Mark Rutland , Linux PM list , DTML , LKML , yuanjiang.yu@unisoc.com, Mark Brown , Craig Tatlor , Linus Walleij Subject: Re: [PATCH v2 2/4] power: supply: core: Introduce properties to present the battery OCV table Message-ID: <20180927064047.gjxg5ikbrdgbc54u@earth.universe> References: <358665e3f4f9ec105dc2f8a2dc6dd98dbe761fae.1537930252.git.baolin.wang@linaro.org> <20180926135150.fla2r4ilfco3atws@earth.universe> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="k7hcsql7m2t5ho6w" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --k7hcsql7m2t5ho6w Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Thu, Sep 27, 2018 at 09:10:05AM +0800, Baolin Wang wrote: > On 26 September 2018 at 21:51, Sebastian Reichel wrote: > > Looks good to me. Technically this can result in existing users of > > power_supply_get_battery_info leaking memory, if they have an OCV > > table in DT. >=20 > Fortunately existing users did not have an OCV table. Right. I was just talking about potential memory leak, if the DT file of these boards has the OCV table defined. I don't think that this will be a problem in real life. > Moreover once this patch merged, I will send patches to add > power_supply_put_battery_info() for existing users of battery > info. Thanks. -- Sebastian --k7hcsql7m2t5ho6w Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAluse2wACgkQ2O7X88g7 +pqfZxAAoPl9aL6sdDCBfxKazPiI9s5153oyEycYk5X1bgX1suAVKe9RLGPCzb0/ upA/K5pX5tSaDEF8APJA6fI7KCsnRnXKMWbE9Hzuvh970Z0LHzxUi832xfrVNeWy YBekJcdfhAhSpMpRviB4dqle9Ng+72UYE3+vVF5B6slN6dcJVX9vQGX1TzWVNJAL lIw0E8YuBl0IYFMufi6b79dCWu0RVWjTP3Czn9sHcqVrI6iPczqLYDic5cPx9p/8 3RjxIIX5f1QttBNDmbaVr5RjnOn/VM1epiDUQRVWhZV+lFZaeUOxjXbn0iV9Dr9/ kMHlTfmMLXr9DRNplgXpGYBjQyk1BlLfWw5vtlxZEBwhCjQeole6hLQ5CkvUaeH7 CiXRqGob6EkZ/6SHCd0u2Azkb7s8hhUpdGdwJ4/RwQ5mVIlaIlvul80QgtKvntxM 3cIS1nJtYElWCiuCsldh9OCyYBUnAm+NJhB7ug2cO0CguvpkNDKY/FhqzJo1awcY mH5WDqkdjqmVvMNLUXbTDXhhXdDQjpFn/nXc/UdbLFPhrpEZqEHvIOP+IaEK7F14 TYBxiwHtFysgLXEd8cluaDwtNgh8ihIP9luRwzy11Ru8sg2DBGQRnoyYVbY9dVfO 8KNDcuT4nxkpP9s9WgyDgUekYOvJhPaQ7J6BEgvWm6CPI36Q6/A= =rqSa -----END PGP SIGNATURE----- --k7hcsql7m2t5ho6w--