Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp503740ybz; Fri, 17 Apr 2020 05:14:51 -0700 (PDT) X-Google-Smtp-Source: APiQypLHUAE8xHX3yaaJrEy30e26oq0Txsc1iOxj2UOI5FbxX+WzdK/305Z/M3J4JK74PuU02Rk2 X-Received: by 2002:a17:907:2107:: with SMTP id qn7mr2700546ejb.316.1587125691083; Fri, 17 Apr 2020 05:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587125691; cv=none; d=google.com; s=arc-20160816; b=M7H7MzFT2J31MfSaaQ0eazoR6OsxEgBuSYNcFMOyi77mSGJFq9vBnvmOuNipmXqFC9 +yClzxEEQj9py1JSYc68elpN/CcPg0L75/0mSByK8JwIyFb41ZnDs5RDpp/VAIe0BHLe Tbs5tPJynC+titHPmcGvoSpsGtIBDJUcMqno9xLjm40YtxYqFtXlvfsvBfWcbUrlcxXf mJLwP9DoZhGlVodlCEKe4KhCOv383seeoV4jnSkANacERmfa65sMqIE4q5QK8bD0tTSW g06FPZbUZ+i2mQkBr7OQ6ebYjH3qi/druhBQbKMBDgPeAgbw83OX7RAYXL7L5WzVNe7l gTPg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=haLa4hYj8h6BU8HmQ49Pw6Y/ytTHs+zwx1N1WWfthdE=; b=eWc/nO2JMEXC0gaN3MOJG8c0r1oyn3flEER5st0UtniB88H4ocVDL+QwzfMlp24Mo7 bEWJEByeqZV755SiP9q81SfOGicdNcmkLI2KXrCKyH5gtkcMsGyDWdYEjsL1DAxtesMg u2zBJ/NYtmlQ7EuYqyNSSKQO2Xl1CcVUsNmAR+J+cZhBZnUXUTBetPvZuPcwx2sWAIg+ qWAQ7USBSDJjeVTpNBwr5dkW8TS2eI/NQg+jc4mZqfuxdQ90VlM9Wxg2l9eLlYHM7/tV EtQf6ZHTQ6YRcIxFfgvETFWZXpfvJATMs9Nnxyan2bTH6kJxPr5fH4kgA5HF7OR9MEKu f28w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si2538942edg.380.2020.04.17.05.14.27; Fri, 17 Apr 2020 05:14:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728444AbgDQMKw (ORCPT + 99 others); Fri, 17 Apr 2020 08:10:52 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2353 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726050AbgDQMKq (ORCPT ); Fri, 17 Apr 2020 08:10:46 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id A0C9FB52C93129D961C4; Fri, 17 Apr 2020 20:10:44 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Fri, 17 Apr 2020 20:10:36 +0800 From: Kefeng Wang To: , Paul Walmsley , "Palmer Dabbelt" , Albert Ou , , CC: Kefeng Wang Subject: [PATCH 2/3] tty: riscv: Using RISCV_SBI_V01 instead of RISCV_SBI Date: Fri, 17 Apr 2020 20:12:21 +0800 Message-ID: <20200417121222.156422-2-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200417121222.156422-1-wangkefeng.wang@huawei.com> References: <20200417121222.156422-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As shown in SBI v0.2, the legacy console SBI functions (sbi_console_getchar() and sbi_console_putchar()) are expected to be deprecated; they have no replacement. Let's HVC_RISCV_SBI and SERIAL_EARLYCON_RISCV_SBI depends on RISCV_SBI_V01. Fixes: efca13989250 ("RISC-V: Introduce a new config for SBI v0.1") Signed-off-by: Kefeng Wang --- drivers/tty/hvc/Kconfig | 2 +- drivers/tty/serial/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/hvc/Kconfig b/drivers/tty/hvc/Kconfig index 31b7e1b03749..d1b27b0522a3 100644 --- a/drivers/tty/hvc/Kconfig +++ b/drivers/tty/hvc/Kconfig @@ -88,7 +88,7 @@ config HVC_DCC config HVC_RISCV_SBI bool "RISC-V SBI console support" - depends on RISCV_SBI + depends on RISCV_SBI_V01 select HVC_DRIVER help This enables support for console output via RISC-V SBI calls, which diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 0aea76cd67ff..adf9e80e7dc9 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig @@ -86,7 +86,7 @@ config SERIAL_EARLYCON_ARM_SEMIHOST config SERIAL_EARLYCON_RISCV_SBI bool "Early console using RISC-V SBI" - depends on RISCV_SBI + depends on RISCV_SBI_V01 select SERIAL_CORE select SERIAL_CORE_CONSOLE select SERIAL_EARLYCON -- 2.20.1