Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752338AbbK3C1s (ORCPT ); Sun, 29 Nov 2015 21:27:48 -0500 Received: from conssluserg003.nifty.com ([202.248.44.41]:17319 "EHLO conssluserg003-v.nifty.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751544AbbK3C1q (ORCPT ); Sun, 29 Nov 2015 21:27:46 -0500 X-Nifty-SrcIP: [209.85.160.172] MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 30 Nov 2015 11:27:41 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: The console log is doubled if earlycon is enabled From: Masahiro Yamada To: Andy Shevchenko Cc: "linux-serial@vger.kernel.org" , Linux Kernel Mailing List , Greg Kroah-Hartman , Peter Hurley , Rob Herring Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1036 Lines: 36 Hi Andy, 2015-11-29 11:30 GMT+09:00 Andy Shevchenko : > On Fri, Nov 27, 2015 at 12:21 PM, Masahiro Yamada > wrote: >> Hi, >> >> >> If I add "earlycon" to the kernel parameter, the log message >> on the earlycon is also displayed to the regular console. >> In other words, the same log messages are displayed twice. >> >> I noticed this problem on v4.4-rc1. >> It has not been fixed in the mainline yet, I think. >> >> Anybody who has a clue? >> (I have not done git-bisect yet.) > > Does adding the following line in > drivers/tty/serial/8250/8250_early.c:: early_serial8250_setup() fix > the issue? > > device->con->flags &= ~CON_PRINTBUFFER; No. I tried that, but it did not fix the problem. -- Best Regards Masahiro Yamada -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/