summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNam Cao <[email protected]>2024-02-22 09:16:19 +0100
committerAnup Patel <[email protected]>2024-02-22 18:19:01 +0530
commit741e941cb13c79c6355a98957d7fe6291f262cb5 (patch)
treedda9fb477531902f09bd475d1cb1f763eb1b0d2c /include
parent3edf0447df9cb5e63f5f584ab97357f3c5aa0fbf (diff)
platform: starfive: call starfive_jh7110_inst_init() in pm_reset_init()
The function starfive_jh7110_inst_init() initialize some power management unit address and clock addresses, needed for the reset driver. It doesn't do anything else, and also the reset driver doesn't work without calling this function. Thus, it does not make much sense that this function is independent from pm_reset_init(). Delete the separate call to starfive_jh7110_inst_init(), and instead just call this function inside pm_reset_init(). Doing this also fixes another problem: if starfive_jh7110_inst_init() returns an error code, it gets propagated to final_init() and OpenSBI hangs. This hang is not necessary, because failures within starfive_jh7110_inst_init() only mean OpenSBI cannot perform reboot or shutdown, but the system can still function normally. Signed-off-by: Nam Cao <[email protected]> Tested-by: Minda Chen <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions