From patchwork Mon Apr 23 05:59:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 133950 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp614400lji; Sun, 22 Apr 2018 23:00:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/hXBlmYYUHKUSn/PPtZsRMVWfnh79Nva5qaL0pS+9EQ/IOSxJH+nesASI9uL2ktgUd2OB+ X-Received: by 10.80.181.130 with SMTP id a2mr26577906ede.113.1524463210235; Sun, 22 Apr 2018 23:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524463210; cv=none; d=google.com; s=arc-20160816; b=e6c603HsLYVV+nu24J584gxKuo/fFUiTaLEkw+BUQ5+lZUiygzbcEEvp3twV8MvjKZ JERtJC/nLF9cfOaNPrlJkZORcH17AiMDFKjwuxxyx9e/mH+UZ+HpxquhYiWd4QKQuaDD HnjeEf3DDXIGA1bOr3hT55oA9sGCiH/69XVamscufL6InsDOAQjccqAGnnebmV0XrsYX djS80UHR72d9HdMCrZ3xVvxVihjzPhrqDjDXz1tDhyw6xIVn0x4+XFpFo4QmyDCU1/zb 7PD+F55u+8I4CMBRzK6epz0K8LgDYyF9ZpSyrd7I/TfzctynSW1SOBjRhEFXh9iyXeJ8 jpZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:arc-authentication-results; bh=nubpHsVjoyXDlWDf2ClEQ7oY/3zaUgtJF0lPVvN9fyo=; b=TtAYm1hUX2r1cbaTkxO6FKNeO1b4ZbAXhOIuU59sC0mZCeC/F0Zr74O04K9RKDVepz g2i2IIgLMLx/1MDc561ukuPKTLJruR0A3DYZS7MAY7K4LNUJdMJLaqwyFO1iVjlWq7YD yI/+HX97Dfcltubmw/YJUsLY8pIkP74YOzyrXLspO/LrLhjjH694G3Ddz49Dkvgg6bJg oR6qkJvOLvTTeSKq5HFqPbZBxBn/1BiHlxC2WEzCNsRaDr3Iw4ZK/CShCUO6DBYHIvdL cQOopTZqucs+3Ispv+gO2IZXDW23KojK6DKxChuq0t27pnNm7rBxLA8ukGKVmrCFTv5o fKmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id j30si36148edc.316.2018.04.22.23.00.10; Sun, 22 Apr 2018 23:00:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id D163DC21E50; Mon, 23 Apr 2018 06:00:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 01D6EC21D8A; Mon, 23 Apr 2018 06:00:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E26F7C21DCA; Mon, 23 Apr 2018 05:59:52 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id CD65FC21D74 for ; Mon, 23 Apr 2018 05:59:51 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 6FDCDAE73; Mon, 23 Apr 2018 05:59:51 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Mon, 23 Apr 2018 07:59:46 +0200 Message-Id: <20180423055950.78818-5-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180423055950.78818-1-agraf@suse.de> References: <20180423055950.78818-1-agraf@suse.de> Cc: Heinrich Schuchardt , schwab@suse.de, Greentime Hu Subject: [U-Boot] [PATCH v3 4/8] riscv: Add board_quiesce_devices stub X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch adds an empty stub for board_quiesce_devices() which allows boards to quiesce their devices before we boot into an OS in a platform agnostic way. Signed-off-by: Alexander Graf Reviewed-by: Rick Chen --- arch/riscv/include/asm/u-boot-riscv.h | 1 + arch/riscv/lib/bootm.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/arch/riscv/include/asm/u-boot-riscv.h b/arch/riscv/include/asm/u-boot-riscv.h index 18099cd260..0b6428b1ae 100644 --- a/arch/riscv/include/asm/u-boot-riscv.h +++ b/arch/riscv/include/asm/u-boot-riscv.h @@ -17,5 +17,6 @@ int cleanup_before_linux(void); /* board/.../... */ int board_init(void); +void board_quiesce_devices(void); #endif /* _U_BOOT_RISCV_H_ */ diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c index 9242fa891a..b80274adba 100644 --- a/arch/riscv/lib/bootm.c +++ b/arch/riscv/lib/bootm.c @@ -16,6 +16,10 @@ DECLARE_GLOBAL_DATA_PTR; +__weak void board_quiesce_devices(void) +{ +} + int arch_fixup_fdt(void *blob) { return 0;