Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6196631ybf; Thu, 5 Mar 2020 15:18:44 -0800 (PST) X-Google-Smtp-Source: ADFU+vv3YL9371hIMiFcVzDHCPylSbZUDHXdQe6Dp1zDFjpPvPkMsT2zqqWQZSIzk3JWg20/DFxa X-Received: by 2002:a9d:708a:: with SMTP id l10mr225900otj.371.1583450324734; Thu, 05 Mar 2020 15:18:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583450324; cv=none; d=google.com; s=arc-20160816; b=BG4+0O4nm6RWOFjgQFtS32WBwZ/zAAKFN0g4ILhOMy/5opiDJdUKCErAMVpY6ydoPh HdqsQOBtjTyCuD+IZOSV9gjezHFzy+YQ2V73v/pydKMdywil3Zj1lzS7UuDvCRZKCNqs NN6lnGrlukWP1Bb9mQcv72jeXdTu7hNGTT4kriL+iWiS7NTXa8BTUnosQQU5tLTNCQ7O HxSen0jXf49Jsw09ApiwkbtbexFY0eGfVinAOVN2h4TiPc11hiCRL/V/NJR3wLL+K88r Khix2ZcgSTx37bleKdAtb5BuMcD+RoZCoFkxsB5O6686MYH/T1vBmByV4YLaEYFnJuE9 TM/Q== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=i1R3xJfob53tPTjWJ+8ogQf5PrENGTo1Dy84cXUSo9o=; b=Dg1bvBRy4PKPfj51idax5RiHdYqEDfcDmTTL1xFUcLmTCW0eRpFBM2yEjh5s6Qf4K/ a4s5L1s7pi7xGFuiZn3Ygd7HZRJY2qIhtsX/HHGXrlynhsRPdSOpobpFjjh8gmHUExAL WplLCkD6Ry/rQoDyT0VbBh379p2zVj/dQ8iNlDHvp2ddQWHpqQ5mQQr/EezccC4OFm2V aJmGssLOK5FG5raB84Gwfi8kLOEfqPh22SPKRaeB7shQYEUYiPLMJ0Ra++5ZV4qoPl8Z +paXM4ScqyDW69PdH6BQnBkPD81DYgBafXdQE9j9gfSrg573oCdzIML+GO47PVLlcRj3 rhLA== 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 9si271876oiq.104.2020.03.05.15.18.32; Thu, 05 Mar 2020 15:18:44 -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 S1726204AbgCEXQx (ORCPT + 99 others); Thu, 5 Mar 2020 18:16:53 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:44259 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726049AbgCEXQx (ORCPT ); Thu, 5 Mar 2020 18:16:53 -0500 Received: from 79.184.237.41.ipv4.supernova.orange.pl (79.184.237.41) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.341) id bb12227a4152f3b0; Fri, 6 Mar 2020 00:16:51 +0100 From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , "Rafael J. Wysocki" Subject: [PATCH 2/2] ACPI: EC: Do not clear boot_ec_is_ecdt in acpi_ec_add() Date: Fri, 06 Mar 2020 00:15:24 +0100 Message-ID: <3824376.HkUXRVnQtS@kreacher> In-Reply-To: <2656743.kaaXMJBMQx@kreacher> References: <2656743.kaaXMJBMQx@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Rafael J. Wysocki" The reason for clearing boot_ec_is_ecdt in acpi_ec_add() (if a PNP0C09 device object matching the ECDT boot EC had been found in the namespace) was to cause acpi_ec_ecdt_start() to return early, but since the latter does not look at boot_ec_is_ecdt any more, acpi_ec_add() need not clear it. Moreover, doing that may be confusing as it may cause "DSDT" to be printed instead of "ECDT" in the EC initialization completion message, so stop doing it. While at it, split the EC initialization completion message into two messages, one regarding the boot EC and another one printed regardless of whether or not the EC at hand is the boot one. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/ec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 9e7ee6ae4706..8025a070335e 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -1621,7 +1621,6 @@ static int acpi_ec_add(struct acpi_device *device) if (boot_ec && ec->command_addr == boot_ec->command_addr && ec->data_addr == boot_ec->data_addr) { - boot_ec_is_ecdt = false; /* * Trust PNP0C09 namespace location rather than * ECDT ID. But trust ECDT GPE rather than _GPE @@ -1641,9 +1640,12 @@ static int acpi_ec_add(struct acpi_device *device) if (ec == boot_ec) acpi_handle_info(boot_ec->handle, - "Boot %s EC used to handle transactions and events\n", + "Boot %s EC initialization complete\n", boot_ec_is_ecdt ? "ECDT" : "DSDT"); + acpi_handle_info(ec->handle, + "EC: Used to handle transactions and events\n"); + device->driver_data = ec; ret = !!request_region(ec->data_addr, 1, "EC data"); -- 2.16.4