From: leif.lindholm@linaro.org (Leif Lindholm)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] efi/x86: move efi=debug option parsing to core
Date: Wed, 26 Aug 2015 14:24:56 +0100 [thread overview]
Message-ID: <1440595498-30630-2-git-send-email-leif.lindholm@linaro.org> (raw)
In-Reply-To: <1440595498-30630-1-git-send-email-leif.lindholm@linaro.org>
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 <leif.lindholm@linaro.org>
---
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;
--
2.1.4
next prev parent reply other threads:[~2015-08-26 13:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-26 13:24 [PATCH 0/3] unify efi debug output across architectures Leif Lindholm
2015-08-26 13:24 ` Leif Lindholm [this message]
2015-08-26 17:25 ` [PATCH 1/3] efi/x86: move efi=debug option parsing to core Matt Fleming
2015-08-26 13:24 ` [PATCH 2/3] arm64: use core efi=debug instead of uefi_debug command line parameter Leif Lindholm
2015-08-26 17:24 ` Matt Fleming
2015-08-26 17:30 ` Leif Lindholm
2015-08-26 18:29 ` Ard Biesheuvel
2015-08-28 13:32 ` Matt Fleming
2015-08-26 13:24 ` [PATCH 3/3] efi/arm64: clean up efi_get_fdt_params() interface Leif Lindholm
2015-08-26 14:04 ` Ard Biesheuvel
2015-08-26 14:15 ` Mark Salter
2015-08-26 14:16 ` Ard Biesheuvel
2015-08-28 13:32 ` Matt Fleming
2015-08-26 13:46 ` [PATCH 0/3] unify efi debug output across architectures Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1440595498-30630-2-git-send-email-leif.lindholm@linaro.org \
--to=leif.lindholm@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).