From: Andreas Schwab Subject: Re: [PATCH] tty/serial: emit CR before NL in RISC-V SBL console Date: Thu, 10 Jan 2019 16:26:46 +0100 Message-ID: References: <20181204135507.3706-1-anup@brainfault.org> <20181204135507.3706-2-anup@brainfault.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: (Anup Patel's message of "Thu, 10 Jan 2019 20:46:51 +0530") Sender: linux-kernel-owner@vger.kernel.org To: Anup Patel Cc: Greg Kroah-Hartman , Jiri Slaby , Palmer Dabbelt , Albert Ou , Atish Patra , Christoph Hellwig , Rob Herring , linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org List" , linux-serial@vger.kernel.org List-Id: linux-serial@vger.kernel.org On Jan 10 2019, Anup Patel wrote: > Instead of doing '\n' handling here, we should do it in BBL or > OpenSBI (i.e. SBI runtime firmware) otherwise all users of > SBI_CONSOLE_PUTCHAR (namely, Linux, FreeBSD, > FreeRTOS, U-Boot S-mode, etc) will endup having '\n' > handling. I don't think the serial driver should do NLCR handling on its own, without being instructed by the tty layer. Since the earlycon does not have a tty layer, it needs to handle it explicitly. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."