File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -746,7 +746,7 @@ static int ivpu_hw_40xx_info_init(struct ivpu_device *vdev)
746
746
return 0 ;
747
747
}
748
748
749
- static int ivpu_hw_40xx_reset (struct ivpu_device * vdev )
749
+ static int ivpu_hw_40xx_ip_reset (struct ivpu_device * vdev )
750
750
{
751
751
int ret ;
752
752
u32 val ;
@@ -768,6 +768,23 @@ static int ivpu_hw_40xx_reset(struct ivpu_device *vdev)
768
768
return ret ;
769
769
}
770
770
771
+ static int ivpu_hw_40xx_reset (struct ivpu_device * vdev )
772
+ {
773
+ int ret = 0 ;
774
+
775
+ if (ivpu_hw_40xx_ip_reset (vdev )) {
776
+ ivpu_err (vdev , "Failed to reset VPU IP\n" );
777
+ ret = - EIO ;
778
+ }
779
+
780
+ if (ivpu_pll_disable (vdev )) {
781
+ ivpu_err (vdev , "Failed to disable PLL\n" );
782
+ ret = - EIO ;
783
+ }
784
+
785
+ return ret ;
786
+ }
787
+
771
788
static int ivpu_hw_40xx_d0i3_enable (struct ivpu_device * vdev )
772
789
{
773
790
int ret ;
@@ -913,7 +930,7 @@ static int ivpu_hw_40xx_power_down(struct ivpu_device *vdev)
913
930
914
931
ivpu_hw_40xx_save_d0i3_entry_timestamp (vdev );
915
932
916
- if (!ivpu_hw_40xx_is_idle (vdev ) && ivpu_hw_40xx_reset (vdev ))
933
+ if (!ivpu_hw_40xx_is_idle (vdev ) && ivpu_hw_40xx_ip_reset (vdev ))
917
934
ivpu_warn (vdev , "Failed to reset the VPU\n" );
918
935
919
936
if (ivpu_pll_disable (vdev )) {
You can’t perform that action at this time.
0 commit comments