Received: by 10.223.185.116 with SMTP id b49csp1035857wrg; Fri, 16 Feb 2018 11:13:11 -0800 (PST) X-Google-Smtp-Source: AH8x226acVgkwQmArXoSAeIZNHIySuE+aoAbBPN62xLsTGFEgxq8KkTu5vZ5RAyiRxkZv+l8jjx0 X-Received: by 10.99.62.136 with SMTP id l130mr5901177pga.28.1518808391864; Fri, 16 Feb 2018 11:13:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518808391; cv=none; d=google.com; s=arc-20160816; b=s56lXyISv5nN5nRLVophk93QI9qSNwel1YLd1r0nDhciMPf/ziv9VIT+3Ctn3Rouxn y3Pw8MRbgaiq0hjaid+GSJdeI/D97AgFQwEnpnXJ5FSoRj0ZVWn7kQUvH+VZmMV6zE0D VHJullD8B4zJ68L+smEmYImg+4L4f5R1vtwH47lMef/o0FBK0O3VcVMXsrZOojGAeFW8 U848E+xwbFdVy1TPXNkM1EdWVd4Jrqwa5AA8w2HJf5F5H+uTMzRrgfXlvzq0REzSCEDV MMdrnRFaVbMW+KRsIyhJw4Yx7yA1anuwOV4HyVq2Fbp/clQJeplAMCEeKbw4wdfeDE42 mrRw== 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:dmarc-filter:arc-authentication-results; bh=l3x1qU0YSkDrIiN0+CPqw0jI1L6G1DTXSeE+JHQzPhE=; b=KiGbuJcZKgk5CGyNztkOVQK5q0H9wnuipEQ9f5SVjDv0Pl5F2xqdPss3TwjLiA/EZo AXqFIsIL78RRVHCz2EBrfTy1HTVINYgVRSxlR+Ctax+czh4vdOf2rr8YKvL22Bb5MzFW IfNC1FM8dXNW9HgcHJD2JXVY6ZNBdR+GlNRzTxHSuqtUVc1Vmx7vIWEkvyAdHYN+73K2 ultN11u6oCdDpiwfoAPki+ydCKIF8oaXCymuhOpWdJVCR70h3O6tgRG/i84gBNZX+2RK EoTarmtw+LjXxp7ia5xpIRLZ6Zc3zNzicBj4Vfa5f9LBWSwhjl404+GHfxoAu5AaW/0e 0wFw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a100-v6si817061pli.792.2018.02.16.11.12.57; Fri, 16 Feb 2018 11:13:11 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034325AbeBPO1A (ORCPT + 99 others); Fri, 16 Feb 2018 09:27:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:40072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034273AbeBPO06 (ORCPT ); Fri, 16 Feb 2018 09:26:58 -0500 Received: from mail.kernel.org (unknown [178.142.68.0]) (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 BA2FF217C7; Fri, 16 Feb 2018 14:26:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BA2FF217C7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=sre@kernel.org Date: Fri, 16 Feb 2018 15:26:55 +0100 From: Sebastian Reichel To: Carlo Caione Cc: linux@endlessm.com, hdegoede@redhat.com, rjw@rjwysocki.net, lenb@kernel.org, wens@csie.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Carlo Caione Subject: Re: [PATCH v2 3/3] power: supply: axp288_fuel_gauge: Do not register FG on ECS EF20EA Message-ID: <20180216142655.heommid67q3g22qt@earth.universe> References: <20180216082616.25084-1-carlo@caione.org> <20180216082616.25084-4-carlo@caione.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wshm6zzqjg7sveev" Content-Disposition: inline In-Reply-To: <20180216082616.25084-4-carlo@caione.org> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --wshm6zzqjg7sveev Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, Feb 16, 2018 at 08:26:16AM +0000, Carlo Caione wrote: > From: Carlo Caione >=20 > The ECS EF20EA laptop ships an AXP288 but it is actually using a > different, separate FG chip for AC and battery monitoring. On this > laptop we need to keep using the regular ACPI driver and disable the > AXP288 FG to avoid reporting two batteries to userspace. >=20 > Signed-off-by: Carlo Caione > --- It looks like this could be applied independently of the ACPI patches to the power-supply tree? -- Sebastian > drivers/power/supply/axp288_fuel_gauge.c | 6 ++++++ > 1 file changed, 6 insertions(+) >=20 > diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/sup= ply/axp288_fuel_gauge.c > index 4cc6e038dfdd..903891a9bcf0 100644 > --- a/drivers/power/supply/axp288_fuel_gauge.c > +++ b/drivers/power/supply/axp288_fuel_gauge.c > @@ -708,6 +708,12 @@ static const struct dmi_system_id axp288_fuel_gauge_= blacklist[] =3D { > DMI_MATCH(DMI_BOARD_VERSION, "V1.1"), > }, > }, > + { > + /* ECS EF20EA */ > + .matches =3D { > + DMI_MATCH(DMI_PRODUCT_NAME, "EF20EA"), > + }, > + }, > {} > }; > =20 > --=20 > 2.14.1 >=20 --wshm6zzqjg7sveev Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlqG6i8ACgkQ2O7X88g7 +poL4g/+OPnzr2lxPcaXb2Q+dNqRgWMa69O+3rKWZRGnUnYxToNTdCBvNFfKj6zJ 7kZeVYmTotevZatUiV6mDpmLxQ4JvtuwfFOsOucSXktfNIzEx50ByK3lvoLWSsxt bAVDPXXZ6vHQ/Wx3wCQ8Jgr7QvuMC05YK5YtY/KTALoWRcD1/Pn+/rDpCsAtzxKz aHuVQmT/fbZV42vInm49yW65NXRlLgWjgh1h0jf6o5DhA9Aya8ahHOBO92k7zmmw 4/stjP871xt80YoLl29derLI+l5UGcTTsQdxpZyCz04lZWodwVr5SbPo+nXDzXYA zvPU3vb/EiSTL0H8UJCPZ03ZNIKtOMQQi1iokWuDzYCSZZ5qpFAM7TnzXoYULSQh kshiT7lbRip1dSapqlJaIEFew4Z7MLMkCPlfa0n8IkBtu57hDgO3tJZ2i56nAcLo uuU2m1Y/iWPgCl+2Awe+yeb196+7eIOH4ASBCnIx+UeGSMm8h7SaQVgnMJn6lPvc lqR0T2af89PBGhjb/rgxLUelmK5xIpaFFNKHlMLSscTkqV/dzDsgcR4Pp4rS1gNg XJ+sZJ2K4pLtCV5BbcQnHZ6FXpqVMB3n8MuheUJAjLL4WUxHz5Ki2MAOlI90/k/m MGmy+Sj8aTpo+PK/ui0BZ9yf3hNKEMbbDEXO4nVSpqq1xOaRgG4= =2r8q -----END PGP SIGNATURE----- --wshm6zzqjg7sveev--