From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751280AbdATCsn (ORCPT ); Thu, 19 Jan 2017 21:48:43 -0500 Received: from mga11.intel.com ([192.55.52.93]:38055 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751024AbdATCsm (ORCPT ); Thu, 19 Jan 2017 21:48:42 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,256,1477983600"; d="scan'208";a="811076814" Subject: Re: [PATCH v5 2/4] x86: add support for earlyprintk via USB3 debug port To: Ingo Molnar References: <1479189731-2728-1-git-send-email-baolu.lu@linux.intel.com> <1479189731-2728-3-git-send-email-baolu.lu@linux.intel.com> <20170119093834.GD22865@gmail.com> Cc: Greg Kroah-Hartman , Mathias Nyman , Ingo Molnar , tglx@linutronix.de, peterz@infradead.org, linux-usb@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org From: Lu Baolu Message-ID: <58817A87.9070305@linux.intel.com> Date: Fri, 20 Jan 2017 10:48:39 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20170119093834.GD22865@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ingo, On 01/19/2017 05:38 PM, Ingo Molnar wrote: > * Lu Baolu wrote: > >> index 8a12199..c4031b9 100644 >> --- a/arch/x86/kernel/early_printk.c >> +++ b/arch/x86/kernel/early_printk.c >> @@ -17,6 +17,7 @@ >> #include >> #include >> #include >> +#include >> #include >> #include >> #include >> @@ -381,6 +382,10 @@ static int __init setup_early_printk(char *buf) >> if (!strncmp(buf, "efi", 3)) >> early_console_register(&early_efi_console, keep); >> #endif >> +#ifdef CONFIG_EARLY_PRINTK_XDBC >> + if (!strncmp(buf, "xdbc", 4)) >> + early_xdbc_parse_parameter(buf + 4); >> +#endif >> >> buf++; >> } >> diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c >> index 9c337b0..09d4a56 100644 >> --- a/arch/x86/kernel/setup.c >> +++ b/arch/x86/kernel/setup.c >> @@ -70,6 +70,8 @@ >> #include >> #include >> >> +#include >> + >> #include