* [PATCH v1] HACK: earlyprintk: Allow nocfg and keep together
@ 2018-01-19 17:35 Andy Shevchenko
2018-01-19 17:43 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2018-01-19 17:35 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, linux-clk; +Cc: Andy Shevchenko
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
arch/x86/kernel/early_printk.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/early_printk.c b/arch/x86/kernel/early_printk.c
index 7e07427df3f4..9606e45da124 100644
--- a/arch/x86/kernel/early_printk.c
+++ b/arch/x86/kernel/early_printk.c
@@ -204,7 +204,7 @@ static __init void early_serial_init(char *s)
* Lastly, initialize the hardware
*/
if (*s) {
- if (strcmp(s, "nocfg") == 0)
+ if (strncmp(s, "nocfg", 5) == 0)
/* Sometimes, we want to leave the UART alone
* and assume the BIOS has set it up correctly.
* "nocfg" tells us this is the case, and we
@@ -320,7 +320,7 @@ static __init void early_pci_serial_init(char *s)
* Lastly, initialize the hardware
*/
if (*s) {
- if (strcmp(s, "nocfg") == 0)
+ if (strncmp(s, "nocfg", 5) == 0)
/* Sometimes, we want to leave the UART alone
* and assume the BIOS has set it up correctly.
* "nocfg" tells us this is the case, and we
--
2.15.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1] HACK: earlyprintk: Allow nocfg and keep together
2018-01-19 17:35 [PATCH v1] HACK: earlyprintk: Allow nocfg and keep together Andy Shevchenko
@ 2018-01-19 17:43 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2018-01-19 17:43 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, linux-clk
On Fri, 2018-01-19 at 19:35 +0200, Andy Shevchenko wrote:
Sorry, noise.
I will send a proper one soon.
--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-19 17:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-19 17:35 [PATCH v1] HACK: earlyprintk: Allow nocfg and keep together Andy Shevchenko
2018-01-19 17:43 ` Andy Shevchenko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.