Commit 3edf0447 authored by Nam Cao's avatar Nam Cao Committed by Anup Patel
Browse files

platform: starfive: return error if needed devices are not present



Jh7110's reset driver needs power management device and clock controller
device to work. Currently, the driver proceed anyway without these
devices, and invalid addresses (jh7110_inst.pmu_reg_base and
jh7110_inst.clk_reg_base) are used during reboot, which causes
unpredictable broken behaviors.

If these devices are not present, return -SBI_ENODEV.

Signed-off-by: default avatarNam Cao <namcao@linutronix.de>
Tested-by: default avatarMinda Chen <minda.chen@starfivetech.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 80ae0464
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment