Skip to content
Snippets Groups Projects
Commit 2b4f1e59 authored by Sebastian Reichel's avatar Sebastian Reichel
Browse files

[MERGED] pmdomain: rockchip: forward rockchip_do_pmu_set_power_domain errors


Currently rockchip_do_pmu_set_power_domain prints a warning if there
have been errors turning on the power domain, but it does not return
any errors and rockchip_pd_power() tries to continue setting up the
QOS registers. This usually results in accessing unpowered registers,
which triggers an SError and a full system hang.

This improves the error handling by forwarding the error to avoid
kernel panics.

Reviewed-by: default avatarHeiko Stuebner <heiko@sntech.de>
Tested-by: Adrian Larumbe <adrian.larumbe@collabora.com> # On Rock 5B
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent a7e22330
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment