Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp531603ybz; Fri, 17 Apr 2020 05:43:27 -0700 (PDT) X-Google-Smtp-Source: APiQypIN1xL72npXM5X8roZG5KQhqpShnEU3PQy9l4ayyzAvaJlvuvcIDqv0qIrzXSSr3rptCbEU X-Received: by 2002:a17:906:2488:: with SMTP id e8mr2811090ejb.157.1587127406987; Fri, 17 Apr 2020 05:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587127406; cv=none; d=google.com; s=arc-20160816; b=F/hSckvbYd2vYRiufVSpfPeZOKQQnX+IsXcKK1C6uiJSeRDeA2xbdd+/zjZxzd+MJ9 1G3ImDnWfzu1dE0RmdeiIkc9q9OJM2Ey/xmAko1W4H+GFzszoY+zWrGEWehqpYCxocFv WZJpJznU7MtVU0fQ3VBVKt2fCErQf/d5dzbyRw/1XyR9bAJJlw8rhrkHoazuZGsQo49Z 8KcaV5TN26SZjFMGZkTwHMc6df1sq5YmnPTJXgvFcdC5BtmoNaK14HXB3R3nJN3eTp7+ tP1kUjh77OVQNt98H3ow6WUlMZiqyaUuCMMaWz2C/q1wfoNpTGf0SJfU4HQXqTXb7CdE wQ4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5d/+Mz/K41+l5nHe9+HnUq2CLogiiEQD3UQf60PXu/k=; b=kiuwuwNKTcUPYVW4+ErYx0VH9itXoRlD+uFfatYQ7ZvGfToWVzqJKkzaj9rMEuXZuC XDqW/Xh84GGuJgepc5oRBiU9PrEwPukdSZmzCwyxiQ6sntqEf5LHb+TNG5xawDScfaJJ CMiCYX6tFlsUZIYgWMDSvQOGD8hfXiyFQM3HKHILFAlA9k7+GbKIiuVuMZ049BIOFlna n7whSFWMzdhAuabUG8ta0fET8GhiIibOpU5g7IdB4e/mDNC6z/TiQugvjB6ciTx40c39 8Tcc97D2jwp+zBVwXU2FITK2It49fa0DXVfbHuosY/tzVQTtck0wwT/PWMkShzpPAliT tuAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=rI7NENBD; 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 n16si3384457ejl.134.2020.04.17.05.43.03; Fri, 17 Apr 2020 05:43:26 -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; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=rI7NENBD; 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 S1729745AbgDQMlG (ORCPT + 99 others); Fri, 17 Apr 2020 08:41:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727897AbgDQMlF (ORCPT ); Fri, 17 Apr 2020 08:41:05 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C35EC061A0C for ; Fri, 17 Apr 2020 05:41:05 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id g13so840505wrb.8 for ; Fri, 17 Apr 2020 05:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5d/+Mz/K41+l5nHe9+HnUq2CLogiiEQD3UQf60PXu/k=; b=rI7NENBDqfn/fQ7qMbOy7mITJfkQZEgaC2hsDwXL+0KFHV3dDjMAv2g3Jg61nEmyy6 8ANMlYPUB/U1teG3lMdroPrkMNaHEAcZuqQlz64TkXMTB23LkwaBwjJgSomws8ogA52Z XO0/dACcTP0sFZuFnhLB94gL5IKx/+KKdwRGWoQ41L43VgH1XL0sk7TJnEyVHMgQX4l5 CmweALmDi9EHLblVMek5HkyTylDkLdtzDp4iDrvtL1t7/rmTD3clnDBLUD80BVmdOQre cCI2lzKvXTlC7kQHsFC/qUAtpETJqhlMaMkes8BMTqNdcFQUjXfz11aWAldnMRu9F/dG 6Mmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5d/+Mz/K41+l5nHe9+HnUq2CLogiiEQD3UQf60PXu/k=; b=YzyqfL7IHlnppIY0LxPGkEWaCS0INSJTkfPATTBwkX/69XYI38o+haXRSTsDff+8b+ 7TlyXEpLHoRdjcVNxomNMKPBTpFZEf2a1y3LurwMJ0ZkBgQUB5l5JBI42X5t6x/RD5Op 4quJ5QGQE5SWyacKDz+S5FdVovnZPG4/WOE+YyNa/HMjMglUej5mxX1diZ+jl9+gERtq +FK03tT+XZt73M6D1VJtRjzvU9IZPGJtgLyxwGY8xWWni+Jb/SvvJ8lYIKFwFzo6O3w3 p4dKHZWsXjzVO9T0nwfbpu3lD2BGa1WOHJlKv3lxtXWM/mBO1O3QgUoPuxMVuVvf+GQk cDRA== X-Gm-Message-State: AGi0PubadctFaqGXSmo4WAbI5N4JG1+R5lJQXVdbLrOLAJKaV9yU+JmP 3rE34AaiqbqR5uw/xz/fYgoLHHFJneXGKQXJMNnkfw== X-Received: by 2002:adf:c601:: with SMTP id n1mr3534017wrg.381.1587127264046; Fri, 17 Apr 2020 05:41:04 -0700 (PDT) MIME-Version: 1.0 References: <20200417121222.156422-1-wangkefeng.wang@huawei.com> <20200417121222.156422-2-wangkefeng.wang@huawei.com> In-Reply-To: <20200417121222.156422-2-wangkefeng.wang@huawei.com> From: Anup Patel Date: Fri, 17 Apr 2020 18:10:51 +0530 Message-ID: Subject: Re: [PATCH 2/3] tty: riscv: Using RISCV_SBI_V01 instead of RISCV_SBI To: Kefeng Wang Cc: Atish Patra , Paul Walmsley , Palmer Dabbelt , Albert Ou , "linux-kernel@vger.kernel.org List" , linux-riscv Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 17, 2020 at 5:40 PM Kefeng Wang wrote: > > 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 > Looks good to me. Reviewed-by: Anup Patel Regards, Anup