Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8295564imu; Tue, 4 Dec 2018 06:15:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/WPldZiRdDHBs1GvjkzPaHQAf+RwzQ/YVxfCY7h+0fLnoXlIB2nXyNLsW1mITaiI8MhXZF+ X-Received: by 2002:a17:902:1005:: with SMTP id b5mr20327493pla.310.1543932917250; Tue, 04 Dec 2018 06:15:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543932917; cv=none; d=google.com; s=arc-20160816; b=FYS/J6sMdXhgh3DC3duxnFEqMiWSJP5i4swtkc71E6A+FovbHkMSQ/KgB6xZM8B7XZ lS29NLBxuSVnLlz7g7LhyjB8OJMUAa6TWzi94eDuRR9W+1uwE8yMirVTcOz9JtUucQxq D83bmARS/t7oEwCbFlCgkbpS2XNgUT4OywXUm47Rd6ZJO+JzKg/pZlbndSuR8SMJjT7k QJwirl7zt0u0znVIv+xL6jEL+z/S/GkK2znuxhpUdLD0qtZJEkPXTyGgI57xjnfuOHdJ sGKS6mnS34Xw/6KfNOaWbSgdhuKnTCvieIiaIqabipN3hc/t/gVBmcKgHSShqOsN0ddy 4/GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=JjE3m3KhoW/fupLlyitIScJqRKLQdmncQOfWLq2YHj4=; b=eum8a5KIYot5OvvdUE3y4n4yR3NXZFjQBpVztpiWWfQdtQ/Y08jW+JjKGBHhuaLM4e Hc+DXxDXN60EHndBy765ydVAHuJZLWUkRxddmd31T+RIcXxVEhPPZWbacPmn4/jfS4Jd 0XZ1Nz+qoIReSeD+P/1Bc5EGfuuQxb17jfYMZEX4LnrttkmxKOExl3zMxFVy2YCHFdez 2Y+pd+HUpStQvg/JeUH5aqDKJUrMb/SXTxZlKuUTXubKeJsow6MFWKXGAAcW081yvZPR YDZwI12k06UfunCUc+xnz7IgYsyrbQ5w+AWcHsBw/ppJB+ky75CGXMURUwKCZZ5cmn/X H0OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=ayXCV5tX; 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 f11si16709842plo.254.2018.12.04.06.15.01; Tue, 04 Dec 2018 06:15:17 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=ayXCV5tX; 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 S1726502AbeLDOL3 (ORCPT + 99 others); Tue, 4 Dec 2018 09:11:29 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:40648 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726400AbeLDOL2 (ORCPT ); Tue, 4 Dec 2018 09:11:28 -0500 Received: by mail-pg1-f195.google.com with SMTP id z10so7419557pgp.7 for ; Tue, 04 Dec 2018 06:11:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JjE3m3KhoW/fupLlyitIScJqRKLQdmncQOfWLq2YHj4=; b=ayXCV5tXDBvefnE96niiHdR1lxYBaQDf/OrEr6JpIHqyUIcgHz5rwM5VBe5W+Q30aw pNA5lzvZNDJnqOyz/XFSRdDbmsr4rfCajEGmZNNfUB54sUfcd3+HqGvFlmazQLbDcSKx GgWKvD7lrGXYCFsFPeJFtaF8nGrbSG9pes/pGxJjRisFIBDZNp6QxJfJVoP/d+KsvYJA QTPbfCRrnadMdcOgaZnlNWWJtB0bbbF6mzUuh0E1V9XuZIAJtrrEkeiiHdbwnjSzpn4/ cRtYiHgzNdZFjt0lHdFyWuGcC8FVw7Ilr3vwewmCp4RhaJbw/GXlPlzthQDkdomd+7VF l5Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JjE3m3KhoW/fupLlyitIScJqRKLQdmncQOfWLq2YHj4=; b=snxQd8ts8uyv03Kvb35BTXFJFxLW+N0c/K2Ac7xrJmSFozOdOiwWnqOSV1jmvmPVKj Ldoqy3FL1sQvPtlw/x/yRZZl5MPONsMhcQ6VXinf6BdgiXYgKAZhV+Rx9wS0VrIYaYPf S3GqKwxKpwLDE+V4aYVteth3TsekAjI3/59b24PTIp/FSyRv/pseIBvVw+Szrycabtkk 7r03fnLlzJLLNRUnrY+xe7U0AtHHywthuAmXvPlBZnQc6E/NR5xhK49FiVSvWMhYW8dQ 9ZH1B0XgViiOAX2PM3eXTZ24bbRNkZ+XihLtY7Xn6/tZj9KBGibaiaK6uFjgch2QHgKQ JYSA== X-Gm-Message-State: AA+aEWYfpa/Qs4YZ97LQ4cP5SkGaj7+WCB2cAsSKj9efWEhZl+Xu6yj7 aYGv6ODHe/OxvF2a6EaFLl+GtmeyDwbAPg== X-Received: by 2002:a63:4706:: with SMTP id u6mr15986664pga.95.1543932687281; Tue, 04 Dec 2018 06:11:27 -0800 (PST) Received: from anup-ubuntu64.qualcomm.com ([49.207.53.58]) by smtp.googlemail.com with ESMTPSA id k129sm31298884pgk.29.2018.12.04.06.11.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Dec 2018 06:11:26 -0800 (PST) From: Anup Patel To: Greg Kroah-Hartman , Jiri Slaby , Palmer Dabbelt , Albert Ou Cc: Atish Patra , Christoph Hellwig , Rob Herring , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Anup Patel Subject: [PATCH 3/3] RISC-V: Remove EARLY_PRINTK support Date: Tue, 4 Dec 2018 19:25:07 +0530 Message-Id: <20181204135507.3706-4-anup@brainfault.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181204135507.3706-1-anup@brainfault.org> References: <20181204135507.3706-1-anup@brainfault.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(); -- 2.17.1