[RFC PATCH 0/2] system reset rework to list, priority
Nikita Shubin
nikita.shubin at maquefel.me
Wed Sep 29 02:41:49 PDT 2021
From: Nikita Shubin <n.shubin at yadro.com>
Hi Anup.
I decided to go as separate proposal for system reset, as i don't think
da9063 is really connected to this one.
Let's rework our current sbi_system reset to support multiply reset
handlers.
However there are some things to discuss. If we want priority handling like in Linux,
we need separate lists for each reset type and sort them on insertions.
If we go the way like in the second patch no separate lists are needed but we will lack
the ability to call them in chain.
So what are your thoughts ?
Nikita Shubin (2):
lib: sbi: convert reset to list
lib: sbi: add priority for reset handler
include/sbi/sbi_system.h | 13 +++++--
lib/sbi/sbi_init.c | 5 ++-
lib/sbi/sbi_system.c | 50 +++++++++++++++++++--------
lib/utils/reset/fdt_reset_gpio.c | 2 +-
lib/utils/reset/fdt_reset_sunxi_wdt.c | 2 +-
lib/utils/reset/fdt_reset_thead.c | 2 +-
lib/utils/sys/htif.c | 2 +-
lib/utils/sys/sifive_test.c | 2 +-
platform/kendryte/k210/platform.c | 2 +-
platform/nuclei/ux600/platform.c | 2 +-
10 files changed, 58 insertions(+), 24 deletions(-)
--
2.31.1
More information about the opensbi
mailing list