From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1516ECE599 for ; Wed, 16 Oct 2019 22:38:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B32D121835 for ; Wed, 16 Oct 2019 22:38:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391871AbfJPWiv (ORCPT ); Wed, 16 Oct 2019 18:38:51 -0400 Received: from muru.com ([72.249.23.125]:37676 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726743AbfJPWiv (ORCPT ); Wed, 16 Oct 2019 18:38:51 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 155418107; Wed, 16 Oct 2019 22:39:24 +0000 (UTC) Date: Wed, 16 Oct 2019 15:38:47 -0700 From: Tony Lindgren To: Pavel Machek Cc: Sebastian Reichel , linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, Merlijn Wajer Subject: Re: [PATCH 2/2] power: supply: cpcap-charger: Allow changing constant charge voltage Message-ID: <20191016223847.GI5610@atomide.com> References: <20191009210141.10037-1-tony@atomide.com> <20191009210141.10037-3-tony@atomide.com> <20191013113111.GD5653@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191013113111.GD5653@amd> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org * Pavel Machek [191013 11:31]: > Would it be better to return 0 for < 3.8V values? No, it's setting the charge current to zero that controls the charger. > > + case 4100000 ... 4120000 - 1: return 4120000; > > I believe this should be 4100000. Thanks for spotting that one. Regards, Tony