Received: by 10.223.185.116 with SMTP id b49csp3550457wrg; Mon, 19 Feb 2018 01:49:51 -0800 (PST) X-Google-Smtp-Source: AH8x225+Kjws1MwvAOJBU8mDbH/kVmHNKG1qHBu7Lr4N2aoW1qjC2FmWaBsPk58tgyiomEm+KUA/ X-Received: by 2002:a17:902:a616:: with SMTP id u22-v6mr9845751plq.211.1519033791482; Mon, 19 Feb 2018 01:49:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519033791; cv=none; d=google.com; s=arc-20160816; b=Ak/8rLanesYLCi0XuhzC4b62wNI95bXouqwMwW0s6rOFRsNZNuFsMzwi9fe1v8lutd IIy5VYq6PUMfl+7IHQkJKcbdIazaleA3FDFR8y/z8xnaUIv4r2WY9HSKKnzcoZH4VNgo H9Uwh7Q3d4jRDeyzuqBTjCewQ8hIBi74agDYQi25ryCW/aNzQVA65qKjrH3OvmKdlWyZ ukg9+AI8MeWyXSYb+zlprvPjKBoTyBPCm3HbH4WUKP/QHl9m6DAW8jvzyQrkdaxV2X/I Valg8f1vAzvFT7rkgRNhV2YtVPH0B59biqUDW3/wIGhRRykBB2ju63Z557hUo9FXZ5Nb KqPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=yk/VFi2u8bi66aMKGuK/vwH3QNVS3uVIoBBABqEnf3U=; b=BnQN1spCJZzxXOHkPJCEVCi3fPpJh24CCA5iY/OQg+u1CHr41FD+Xksir6MdIRL397 tW8tJHQ4BYhhKjb8RqlPLy2tJ6swHpyQ7CcfImX7ff6RX3dYHpLEnZzE9jkXkW9rrkL9 DezEUm4vtSQDFKMmcLEZ24+35aDbFxAjo8RNSvvWINSPLzDigVw750BVmXf3Sd3/S9XR CKDrWR6HBxtQuAj4tdBvrYrEGYfl+UJj9TCyHlYae5rElZ5ktH1XUsbNF/ReOi1C1j+3 W/IrBVmVbdZQxrP+WU3zovtBy9Gqy3b+anIeQnSPgZ+NPb1IjJLRoV+mLYqdVpjIbSwW hJLQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p13-v6si5273997plo.758.2018.02.19.01.49.37; Mon, 19 Feb 2018 01:49:51 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752400AbeBSJsc (ORCPT + 99 others); Mon, 19 Feb 2018 04:48:32 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:37791 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752208AbeBSJsa (ORCPT ); Mon, 19 Feb 2018 04:48:30 -0500 Received: by mail-wm0-f65.google.com with SMTP id v71so13837184wmv.2 for ; Mon, 19 Feb 2018 01:48:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yk/VFi2u8bi66aMKGuK/vwH3QNVS3uVIoBBABqEnf3U=; b=b/5F3C/aqV5xfoZLDxExuw5mRxacispuv0+0zo34j1pjGUKgH9Vbf3vbNwV9WSKZIQ mdMc7itIF2Mq/QmWkqeDEm5mTZb0rgg2TR6U47ggoXLpvcB29zcy8Gkx2prBiMvogLlZ K8dnoYbgRRCJyvO/cTIY0PVWKUBYsTI8+Jb0vaGZAo8FJc8Uxh/zbhkh3qnv7kgp1K6y ny2/VgAZARE62VH8SbC13vEhDOaoLXezVgSted61iNMbm+l/dfF5i9gax8yuyt9B7hWw /YE+QiGVOXtVFxANJrKsy/Vo0i3dzNI/uESwIKDmYvvm0GAUvaySUFzrZHrnMIOC4jEq mYQw== X-Gm-Message-State: APf1xPCPojtNiP9PDPGak3Xk6TGhzVmWnJ3yR0tlzqwZfVLb4fuJWSpE SxmoVsh+phSkEZSruj9wH2jxLA== X-Received: by 10.80.220.70 with SMTP id y6mr19045455edk.236.1519033708987; Mon, 19 Feb 2018 01:48:28 -0800 (PST) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id b14sm13842147ede.37.2018.02.19.01.48.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 01:48:28 -0800 (PST) Subject: Re: [PATCH v2 3/3] power: supply: axp288_fuel_gauge: Do not register FG on ECS EF20EA To: Sebastian Reichel , Carlo Caione Cc: linux@endlessm.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 References: <20180216082616.25084-1-carlo@caione.org> <20180216082616.25084-4-carlo@caione.org> <20180216142655.heommid67q3g22qt@earth.universe> From: Hans de Goede Message-ID: Date: Mon, 19 Feb 2018 10:48:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180216142655.heommid67q3g22qt@earth.universe> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 16-02-18 15:26, Sebastian Reichel wrote: > Hi, > > On Fri, Feb 16, 2018 at 08:26:16AM +0000, Carlo Caione wrote: >> From: Carlo Caione >> >> 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. >> >> Signed-off-by: Carlo Caione >> --- > > It looks like this could be applied independently of the ACPI > patches to the power-supply tree? Yes this can be applied independently. Regards, Hans > > -- Sebastian > >> drivers/power/supply/axp288_fuel_gauge.c | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/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[] = { >> DMI_MATCH(DMI_BOARD_VERSION, "V1.1"), >> }, >> }, >> + { >> + /* ECS EF20EA */ >> + .matches = { >> + DMI_MATCH(DMI_PRODUCT_NAME, "EF20EA"), >> + }, >> + }, >> {} >> }; >> >> -- >> 2.14.1 >>