Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2654874pxb; Tue, 23 Feb 2021 12:06:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5jZfJ96ZA10cQbf7vIre3mJfYr6dHUNwVgC/0cZzZOFrMyLZxH381k39VTyGVTSQ6Gd8l X-Received: by 2002:a17:906:2803:: with SMTP id r3mr27680931ejc.50.1614110798823; Tue, 23 Feb 2021 12:06:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614110798; cv=none; d=google.com; s=arc-20160816; b=NCSvRrB1/LrKXwYN9reYHT6QExpCKyoH3StcdOoYKnKyqMs3MiuVRgIXVZqLswTa0D oEKKd8smlHDF1zg0g8b8kXg984inYmtSXSFebVN2LPs+Pp8bMpRKzCyBdcmcXpZeKnVC nHoCvwy2BRR63zCtBTdZjw3lDm9Rhn0HZpqYl7IIK7N1D8+x2y8Muk/GhBwXhrc0EJDX ekufcgTdV1cAPPPds4POjavRBQyH3fiKg+FF15TfncjxTTe4w1geOreLql9wj7uUN7GO xyOdE8EY439Nwj+LH92V+nzbfcmVrALb5ytXNux2MvnG4qC9WR4W1cJxWWBXB2Q1iMAz 5WNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=7hvhSkwGgt2tdLs5dpI2XdOPvbjJ2i/uiwqEr/Ul62E=; b=u1ZYfPT1z9durjyfc9kX2bR5pIBuv665MIFueyshUJV5ShlQOQ3zqxeBfTjEv02HGR XPTxw24jYqRP60GI0iMEA/EkaXKYZO+M/NTCtPk6qbgO5qtn0npmA+Jpqrg//27F/L/c 9TBhTD4vGqbCam5UMDsZMdHHBR+CqOAtNodaFu6WKhSlZAQfmvpl3TJNfqXZhpIN4ZCb CPAgWtsxa+gEVnJeo/r7ZDGy7oLQdsi/UsJQ5wqOLs7OyohWV89yq9/JRbYB/IrV0PVY 60+ycwyey5Fwt/bbbZJEy7FSgFM1q3JXjgWOZjOTaK69MH4jqo7zfgfg69619A5ExyR7 +JEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZGU+j7EQ; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c17si3795372edv.580.2021.02.23.12.06.09; Tue, 23 Feb 2021 12:06:38 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=ZGU+j7EQ; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231899AbhBWOyU (ORCPT + 99 others); Tue, 23 Feb 2021 09:54:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:53364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232520AbhBWOyS (ORCPT ); Tue, 23 Feb 2021 09:54:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id ED19164E12; Tue, 23 Feb 2021 14:53:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614092018; bh=OM4cSQCV8yXeiUPJwhUhjpxUXGQYw13IEBaq41dXDGM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZGU+j7EQQ2t8KbwUIJxd7loy8zUA1jLuw2dGQPrVXAcKUzwFESYQF6diMDL3UIGZ8 UpLCPAo62vTnHkKlD7vElszn1Hozun4b7rONR8m23vSVN+XyhTqkV05LEWizHkz2VU m1uaEPgtWWq7+vMuREIBY6ZQIEXDTSt8R2I1d3qdn4YRQ4fGe2piacu9m7c0z9vydo Q3eYvn1NPlPojp1YJyLZv2Vs7PFj7QaOfgGdBEFpCPBq+/FpcDYV0kgQPfjOPjF0eT cnh06GLAwVXD8n2HED9ORMQow6kAZfLHMLndv7/MGi904o9Hkv3RIKyHGLuMVBIH6i SzQJuPcsa28xw== Received: by pali.im (Postfix) id A00E2CAE; Tue, 23 Feb 2021 15:53:35 +0100 (CET) Date: Tue, 23 Feb 2021 15:53:35 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Andreas Kemnade Cc: Matthias Schiffer , Dan Murphy , Sebastian Reichel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, maemo-leste@lists.dyne.org Subject: Re: [PATCH 1/3] power: supply: bq27xxx: fix sign of current_now for newer ICs Message-ID: <20210223145335.2vsfclgeqpsmacfp@pali> References: <20210223141122.9574-1-matthias.schiffer@ew.tq-group.com> <20210223154946.1ef58514@aktux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210223154946.1ef58514@aktux> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 23 February 2021 15:49:46 Andreas Kemnade wrote: > On Tue, 23 Feb 2021 15:11:20 +0100 > Matthias Schiffer wrote: > > > Commit cd060b4d0868 ("power: supply: bq27xxx: fix polarity of current_now") > > changed the sign of current_now for all bq27xxx variants, but on BQ28Z610 > > I'm now seeing negated values *with* that patch. > > > > The GTA04/Openmoko device that was used for testing uses a BQ27000 or > > BQ27010 IC, so I assume only the BQ27XXX_O_ZERO code path was incorrect. > > Revert the behaviour for newer ICs. > > > > Fixes: cd060b4d0868 "power: supply: bq27xxx: fix polarity of current_now" > > Signed-off-by: Matthias Schiffer > > --- > > > > @Andreas Kemnade: It would be great to get a confirmation that the > > Openmoko battery indeed uses BQ27000/BQ27010 - I was having some trouble > > finding that information. > > > I can confirm that. > here is the corresponding schematic: > > http://people.openmoko.org/tony_tu/GTA02/hardware/GTA02/CT-GTA02.pdf > > Regards, > Andreas Nokia N900 has BQ27200 connected via i2c. CCing Maemo mailing list maemo-leste@lists.dyne.org