@@ -653,23 +653,25 @@ static void amd_pmc_s2idle_prepare(void)
653
653
/* Activate CZN specific RTC functionality */
654
654
if (pdev -> cpu_id == AMD_CPU_ID_CZN ) {
655
655
rc = amd_pmc_verify_czn_rtc (pdev , & arg );
656
- if (rc )
656
+ if (rc ) {
657
+ dev_err (pdev -> dev , "failed to set RTC: %d\n" , rc );
657
658
goto fail ;
659
+ }
658
660
}
659
661
660
662
/* Dump the IdleMask before we send hint to SMU */
661
663
amd_pmc_idlemask_read (pdev , pdev -> dev , NULL );
662
664
msg = amd_pmc_get_os_hint (pdev );
663
665
rc = amd_pmc_send_cmd (pdev , arg , NULL , msg , 0 );
664
666
if (rc ) {
665
- dev_err (pdev -> dev , "suspend failed\n" );
667
+ dev_err (pdev -> dev , "suspend failed: %d \n" , rc );
666
668
goto fail ;
667
669
}
668
670
669
671
if (enable_stb )
670
672
rc = amd_pmc_write_stb (pdev , AMD_PMC_STB_PREDEF );
671
673
if (rc ) {
672
- dev_err (pdev -> dev , "error writing to STB\n" );
674
+ dev_err (pdev -> dev , "error writing to STB: %d \n" , rc );
673
675
goto fail ;
674
676
}
675
677
return ;
@@ -688,7 +690,7 @@ static void amd_pmc_s2idle_restore(void)
688
690
msg = amd_pmc_get_os_hint (pdev );
689
691
rc = amd_pmc_send_cmd (pdev , 0 , NULL , msg , 0 );
690
692
if (rc )
691
- dev_err (pdev -> dev , "resume failed\n" );
693
+ dev_err (pdev -> dev , "resume failed: %d \n" , rc );
692
694
693
695
/* Let SMU know that we are looking for stats */
694
696
amd_pmc_send_cmd (pdev , 0 , NULL , SMU_MSG_LOG_DUMP_DATA , 0 );
@@ -700,7 +702,7 @@ static void amd_pmc_s2idle_restore(void)
700
702
if (enable_stb )
701
703
rc = amd_pmc_write_stb (pdev , AMD_PMC_STB_PREDEF + 1 );
702
704
if (rc )
703
- dev_err (pdev -> dev , "error writing to STB\n" );
705
+ dev_err (pdev -> dev , "error writing to STB: %d \n" , rc );
704
706
705
707
/* Restore the QoS request back to defaults if it was set */
706
708
if (pdev -> cpu_id == AMD_CPU_ID_CZN )
0 commit comments