mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00

It seems that current implementation doesn't fail on fdt_mpxy_init(), because platforms might not have any MPXY devices. In fact, if there are no MPXY devices, fdt_driver_init_all() will return SBI_OK. More importantly, if there is any MPXY device which fails the initialization, OpenSBI must check the error code and stop the booting. Thus, this commit adds the return value for fdt_mpxy_init(). Signed-off-by: Alvin Chang <alvinga@andestech.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20250430091007.3768180-1-alvinga@andestech.com Signed-off-by: Anup Patel <anup@brainfault.org>
27 lines
418 B
C
27 lines
418 B
C
/*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2024 Ventana Micro Systems Inc.
|
|
*
|
|
* Authors:
|
|
* Anup Patel <apatel@ventanamicro.com>
|
|
*/
|
|
|
|
#ifndef __FDT_MPXY_H__
|
|
#define __FDT_MPXY_H__
|
|
|
|
#include <sbi/sbi_types.h>
|
|
#include <sbi_utils/fdt/fdt_driver.h>
|
|
|
|
#ifdef CONFIG_FDT_MPXY
|
|
|
|
int fdt_mpxy_init(const void *fdt);
|
|
|
|
#else
|
|
|
|
static inline int fdt_mpxy_init(const void *fdt) { return 0; }
|
|
|
|
#endif
|
|
|
|
#endif
|