Commit 861d21c
pmdomain:rockchip: Fix init genpd as GENPD_STATE_ON before regulator ready
RK3588_PD_NPU initialize as GENPD_STATE_ON before regulator ready.
rknn_iommu initlized success and suspend RK3588_PD_NPU. When rocket
driver register, it will resume rknn_iommu.
If regulator is still not ready at this point, rknn_iommu resume fail,
pm runtime status will be error: -EPROBE_DEFER.
This patch set pmdomain to off if it need regulator during probe,
consumer device can power on pmdomain after regulator ready.
Signed-off-by: Frank Zhang <[email protected]>
Tested-by: Chaoyi Chen <[email protected]>
Tested-by: Quentin Schulz <[email protected]>
Reviewed-by: Sebastian Reichel <[email protected]>
Fixes: db6df2e ("pmdomain: rockchip: add regulator support")
Cc: [email protected]
Signed-off-by: Ulf Hansson <[email protected]>1 parent 3de4996 commit 861d21c
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
882 | 892 | | |
883 | 893 | | |
884 | 894 | | |
| |||
0 commit comments