Received: by 10.223.176.46 with SMTP id f43csp4121836wra; Tue, 23 Jan 2018 04:43:20 -0800 (PST) X-Google-Smtp-Source: AH8x2244Fj3xbEtnm/C+yuuWkcTePI+aeV8CymOMe+1UmeJRj1oD5uLfvQg0SetmBpk60wqQ9S0M X-Received: by 10.99.126.26 with SMTP id z26mr8714191pgc.151.1516711400630; Tue, 23 Jan 2018 04:43:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516711400; cv=none; d=google.com; s=arc-20160816; b=JHYuE4C13kOHI6ME6Rua6BZB9dY6vUf6N1FY3WMizT2Tv9g4GaPyUUGGjpIwc9QUab 7Ze6MdYO1PV+ukz47xfZhTGhaAAao1VpjG7cIC/EGWzonoVNS43vQrU/7xX0HeDDbreO zlrw7Iy6GNEdBKxxMk+9XDcucgLZ7fLwzYv2zqtfq9HBkYogWaQyPecSt8Gh4BkfAtzn EU87wsRiVx7Hmw+c17gGS8nX6VU2nO8mRSbfi3/R5+OikYhxHTzqqxPli/ROPKxYNIC+ 5wpnIX1BO4odvQ/sP4S5rileMGBbY0unhvGBQumKTdLREDaG+eANBhszMAfeKQys6qkm BmZw== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=nAopQq7CY2g2gJMrqPVpHu5/VTUrdA3IkgWUDYHPKLQ=; b=WIZm0QYz1P6t0pPEVkH5c6kySaYy9vWuYw1da1WepeQgIy7Gi75hWDGWjUrWcaeYEi g7PE8wE1isbIOu3eI8G0/L+IGe6f+yT0drO8Xoei053Mf09Zww4zyTkawy52/CVvz09a gAqyuunt0qxvHQsZ3SyOAJb6puZFCPxPrwX06FRxT/R5kqPSuikxVJryNdnKbS8UikJ8 lXrhK7RL4tJbG81X8dgNd0Vn0v0lshWP9B0JzZL3fIgp8F94Vm2XnXZgDfkEV7FBNX5l 7CUk+IvMXZW8J7DgHNun1x8UuqEMwirKaUPvZJ+gylNCZiFYq5Jf7D0Vw6BrVpb6162S I3kw== 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 o17si14990210pgn.280.2018.01.23.04.43.05; Tue, 23 Jan 2018 04:43:20 -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 S1751590AbeAWMmH (ORCPT + 99 others); Tue, 23 Jan 2018 07:42:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50158 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751291AbeAWMmE (ORCPT ); Tue, 23 Jan 2018 07:42:04 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 247F34AE9F; Tue, 23 Jan 2018 12:42:04 +0000 (UTC) Received: from [10.16.186.145] (prarit-guest.khw.lab.eng.bos.redhat.com [10.16.186.145]) by smtp.corp.redhat.com (Postfix) with ESMTP id C932F7BB53; Tue, 23 Jan 2018 12:41:57 +0000 (UTC) Subject: Re: [PATCH] acpi, spcr: Make SPCR available to x86 To: Timur Tabi , linux-kernel@vger.kernel.org References: <20180118150951.28964-1-prarit@redhat.com> <745c9e29-f0b4-775b-28f7-8712cdc90fe1@codeaurora.org> Cc: linux-acpi@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-serial@vger.kernel.org, Bhupesh Sharma , Lv Zheng , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Jonathan Corbet , Catalin Marinas , Will Deacon , graeme.gregory@linaro.org, mark.salter@redhat.com From: Prarit Bhargava Message-ID: <5fab980d-d937-8806-9745-9850947a9096@redhat.com> Date: Tue, 23 Jan 2018 07:41:56 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <745c9e29-f0b4-775b-28f7-8712cdc90fe1@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 23 Jan 2018 12:42:04 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/22/2018 04:49 PM, Timur Tabi wrote: > On 01/18/2018 09:09 AM, Prarit Bhargava wrote: >> if (acpi_disabled) { >> - if (earlycon_init_is_deferred) >> + if (earlycon_acpi_spcr_enable) > > This patch works for me, so I can ACK it, but first you might want to rename > earlycon_acpi_spcr_enable, because these two lines don't make much sense. > > "If ACPI is disabled, and ACPI SCPR is enabled, then ...." > > If ACPI is disabled, then how can a variable called "earlycon_acpi_spcr_enable" > be true? > > Would it make more sense to rename it to earlycon_spcr_enable? > acpi_disabled is a global runtime flag that can be set via "acpi=off" on the command line. It does not disable the tables, only the reading and interpreting of the data in the tables. P.