Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2950389rwb; Fri, 9 Dec 2022 08:11:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7+P4G4zc6UAu7yVJonVwCrUmEiKcM55gxq43nQo7q1vlwW1k60nsCxriE6q1zRgUTDl9Jg X-Received: by 2002:a05:6a20:939e:b0:ac:36bd:3f74 with SMTP id x30-20020a056a20939e00b000ac36bd3f74mr9287904pzh.34.1670602301444; Fri, 09 Dec 2022 08:11:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670602301; cv=none; d=google.com; s=arc-20160816; b=GttNw7o6K3793ZNI4OGz+C0Jvjvd3ILPAuSEjoNnOD4g/Y2E8yp1YoQWPjUhyBN4xJ BkoHzCV675CXqVZMuZMMbLh9oiUiGqGqrLhTPm0+qfe5zh6CZIq9sHJ8fX+heUFFR4NF q7gRVwnl1qeLvgjoMpX+hEnhw1zJnN/zElhjxmd8/b0G6b1rM9Ei4jLHqN2j5TWwTgCa WbdJeuje/iZXRlTYslu2xgbp+XfNkJgmrCHLZ5FsniVN1DWMkhaS+P6V4n5hAxBGdjzB CtS2PdlHCYgF1KcY/gwUfYv8TV8X74KxhPYNVJMQqJA1lFOVMFcQz0B+0InAfzyr3zLi vHHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=s6ALYND/IPX0ndZNPugEnkt+c8H7XD+usIJXgCmz6HQ=; b=OwFhDsHAGTPXKPZve7sUNuGE951oGj47rA5rp19UQvNqGc1Qjsus6kP1yv+DFF0kUb ivHhol17akMvVHqdbtqRzIBx0Ukm7ZdS9UcJk/v2O6epjXCGzFPgkWEwJZkSP2cMWfyq 7VoGPJfB6PLSWm2IZsDq2cfvIdv2CwyFUSmnErGj0jKJgprewc4r9pGHEaYG3PB7M3n3 g8AyiEzBYRmtzJX5KxdzDrZlxGVjGKuoBt++vNgm3ad9Qb2hz4cIpmBPdqAnrdQwqY0L nMJCqPfGEsS9iZfx8tpOoU8JQidOiaq2Tru4R9VeP0fjz26oMZL/nGMFSxqkjRd1wyiE 1j5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l69-20020a638848000000b0046004f18c6csi1679673pgd.456.2022.12.09.08.11.31; Fri, 09 Dec 2022 08:11:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230112AbiLIPFP (ORCPT + 75 others); Fri, 9 Dec 2022 10:05:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbiLIPFM (ORCPT ); Fri, 9 Dec 2022 10:05:12 -0500 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.67.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 736C7209B1; Fri, 9 Dec 2022 07:05:06 -0800 (PST) X-QQ-mid: bizesmtp89t1670598288tzek7vk3 Received: from ubuntu.. ( [111.196.135.79]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 09 Dec 2022 23:04:47 +0800 (CST) X-QQ-SSF: 01200000002000B0C000B00A0000000 X-QQ-FEAT: ILHsT53NKPjG5kfsWPlb/E4DO94OjvdDf9wn6ttYvvCNpDY9/TDM9Ur27ag7K a+Ax5aohk1b980KZ412GaxQBoChRTv+AMSpc0cjPxse+3RraLnlsCU639j5CVj+BPHJJori Vbt2DGkCowbiBYA8NLOLGZJx6Z4e+EsHC6q48OfHeGuT3aDyUXYLgD5QC9lojnGNJv5HnnM kx7xPEIQBZTjAEoA3RfLlTZr/mtVCE+AO/IG0Kgu7uyUxaFrmX+6fDEebWyg5ObPm4nKRfs 4sjlFW1iSHbVdyKJ+YuUNwEmbLfyVO/HuUj/iS7HnGCJuh+m8uyEXkwmL1/sKtrr5peQ3iT v2BAZ+mqbzzGar3pYaRaxGHVuiPBILmUZyoUiia X-QQ-GoodBg: 0 From: Bin Meng To: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org Cc: Greg Kroah-Hartman , Jiri Slaby Subject: [PATCH v3 3/3] serial: Rename earlycon semihost driver Date: Fri, 9 Dec 2022 23:04:37 +0800 Message-Id: <20221209150437.795918-4-bmeng@tinylab.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221209150437.795918-1-bmeng@tinylab.org> References: <20221209150437.795918-1-bmeng@tinylab.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvr:qybglogicsvr3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that earlycon semihost driver works on RISC-V too, let's use a much more generic name for the driver. Signed-off-by: Bin Meng --- (no changes since v1) drivers/tty/serial/Kconfig | 12 ++++++------ drivers/tty/serial/Makefile | 2 +- .../{earlycon-arm-semihost.c => earlycon-semihost.c} | 0 3 files changed, 7 insertions(+), 7 deletions(-) rename drivers/tty/serial/{earlycon-arm-semihost.c => earlycon-semihost.c} (100%) diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index e94d1265151c..a3779472edf6 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -73,17 +73,17 @@ config SERIAL_AMBA_PL011_CONSOLE your boot loader (lilo or loadlin) about how to pass options to the kernel at boot time.) -config SERIAL_EARLYCON_ARM_SEMIHOST - bool "Early console using ARM semihosting" +config SERIAL_EARLYCON_SEMIHOST + bool "Early console using Arm compatible semihosting" depends on ARM64 || ARM || RISCV select SERIAL_CORE select SERIAL_CORE_CONSOLE select SERIAL_EARLYCON help - Support for early debug console using ARM semihosting. This enables - the console before standard serial driver is probed. This is enabled - with "earlycon=smh" on the kernel command line. The console is - enabled when early_param is processed. + Support for early debug console using Arm compatible semihosting. + This enables the console before standard serial driver is probed. + This is enabled with "earlycon=smh" on the kernel command line. + The console is enabled when early_param is processed. config SERIAL_EARLYCON_RISCV_SBI bool "Early console using RISC-V SBI" diff --git a/drivers/tty/serial/Makefile b/drivers/tty/serial/Makefile index 238a9557b487..cd9afd9e3018 100644 --- a/drivers/tty/serial/Makefile +++ b/drivers/tty/serial/Makefile @@ -6,7 +6,7 @@ obj-$(CONFIG_SERIAL_CORE) += serial_core.o obj-$(CONFIG_SERIAL_EARLYCON) += earlycon.o -obj-$(CONFIG_SERIAL_EARLYCON_ARM_SEMIHOST) += earlycon-arm-semihost.o +obj-$(CONFIG_SERIAL_EARLYCON_SEMIHOST) += earlycon-semihost.o obj-$(CONFIG_SERIAL_EARLYCON_RISCV_SBI) += earlycon-riscv-sbi.o # These Sparc drivers have to appear before others such as 8250 diff --git a/drivers/tty/serial/earlycon-arm-semihost.c b/drivers/tty/serial/earlycon-semihost.c similarity index 100% rename from drivers/tty/serial/earlycon-arm-semihost.c rename to drivers/tty/serial/earlycon-semihost.c -- 2.34.1