File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -538,6 +538,11 @@ static int imx_clk_scu_probe(struct platform_device *pdev)
538
538
static int __maybe_unused imx_clk_scu_suspend (struct device * dev )
539
539
{
540
540
struct clk_scu * clk = dev_get_drvdata (dev );
541
+ u32 rsrc_id = clk -> rsrc_id ;
542
+
543
+ if ((rsrc_id == IMX_SC_R_A35 ) || (rsrc_id == IMX_SC_R_A53 ) ||
544
+ (rsrc_id == IMX_SC_R_A72 ))
545
+ return 0 ;
541
546
542
547
clk -> rate = clk_hw_get_rate (& clk -> hw );
543
548
clk -> is_enabled = clk_hw_is_enabled (& clk -> hw );
@@ -554,8 +559,13 @@ static int __maybe_unused imx_clk_scu_suspend(struct device *dev)
554
559
static int __maybe_unused imx_clk_scu_resume (struct device * dev )
555
560
{
556
561
struct clk_scu * clk = dev_get_drvdata (dev );
562
+ u32 rsrc_id = clk -> rsrc_id ;
557
563
int ret = 0 ;
558
564
565
+ if ((rsrc_id == IMX_SC_R_A35 ) || (rsrc_id == IMX_SC_R_A53 ) ||
566
+ (rsrc_id == IMX_SC_R_A72 ))
567
+ return 0 ;
568
+
559
569
if (clk -> rate ) {
560
570
ret = clk_scu_set_rate (& clk -> hw , clk -> rate , 0 );
561
571
dev_dbg (dev , "restore rate %d %s\n" , clk -> rate ,
You can’t perform that action at this time.
0 commit comments