From patchwork Wed Aug 26 13:24:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 52725 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f197.google.com (mail-yk0-f197.google.com [209.85.160.197]) by patches.linaro.org (Postfix) with ESMTPS id 061B822E9E for ; Wed, 26 Aug 2015 13:25:16 +0000 (UTC) Received: by ykll84 with SMTP id l84sf245267538ykl.0 for ; Wed, 26 Aug 2015 06:25:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=EK2gtjt8+Bt8omDXqI98ncP4KDCKI16vF35Vl8uVQk8=; b=ZuKezWCC/NyCV/Vc3li2Cr65CxQj4yrm/lb4lMu6OwaLaqz8Mhz81sFH5zQvyKKxWi eoLPkuSNwdJr1cCeekv2uAlaRpG3shVjWgCM5rbmt/2uK33hPCmWhirLC+vsdDIGi3RS Vs76gD3sBwTL50U7fBzRTKqbm6mWwYzmLq5xt7t5nnUMAYJXd7eGkpxzJYp5i252j/P2 cT0si0FI3c6VnYehtAAJMiRaWQFxXYcg6+cdPDH51hRx7nMvsQlreajhBSvRNQirCyPR lSdLLAwSqHWYD1s0qTQsLTYWw9boF5SusUZ7/mtO070k9EtfTO+rD4uJsADRSH+VbuyW ybMA== X-Gm-Message-State: ALoCoQn6y8EpqAWhXl4YVcofWomSH5hZykufBoORm77jJ8SoFAvh34ovrYNeg+nvnxJktpoNYUx9 X-Received: by 10.140.146.136 with SMTP id 130mr34090682qhs.8.1440595515853; Wed, 26 Aug 2015 06:25:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.182.91.43 with SMTP id cb11ls4789869obb.29.gmail; Wed, 26 Aug 2015 06:25:15 -0700 (PDT) X-Received: by 10.140.147.85 with SMTP id 82mr81881838qht.90.1440595515730; Wed, 26 Aug 2015 06:25:15 -0700 (PDT) Received: from mail-qk0-f175.google.com (mail-qk0-f175.google.com. [209.85.220.175]) by mx.google.com with ESMTPS id n189si38541993qhb.34.2015.08.26.06.25.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Aug 2015 06:25:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by qkch123 with SMTP id h123so113251152qkc.0 for ; Wed, 26 Aug 2015 06:25:15 -0700 (PDT) X-Received: by 10.55.197.84 with SMTP id p81mr31926453qki.90.1440595515482; Wed, 26 Aug 2015 06:25:15 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.55.75.207 with SMTP id y198csp1423570qka; Wed, 26 Aug 2015 06:25:14 -0700 (PDT) X-Received: by 10.66.97.102 with SMTP id dz6mr70705836pab.29.1440595514363; Wed, 26 Aug 2015 06:25:14 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ij4si38528284pbc.5.2015.08.26.06.25.13; Wed, 26 Aug 2015 06:25:14 -0700 (PDT) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756579AbbHZNZL (ORCPT + 28 others); Wed, 26 Aug 2015 09:25:11 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:36281 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755761AbbHZNZG (ORCPT ); Wed, 26 Aug 2015 09:25:06 -0400 Received: by wicja10 with SMTP id ja10so44609665wic.1 for ; Wed, 26 Aug 2015 06:25:04 -0700 (PDT) X-Received: by 10.194.236.161 with SMTP id uv1mr60328112wjc.158.1440595504720; Wed, 26 Aug 2015 06:25:04 -0700 (PDT) Received: from mohikan.mushroom.smurfnet.nu (cpc4-cmbg17-2-0-cust71.5-4.cable.virginm.net. [86.14.224.72]) by smtp.gmail.com with ESMTPSA id fs8sm7636540wib.0.2015.08.26.06.25.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Aug 2015 06:25:04 -0700 (PDT) From: Leif Lindholm To: linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, matt.fleming@intel.com, ard.biesheuvel@linaro.org, msalter@redhat.com Subject: [PATCH 1/3] efi/x86: move efi=debug option parsing to core Date: Wed, 26 Aug 2015 14:24:56 +0100 Message-Id: <1440595498-30630-2-git-send-email-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1440595498-30630-1-git-send-email-leif.lindholm@linaro.org> References: <1440595498-30630-1-git-send-email-leif.lindholm@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leif.lindholm@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , fed6cefe3b6e ("x86/efi: Add a "debug" option to the efi= cmdline") adds the DBG flag, but does so for x86 only. Move this early param parsing to core code. Signed-off-by: Leif Lindholm --- arch/x86/platform/efi/efi.c | 2 -- drivers/firmware/efi/efi.c | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index e4308fe..9757b79 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c @@ -979,8 +979,6 @@ static int __init arch_parse_efi_cmdline(char *str) if (parse_option_str(str, "old_map")) set_bit(EFI_OLD_MEMMAP, &efi.flags); - if (parse_option_str(str, "debug")) - set_bit(EFI_DBG, &efi.flags); return 0; } diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index d6144e3..78de0bd 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -63,6 +63,9 @@ static int __init parse_efi_cmdline(char *str) return -EINVAL; } + if (parse_option_str(str, "debug")) + set_bit(EFI_DBG, &efi.flags); + if (parse_option_str(str, "noruntime")) disable_runtime = true;