From patchwork Wed May 20 06:11:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kongou Hikari X-Patchwork-Id: 1294244 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=nucleisys.com Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49Rqv72bdTz9sPK for ; Wed, 20 May 2020 21:16:19 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 891AC81E99; Wed, 20 May 2020 13:15:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=nucleisys.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id C3ED481E44; Wed, 20 May 2020 08:13:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from out28-97.mail.aliyun.com (out28-97.mail.aliyun.com [115.124.28.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 85D0381547 for ; Wed, 20 May 2020 08:13:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=nucleisys.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=hikari@nucleisys.com X-Alimail-AntiSpam: AC=CONTINUE; BC=0.1714944|-1; CH=green; DM=|CONTINUE|false|; DS=CONTINUE|ham_system_inform|0.00678251-5.9052e-05-0.993158; FP=0|0|0|0|0|-1|-1|-1; HT=e02c03312; MF=hikari@nucleisys.com; NM=1; PH=DS; RN=1; RT=1; SR=0; TI=SMTPD_---.Hb1D-DX_1589955186; Received: from softserver(mailfrom:hikari@nucleisys.com fp:SMTPD_---.Hb1D-DX_1589955186) by smtp.aliyun-inc.com(10.147.42.198); Wed, 20 May 2020 14:13:06 +0800 From: Kongou Hikari To: u-boot@lists.denx.de Subject: [PATCH] serial: Corrected riscv_sbi console flag to ensure it loads at first time Date: Wed, 20 May 2020 14:11:03 +0800 Message-Id: <20200520061103.1551-1-hikari@nucleisys.com> X-Mailer: git-send-email 2.17.1 X-Mailman-Approved-At: Wed, 20 May 2020 13:15:05 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Kongou Hikari --- arch/riscv/dts/nuclei-hbird.dts | 1 - drivers/serial/serial_riscv_sbi.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/dts/nuclei-hbird.dts b/arch/riscv/dts/nuclei-hbird.dts index 39d76b63ba..aea6719b24 100644 --- a/arch/riscv/dts/nuclei-hbird.dts +++ b/arch/riscv/dts/nuclei-hbird.dts @@ -57,7 +57,6 @@ }; console { - u-boot,dm-pre-reloc; compatible = "sbi,console"; }; diff --git a/drivers/serial/serial_riscv_sbi.c b/drivers/serial/serial_riscv_sbi.c index add11be04e..5551b6fd44 100644 --- a/drivers/serial/serial_riscv_sbi.c +++ b/drivers/serial/serial_riscv_sbi.c @@ -101,4 +101,5 @@ U_BOOT_DRIVER(serial_riscv_sbi) = { .id = UCLASS_SERIAL, .of_match = serial_riscv_sbi_ids, .ops = &serial_riscv_sbi_ops, + .flags = DM_FLAG_PRE_RELOC, };