Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3050941ybb; Sun, 12 Apr 2020 22:42:17 -0700 (PDT) X-Google-Smtp-Source: APiQypJ20Xn18qcBeQy62/OGxr4xvqzuASvzZxn2Z7hUNjrchjUJkAEdECkBDHxDqzIMQdclOoGp X-Received: by 2002:ac8:12c2:: with SMTP id b2mr9906355qtj.7.1586756537836; Sun, 12 Apr 2020 22:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586756537; cv=none; d=google.com; s=arc-20160816; b=CFucG8m11uL5UGyW9CpK7eDb8mZtxCsEPxFnrWEi34osWxCWYZbZMnttgev0EvfcO9 x7qyPh9r8R/VPF1R7VrPxARumdKZ6os1FzI8N0/o/KaR6CtaZs8AO/j9EniaWbdHqMXA 34AliZFrOu9PzE2rwC9blLSIC+IQhCHaWNxSIFiv0bbgSiiOJriH2ykmPPKqwzoaVbc/ SpTKIKNAA3d5UG3qRJAAkjBgyZ7Wa+GJNw1bCAaIGYA51ElgkryvHSE1CZn5s8oA00Gs S/yz6Ztk8LHISwn9kwfS1Ytl2OMPX48s2Khc2ndGBRUalwa8ctSBEIFlGAXRUnit9zR3 76sA== 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; bh=YcpTIFtddiXWF1VxWvCo/cKLivNMJZI+7BjzuOqLxVE=; b=Ld/M4l+mcItNqX/GUWd7WWuZ1O0tgnI2qny04LAeHAR/3zL/jS6SigjSFVkv6+Ed3o sVD9ykyzIN0L3XpZmKw4jU4xeGwBTbtcIYfrDef/Vm9Plv46Rt5nKUDrjxBVA7V81R6f I1G9WJNr1e0LnS3/05TSOQSQe6DW4b/P9wX69lzV1kJz3/5o/gxYPNkBAckLEgsUIfoo 3MuRAXTDdYlG83QcrvEUcJe0kL/HhT1+W8494LxE49bz7KXXOujjX3g3Dd6q5bbzV227 l3e8kD8BdPxp9cS1zD547xnkiBZjGwshOFfzAFGBGNz4eaw0qkpcvhnwnicBhBI9ArZA InUw== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org ([209.132.180.67]) by mx.google.com with ESMTP id y9si5057829qva.4.2020.04.12.22.42.03; Sun, 12 Apr 2020 22:42:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728169AbgDLUqJ (ORCPT + 99 others); Sun, 12 Apr 2020 16:46:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.18]:39312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727364AbgDLUqJ (ORCPT ); Sun, 12 Apr 2020 16:46:09 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 472F5C0A3BF5; Sun, 12 Apr 2020 13:46:09 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id F00A41C69AF; Sun, 12 Apr 2020 22:46:07 +0200 (CEST) Date: Sun, 12 Apr 2020 22:46:07 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Hans de Goede , Sebastian Reichel Subject: Re: [PATCH 4.19 20/54] power: supply: axp288_charger: Add special handling for HP Pavilion x2 10 Message-ID: <20200412204607.GB5796@duo.ucw.cz> References: <20200411115508.284500414@linuxfoundation.org> <20200411115510.523425293@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KFztAG8eRSV9hGtP" Content-Disposition: inline In-Reply-To: <20200411115510.523425293@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --KFztAG8eRSV9hGtP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat 2020-04-11 14:09:02, Greg Kroah-Hartman wrote: > From: Hans de Goede >=20 > commit 9c80662a74cd2a5d1113f5c69d027face963a556 upstream. >=20 > Some HP Pavilion x2 10 models use an AXP288 for charging and fuel-gauge. > We use a native power_supply / PMIC driver in this case, because on most > models with an AXP288 the ACPI AC / Battery code is either completely > missing or relies on custom / proprietary ACPI OpRegions which Linux > does not implement. >=20 > The native drivers mostly work fine, but there are 2 problems: >=20 > 1. These model uses a Type-C connector for charging which the AXP288 does > not support. As long as a Type-A charger (which uses the USB data pins for > charger type detection) is used everything is fine. But if a Type-C > charger is used (such as the charger shipped with the device) then the > charger is not recognized. >=20 > So we end up slowly discharging the device even though a charger is > connected, because we are limiting the current from the charger to 500mA. > To make things worse this happens with the device's official charger. >=20 > Looking at the ACPI tables HP has "solved" the problem of the AXP288 not > being able to recognize Type-C chargers by simply always programming the > input-current-limit at 3000mA and relying on a Vhold setting of 4.7V > (normally 4.4V) to limit the current intake if the charger cannot handle > this. Hmm.. Drawing 3A from port designed for .5A... is not that a bit dangerous? It is certainly against the specs. I believe it will work okay 90% of time, but maybe something overheats or some fuse trips in the remaining cases. I believe I've seen fuse triping on USB port of my home router.. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --KFztAG8eRSV9hGtP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCXpN+DwAKCRAw5/Bqldv6 8u9oAKC5lpXEWnBKfIzTnhMzbY37kb655QCfZUmwKkcsmbxbM9/YySEQ1ANbaIw= =IJfG -----END PGP SIGNATURE----- --KFztAG8eRSV9hGtP--