Received: by 10.223.185.116 with SMTP id b49csp1014893wrg; Fri, 16 Feb 2018 10:50:49 -0800 (PST) X-Google-Smtp-Source: AH8x2274VvVpcr7bwPQfa1YeRaxFPi5jsmwKppiyUOkV4fNomzyGZJpK3xqearyUUkoGDUGWusSf X-Received: by 10.167.130.133 with SMTP id s5mr6878209pfm.238.1518807049770; Fri, 16 Feb 2018 10:50:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518807049; cv=none; d=google.com; s=arc-20160816; b=rp+6OVon10iWxzTk/z4pNrxWxQ9QwSl5Ww0V/W7Sqpx+YV09STC9C48whYHTxKYc2I OAX/Q6Cp6jPGfp01QWLRX3a+itASsz2c7vT45h7xbWScuJTAJ+06gBqAnnkV3QpruLTv 8nQkSmup4c2D4FcMd1WSpjDYMSNXX2BB60WQEpeJ2Kmzme+p9NHthvDs2FFxsfGBr8Te uJZqqvQxrYJ03GeR6xajBUPVFHc7RZG45irt+Ij7PLZTJQvOY1x5wcRypOGtWzuBnQDT l3BdiXvUSNrLj/ZkcQioDw4n8Z7N7CxOfmjT7avzi51eQ1bFLevPyCx+66CG49i7E2Ra whJw== 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=uBvwqAvPOe89lgYA3/yCNhPzKLQA8mrOCYLpBI3P+HM=; b=dciEmFqX15QjLCwqZboMqWtc7Hp/bPJePbJwvjYC1lfe2fG/WlikF0QpGgTuTWqWPY RVWgGzg534AhkRPaZhOdeTSKbP/nH68UCKCFXGu7W62HeNEuF/ElPkOwH9HdFWqkbaEa 4+ttR4cthmajumzM0h1X2SDu1MIk1sma/faoEGbVHq1Kabf7sZvwueVDTdWeZFK7on2f yd9ZHWhJVy3pGn/op5vG2ZnXMZ1Gmy5B8VFBVFvaOWafqJ1+iaXTU9O1bC6T1V5FRYcn hywSQs4YuvJssTlz9mXUTdRPZzQpzQIhjs8JgU2MITmRfh+BbS6x7fy4OY0wTCqQFedt +kTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=f19bRcrR; 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 b1si328383pgq.773.2018.02.16.10.50.35; Fri, 16 Feb 2018 10:50:49 -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=f19bRcrR; 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 S1754404AbeBPI1H (ORCPT + 99 others); Fri, 16 Feb 2018 03:27:07 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:37199 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754230AbeBPI07 (ORCPT ); Fri, 16 Feb 2018 03:26:59 -0500 Received: by mail-wr0-f196.google.com with SMTP id k32so2097993wrk.4; Fri, 16 Feb 2018 00:26:58 -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=uBvwqAvPOe89lgYA3/yCNhPzKLQA8mrOCYLpBI3P+HM=; b=f19bRcrRh7jjr5/nhQmapV4G1ZKtJFaFJ4gP2ezoF6CLUr3vEZVnV5OQxyfVKB3+F3 iUxvkr3RApL17Q92z1TIPoKT4R4ihHhHgMRu3m5d5zsUTngS8pGLNuxp483mYJta8ZdG kvqwI/hXW/roXscN5cmhwtlFGdoAIaiccFyfYJRtZdZH4i/QOXiqLoWV78Z4EMd3uis0 5HOLh+KWJk1EyJ1HMDsbtQb2qgaOhqgnzl7BNOf3fiqa0X5iMmMh7YvTev9e9GMhdot8 FkzP/ld90AS+o96YT86DzaoCpZnAUihzo9XOs0+9n7WZLleeLlBumCH8iF8yASG79XQp 32cg== 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=uBvwqAvPOe89lgYA3/yCNhPzKLQA8mrOCYLpBI3P+HM=; b=BrpzgiBiexTe8sL9+pnqHmZAdVgp0n6GZUNfTdmmZp513Y8rLYX74O5hGlNjsEFwp/ s+LA4nBvEz5h+B+fdFYTmowVzUVEfMWpyDppjqyI9h/1ZM60ufhZzrLWQzloNsunhWcf bEN8Hz5BgR9dJsm1pASMmmuBZjMRbI8sfqBArF6uXAmAq4SJ9EGXrcyhTLdPT55lehKL +4ceGMGur2NcSpF6fmtXFEYJclxxIqquR0HT01/zGUAEeBRqTjDedI/aDzonNXkR18sP HKqM+rK87BRQ1B+lxekC2BVIIGQ5Tp4clIMjy9t9dDXNCfBjhb+DgWwu1nCmKLtRvwra nMQg== X-Gm-Message-State: APf1xPDKjPhH2km+hOF9Hq3H8kK/Jclt7Tfh+1LtOw/3flXvUl+iEXPS OCRMsQv7Aak31q+Xf+CJg0M= X-Received: by 10.223.187.72 with SMTP id x8mr2397689wrg.217.1518769618290; Fri, 16 Feb 2018 00:26:58 -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.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Feb 2018 00:26:57 -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 2/3] ACPI: AC/battery: Add quirks for ECS EF20EA Date: Fri, 16 Feb 2018 08:26:15 +0000 Message-Id: <20180216082616.25084-3-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 On the ECS EF20EA laptop we need to move away from the AXP288 FG driver and enable again the ACPI AC/battery drivers. Add the required quirks to do that. We rely only on the product name because all the other DMI entries are dummy or not filled in on this platform. Signed-off-by: Carlo Caione --- drivers/acpi/ac.c | 7 +++++++ drivers/acpi/battery.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index b9a4ca720309..39f778f954f5 100644 --- a/drivers/acpi/ac.c +++ b/drivers/acpi/ac.c @@ -332,6 +332,13 @@ static const struct dmi_system_id ac_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "32597CG"), }, }, + { + .callback = ac_not_use_pmic_quirk, + .ident = "ECS EF20EA", + .matches = { + DMI_MATCH(DMI_PRODUCT_NAME, "EF20EA"), + }, + }, {}, }; diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 258d2e66f230..fe024f1a8ad5 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c @@ -1233,6 +1233,13 @@ static const struct dmi_system_id bat_dmi_table[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "UX410UAK"), }, }, + { + .callback = battery_not_use_pmic_quirk, + .ident = "ECS EF20EA", + .matches = { + DMI_MATCH(DMI_PRODUCT_NAME, "EF20EA"), + }, + }, {}, }; -- 2.14.1