Received: by 10.223.185.116 with SMTP id b49csp1015913wrg; Fri, 16 Feb 2018 10:52:03 -0800 (PST) X-Google-Smtp-Source: AH8x226zUMhsN428M7aP9N4l/xJnoFvoMyL9HvOkxB+jVAEOl5yJy6Zc9ucbYcNBf/pcgSM3FMJf X-Received: by 10.99.4.131 with SMTP id 125mr5756126pge.375.1518807123795; Fri, 16 Feb 2018 10:52:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518807123; cv=none; d=google.com; s=arc-20160816; b=FJLl2xc9DnQaUhWCnIGczcVjp5ly4sk/7EbynZgeqgt69xJ5MreDnDMvETehMJK8Db Cevh8kmXRX3F+hAif7OFa0b8LmXnhiQMKfNR7kLJrrIhMtt6zF8d/vHOnc+F1fu8C8pB nLKaVZIH1fkHwyVcQWk7v2KzXFihtoxYOD5T9CMSSOK8vI20gX3wGvjSsQECkyCC1YXF s5VMbp3za551ht2aim3jhKIE6D/w6DM0onRTZsAnYCj6sAoSdeTTSOR7/McmU8QWDZVX J0OmE8+6PnCAZ8g3CxcMTkYFXvB5mSoDKXiN+vqj5rc5LK3F9ViEDFepacssU2OTGjvb pH8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=y0BBYEnHgDUVGzsAE0hzU7mpbx8puy8xPUh3t46Hr94=; b=B+MHp4pUKnmMO41mMfp/1rqYgbc+SoEdDENvMQqn8JpHkPhvzn16+f5GX79guV907g VlvOoz4S7Lv8Sh5ZvMDRR3t5khHc1CEj6vLE5O3szEQEc3gF7DAv4/WeEzAO/h2ivSnX 4gCRCMjGd0VPcUzhSmbx5sG9MDkRoPeXK1BXZHhAAeHolvR0qCBWbRdt5B6smQ1K1q0w hy4WTKewujwbXp+El7dQsHpiP2A34VYVvK0T+Jl89H0jBvKPCXbFnf1KJ6M5nKduIRfs PbObTY8V9YR4x9JWUyPcU9EpaBcyz7qsCrihr3+/5iJ/z+JjDTCiKgCAz+ZW9GwvmpAO ggKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NPj0ZYhA; 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 az5-v6si3389054plb.71.2018.02.16.10.51.48; Fri, 16 Feb 2018 10:52:03 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NPj0ZYhA; 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 S1754579AbeBPI2L (ORCPT + 99 others); Fri, 16 Feb 2018 03:28:11 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:41963 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754234AbeBPI1B (ORCPT ); Fri, 16 Feb 2018 03:27:01 -0500 Received: by mail-wr0-f194.google.com with SMTP id f8so2076945wrh.8; Fri, 16 Feb 2018 00:27:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=y0BBYEnHgDUVGzsAE0hzU7mpbx8puy8xPUh3t46Hr94=; b=NPj0ZYhAzgwNelWK14rs7WrjpH5d48ZN6f+x4wb+8YK6ynDSvjuxeZlJfUI8zqBx0G zYJsgBHmwgzUaVN7HXXbavugrIY7VXt0o9fW14KxnNZAZJXttJPWmph0SxToMzIvU9Ch A5TTs0j3h93rw1zpduPBqwjO5RhQvPcCJUPraLUEmVQyZz05jdptJL4e0kAyo8VVU0hW sbm3OkdgeNUgpMzNIizKeSSzmawtpNxC1fjDzAH78yDcYW6w51s/SQlVFMNQQhqRmaPV KE2gBxkZVtQytb/NhW78XFeWuAvIzazy2EryHssstcbexnjhMazVQxSRHS6Cg2pK3Gph /wkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=y0BBYEnHgDUVGzsAE0hzU7mpbx8puy8xPUh3t46Hr94=; b=BD91xTqHzPyLgfZkliqydxjzW5Zkof3W4PDWJsyypL3uYuaHQDIIVMcaPmcUP3fUKx RSnVH7x8BXhE+0mohGFvUCWIuOkLp5TmD8pzOh3moenh2sGxKrDEuRpaXjXJHmgRTes7 s/qeV8shlAAuz+uU8kLVIk2wYZhx+IXwWH3QmEpkgxrNrfV/t7fwgEY7QEjTN5DbfQim Xpctn0lEgQ2AJ1Bms9VeH0XVFkFyblX6bpn5mz7A9/5IXpGqVgjF4KfOYthl0k/J6IUr gY6oKPa/NS5SRmIFzcskSPGl1NEJibkf2IOLhEnTXxkK3aEHhOEgOoZGkp2fLs0cp0mt lBBg== X-Gm-Message-State: APf1xPAm+vd57Nmu2eHjjNUpAxlG4b1dOTCQp7D52aKILiF7ky41qzlp WPMNzagc0pUPSKDlYKi39TY= X-Received: by 10.223.145.33 with SMTP id j30mr268028wrj.172.1518769619709; Fri, 16 Feb 2018 00:26:59 -0800 (PST) Received: from satan.home ([2a00:23c4:f78b:2a00:9520:864c:b8f0:f03d]) by smtp.gmail.com with ESMTPSA id s126sm7846552wmd.43.2018.02.16.00.26.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Feb 2018 00:26:58 -0800 (PST) From: Carlo Caione To: linux@endlessm.com, hdegoede@redhat.com, rjw@rjwysocki.net, lenb@kernel.org, sre@kernel.org, wens@csie.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: Carlo Caione Subject: [PATCH v2 3/3] power: supply: axp288_fuel_gauge: Do not register FG on ECS EF20EA Date: Fri, 16 Feb 2018 08:26:16 +0000 Message-Id: <20180216082616.25084-4-carlo@caione.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180216082616.25084-1-carlo@caione.org> References: <20180216082616.25084-1-carlo@caione.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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