Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp896798imu; Fri, 7 Dec 2018 10:33:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wd1/y/Z1ANIeF/EQeb7VPGjE2ojp5wpNoim/Y3UkuHLbITRfdFTsoirWS6HwTdNAePBdiF X-Received: by 2002:a17:902:925:: with SMTP id 34mr3044161plm.14.1544207625337; Fri, 07 Dec 2018 10:33:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544207625; cv=none; d=google.com; s=arc-20160816; b=Wp2mKyhL9UokjAvlGnu8ftPK7gmK8mAxX4gGXGkGdopSBZgX8yxBnUocSH51/lziBh r+I0dqQSG2HfoTl2spFZxPw2HTsJ7DXBRfX1XjwJbR5La83kez6xccwlP49lolC+GIkk wg123yA8ESggpO/3+XUiFQR47FUDBZOluz0wFY6PtCoE89ylammOLp83JpZibY8ZnROg H3AyjWJJvclYOOW4ZRKgYv5STlZONa4iQBmbZ9HlrnO3NKc/SDrmv1jtftLAS5269+qm BopNcCVCgAYIWU6MNznUeuxlf2fXcF00lTJelWJLtofdURQlEvVv/LdZ4DrJKl0v6KsE vi1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=w45WFGc5WHZjrvRR2qUEQHnRZeD5KN/awL+SD2+Lq9k=; b=CA9SGHy12Cs2nLs6a3q1JDeyxZnyAd8K3ZuFjdb8q5raMxPpkV8uProbYIqyFvrFKa qaaoSZXoePc8SjI/jvuSvJw/E5SAJSFQgr32aD86tbllwa1xWpRK1dUi8cq36EagzcRh cikXx0yqKsAAy2QgK6nGYKrUaoxFG8Hk2yTHNcQ3VPKq+qcpPRGg3kDRyblUgf/6a81I 8pL1Fxk0a5jml6TVG82rAT2RjBJ1mlNcdpeP3pL74bg6qe99089YAtk+AQpHojVZEFs1 1uvNpYi1ZU9dFloOh1TLwikF/LXsRY+jYcDcNpx+AQWL7G8eZrBptNX2fUMAt5MoktxA csiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="GFcDAW/h"; 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 s80si2333942pfa.130.2018.12.07.10.33.29; Fri, 07 Dec 2018 10:33:45 -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; dkim=pass header.i=@sifive.com header.s=google header.b="GFcDAW/h"; 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 S1726291AbeLGSaj (ORCPT + 99 others); Fri, 7 Dec 2018 13:30:39 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:44185 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726240AbeLGSad (ORCPT ); Fri, 7 Dec 2018 13:30:33 -0500 Received: by mail-pf1-f196.google.com with SMTP id u6so2312949pfh.11 for ; Fri, 07 Dec 2018 10:30:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=w45WFGc5WHZjrvRR2qUEQHnRZeD5KN/awL+SD2+Lq9k=; b=GFcDAW/hHKqxzPJLVGy83GWnQ8oufMB8VRQy4pg4ErWwbCKnCNfG5U57Zk7R6z+sJB j8kHhZ57UwCKSzxKJ1PbaYvLrMqzc/Dfyjks9moI5hjvyUim9RYyyutlSl88dn9B6oYy jQ2a2TgWNgAqdTp95D3H/R1dqoolFSt/T8u1UOBdvPKHFQ/ooa0N3EMbfIKXwpBbByGo gbpW8ESVyDQbYejrzw5BA5L2ZxTfeYjIbpq2cs+BTP+wz6+gU0Y3tFFqFg0yIODJjocK 2qyIsJJA0CSdRa8+V6RPtdFK/ukmf6EBp/lcNrn3sye+PGP8tTkoDik3KHCZPnvghnPk p8NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=w45WFGc5WHZjrvRR2qUEQHnRZeD5KN/awL+SD2+Lq9k=; b=W/GmhFrOnBoCTuVXCJacAIxPdHd1WvoXXUBoo6y97vMIGKYBoCo0cHge7006rL58aE +pDXbVymzU8yox8OPxbZPj6cLGK9CY94+JtbrRTPU12LJmN92EzdXLB/m3Erfq+IO60L 5EWkrzgGPAqKwf0Delp1btce5Fvbdpd0qatCdP8xsLjEtZdhW+/jiB3OiIpAU32jdydb DQPbnGqZSb/WPDDQOAEzUeFDGvEMtgHmDN6HRDmvq6zdX3PROOakcNsRL3rE/KFSaoDh gaD8oK7C/WhPV5DQV1Fm3t0GiwKfgfug7AfoT3iN58z27N8V3mClcxVlk8hUm0GdFiF2 od7A== X-Gm-Message-State: AA+aEWZ9u/dD5xTcHItEze4oD5v/BF5i8egp2H/QGTrJvI1juo+jMvWC LMRa2D8IjxNa/A4Wmo7bEJRLi1FQcI0= X-Received: by 2002:a63:f047:: with SMTP id s7mr2858590pgj.441.1544207432846; Fri, 07 Dec 2018 10:30:32 -0800 (PST) Received: from localhost ([216.3.10.7]) by smtp.gmail.com with ESMTPSA id s21sm9626847pfk.133.2018.12.07.10.30.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Dec 2018 10:30:32 -0800 (PST) Date: Fri, 07 Dec 2018 10:30:32 -0800 (PST) X-Google-Original-Date: Fri, 07 Dec 2018 10:21:43 PST (-0800) Subject: Re: [PATCH 3/3] RISC-V: Remove EARLY_PRINTK support In-Reply-To: <20181204135507.3706-4-anup@brainfault.org> CC: Greg KH , jslaby@suse.com, aou@eecs.berkeley.edu, atish.patra@wdc.com, Christoph Hellwig , robh@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, anup@brainfault.org From: Palmer Dabbelt To: anup@brainfault.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 04 Dec 2018 05:55:07 PST (-0800), anup@brainfault.org wrote: > The EARLY_PRINTK using SBI console calls is not required > any more because we now have RISC-V SBI support in generic > earlycon framework. > > Signed-off-by: Anup Patel > --- > arch/riscv/Kconfig.debug | 2 -- > arch/riscv/kernel/setup.c | 28 ---------------------------- > 2 files changed, 30 deletions(-) > > diff --git a/arch/riscv/Kconfig.debug b/arch/riscv/Kconfig.debug > index c5a72f17c469..e69de29bb2d1 100644 > --- a/arch/riscv/Kconfig.debug > +++ b/arch/riscv/Kconfig.debug > @@ -1,2 +0,0 @@ > -config EARLY_PRINTK > - def_bool y > diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c > index 2c290e6aaa6e..fc8006a042eb 100644 > --- a/arch/riscv/kernel/setup.c > +++ b/arch/riscv/kernel/setup.c > @@ -35,31 +35,9 @@ > #include > #include > #include > -#include > #include > #include > > -#ifdef CONFIG_EARLY_PRINTK > -static void sbi_console_write(struct console *co, const char *buf, > - unsigned int n) > -{ > - int i; > - > - for (i = 0; i < n; ++i) { > - if (buf[i] == '\n') > - sbi_console_putchar('\r'); > - sbi_console_putchar(buf[i]); > - } > -} > - > -struct console riscv_sbi_early_console_dev __initdata = { > - .name = "early", > - .write = sbi_console_write, > - .flags = CON_PRINTBUFFER | CON_BOOT | CON_ANYTIME, > - .index = -1 > -}; > -#endif > - > #ifdef CONFIG_DUMMY_CONSOLE > struct screen_info screen_info = { > .orig_video_lines = 30, > @@ -219,12 +197,6 @@ static void __init setup_bootmem(void) > > void __init setup_arch(char **cmdline_p) > { > -#if defined(CONFIG_EARLY_PRINTK) > - if (likely(early_console == NULL)) { > - early_console = &riscv_sbi_early_console_dev; > - register_console(early_console); > - } > -#endif > *cmdline_p = boot_command_line; > > parse_early_param(); Reviewed-by: Palmer Dabbelt