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.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,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 07247C433E0 for ; Mon, 29 Jun 2020 21:50:33 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C6752207F9 for ; Mon, 29 Jun 2020 21:50:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WLEwlJCK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C6752207F9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3HrLwemOQMZtudhnNamYWYF+FsafdM7tUGe/Wc4vmbk=; b=WLEwlJCK/NzZkrArgVpzGm/QD ga8Bp7Mr8DqkkV6elJDvcU+j8538sz9NDE4T19oIFpYD5caU+ahlj5mHQb5cMtbyd4Fcv6gxcpuOc eHC5B0HrgQJuen/xdTgXEIQiJYTRfQ82IBaCelzGSaOd13UyswqsPvCcbdEA3Bogl2vmZrhFQ6qLs Wu3/QqJ6qQx0V2Xs5ZMAFY9e7nUUcG0DUuBJOpeEUQXsLrNmeEPZ0cn9lpwzO1JHwOkIns1RUPz24 6GE84TYIh4MJG3dwjZ5q+dB+yiCPkW02lAHM4wd4Pelx1dmHH23uuAAf0CNLIWROuzfvWdLiHAu8z cw+3eY6wA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jq1eE-0003Lx-25; Mon, 29 Jun 2020 21:49:06 +0000 Received: from jabberwock.ucw.cz ([46.255.230.98]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jq1eC-0003LQ-30 for linux-arm-kernel@lists.infradead.org; Mon, 29 Jun 2020 21:49:05 +0000 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id D9FFE1C0C22; Mon, 29 Jun 2020 23:49:00 +0200 (CEST) Date: Mon, 29 Jun 2020 23:49:00 +0200 From: Pavel Machek To: Merlijn Wajer Subject: Re: [RFC] Limiting charge current on Droid 4 (and N900) Message-ID: <20200629214900.GB26513@amd> References: <20200615140557.GA22781@duo.ucw.cz> <23f924be-a0ee-8efa-d92c-da83700261da@wizzup.org> MIME-Version: 1.0 In-Reply-To: <23f924be-a0ee-8efa-d92c-da83700261da@wizzup.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mpartap@gmx.net, linux-pm@vger.kernel.org, tony@atomide.com, martin_rysavy@centrum.cz, kernel list , sre@kernel.org, nekit1000@gmail.com, linux-omap@vger.kernel.org, linux-arm-kernel Content-Type: multipart/mixed; boundary="===============1243924549663465862==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============1243924549663465862== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZfOjI3PrQbgiZnxM" Content-Disposition: inline --ZfOjI3PrQbgiZnxM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > Droid 4 has same problem as N900: it is often neccessary to manually > > tweak current draw from USB, for example when using thin charging cable. > >=20 > > N900 creates unique attribute by hand, but I believe > > POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT looks suitable. (Should N900 be > > converted?) > >=20 > > Comments? Would the patch be acceptable after fixing whitespace? >=20 > I'm not very knowledgeable on batteries - but the patch looks good to me. >=20 > Could you perhaps explain what exactly this fixes? I've seen some > interesting behaviour when plugging a Droid 4 into a PC (or wall > charger, really): the led blinks for a few seconds until it > stabilises. With this patch, we'll limit charging to 0.5A by default, unless overrident by user. So you should not see green LED blinking, unless you manually select bigger current than charger can handle. > And then there's the issue where, once the battery is full, it will > switch between charging and discharging every few seconds/minutes. This will definitely not help with this one. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --ZfOjI3PrQbgiZnxM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl76YcwACgkQMOfwapXb+vLX6wCeJphl0Oi4AFWn9kxgBhOq9X31 wtwAoL3nHC9lc2nGxO6RSI3cXE/ZOYdJ =KZon -----END PGP SIGNATURE----- --ZfOjI3PrQbgiZnxM-- --===============1243924549663465862== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============1243924549663465862==--