Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2049420imu; Thu, 10 Jan 2019 07:28:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN4eKNFp7vvkRCmpEzjAYrvfp+IKudOY0OjSU2++OwRk8svR7vLiggubH0ZUZdBxLpXAQ0BA X-Received: by 2002:a65:6215:: with SMTP id d21mr9806223pgv.289.1547134114482; Thu, 10 Jan 2019 07:28:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547134114; cv=none; d=google.com; s=arc-20160816; b=EzfG5ByfKMpVlTLn08C1YHsJHOLgpzB7F7/zaSxcJG6fEvrQzM+UnW7/h9nubi1FT+ hnRMbSouf9/BHyzrnPLAMZUpbQyEsTrVeFdnrkK8oXeXOwNMovfoGArgod2kWbVlwPqd ddeXmXykPKEnKQOfyOmUBJBoWQ3iv9NL7Yl2QosMLe9Lym4De/RqBLq6dp9K/gP3T7d+ 6fNnrENPbvjKEM49Ik8v0fHMmrEOOHVcyU00+/ekZCUFOKAt2TBKYfyzq3H642kZHiWp HaB3DYwm8vA9ZQWK7XFzJfXEUJ55uzeB1usE1eqrcgK1bA/17lqdqa20uzwV7H2AFKMO +HJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=TR9e2CyDjIgYxsUYHx5SvnGPS3Me8PZgMVWEhkM7NLQ=; b=0iATxHho50aRdcDna0XtWatSEoK0OUSwFg3jnJE7O7VWbOnnfv339GA1RD7YJQpBR7 o8cw/Eoi7kSiE4WqTOitAgf0xmXnnwK0vTYfrHqv650zMKKdnqtuoPAsCtWj7aYW7E6P GRyBJhyGQ/JGSvVRKP+IZW9VUCQUxYgmazbpl4xB0ryfaMXJKjtEon/A7jwqeIWtSafO pGB5O/I1ZIbrxC6h9T1vr/dwgvR1YKvDelqTq9FZq3oLl2EJ/LRQ6nyIS6UsXnl+4LkS pyGNDybZMeYC1UvTxSHctGY/gpYnIoEutMCiCBq8BCwWA5kcFMHaHHONpw3OutKIuZor wuKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si45703241pgm.487.2019.01.10.07.28.17; Thu, 10 Jan 2019 07:28:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729662AbfAJP0t (ORCPT + 99 others); Thu, 10 Jan 2019 10:26:49 -0500 Received: from mx2.suse.de ([195.135.220.15]:34518 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728181AbfAJP0t (ORCPT ); Thu, 10 Jan 2019 10:26:49 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E9BA0AF9A; Thu, 10 Jan 2019 15:26:47 +0000 (UTC) From: Andreas Schwab 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 Subject: Re: [PATCH] tty/serial: emit CR before NL in RISC-V SBL console References: <20181204135507.3706-1-anup@brainfault.org> <20181204135507.3706-2-anup@brainfault.org> X-Yow: Why is everything made of Lycra Spandex? Date: Thu, 10 Jan 2019 16:26:46 +0100 In-Reply-To: (Anup Patel's message of "Thu, 10 Jan 2019 20:46:51 +0530") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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."