All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 4/8] riscv: Add board_quiesce_devices stub
Date: Thu, 19 Apr 2018 17:49:19 +0200	[thread overview]
Message-ID: <20180419154923.70719-5-agraf@suse.de> (raw)
In-Reply-To: <20180419154923.70719-1-agraf@suse.de>

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 <agraf@suse.de>
---
 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;
-- 
2.12.3

  parent reply	other threads:[~2018-04-19 15:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-19 15:49 [U-Boot] [PATCH v2 0/8] riscv: Enable efi_loader support Alexander Graf
2018-04-19 15:49 ` [U-Boot] [PATCH v2 1/8] riscv: Add setjmp/longjmp code Alexander Graf
2018-04-19 15:49 ` [U-Boot] [PATCH v2 2/8] riscv: Enable function sections Alexander Graf
2018-04-19 15:49 ` [U-Boot] [PATCH v2 3/8] riscv: Add EFI application infrastructure Alexander Graf
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3F6B78B450@ATCPCS16.andestech.com>
2018-04-23  5:54     ` 陳建志
2018-04-23  5:59       ` Alexander Graf
2018-04-19 15:49 ` Alexander Graf [this message]
2018-04-19 15:49 ` [U-Boot] [PATCH v2 5/8] efi_loader: Use EFI_CACHELINE_SIZE in the image loader too Alexander Graf
2018-04-19 15:49 ` [U-Boot] [PATCH v2 6/8] distro: Extend with RISC-V defines Alexander Graf
2018-04-19 17:19   ` Heinrich Schuchardt
2018-04-19 17:23     ` Alexander Graf
2018-04-19 19:44     ` Heinrich Schuchardt
2018-04-19 21:53       ` Alexander Graf
2018-04-19 15:49 ` [U-Boot] [PATCH v2 7/8] riscv: nx25: Enable distro boot Alexander Graf
2018-04-19 15:49 ` [U-Boot] [PATCH v2 8/8] efi_loader: Enable RISC-V support Alexander Graf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180419154923.70719-5-agraf@suse.de \
    --to=agraf@suse.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.