@@ -1639,7 +1639,7 @@ fn selftest(ec: &CrosEc) -> Option<()> {
16391639// - Parade Retimer on both back ports (with firmware)
16401640fn selftest_retimer ( ec : & CrosEc ) -> EcResult < ( ) > {
16411641 // TODO: Make sure that it can work for the NVIDIA dGPU retimer and increase to 3
1642- for i in 0 ..2 {
1642+ for i in 1 ..2 {
16431643 let update_mode = ec. retimer_in_fwupd_mode ( i) ;
16441644 if update_mode == Err ( EcError :: Response ( EcResponseStatus :: InvalidParameter ) ) {
16451645 println ! ( " Retimer status not supported on this platform. Cannot test" ) ;
@@ -1648,15 +1648,21 @@ fn selftest_retimer(ec: &CrosEc) -> EcResult<()> {
16481648 println ! ( " Retimers on PD Controller {}" , i) ;
16491649 println ! ( " In update mode: {:?}" , update_mode) ;
16501650 if update_mode? {
1651- println ! ( " Unexpected! During normal operaton it should not be in update mode! Disabling.. ." ) ;
1651+ println ! ( " Disabling it to start test ." ) ;
16521652 ec. retimer_enable_fwupd ( i, false ) ?;
1653+ os_specific:: sleep ( 100 ) ;
16531654 }
1655+
16541656 println ! ( " Enabling update mode" ) ;
16551657 let success = ec. retimer_enable_fwupd ( i, true ) ;
1656- println ! ( " Success: {:?}" , success) ;
1658+ os_specific:: sleep ( 100 ) ;
1659+ //println!(" Result: {:?}", success);
1660+ println ! ( " In update mode: {:?}" , ec. retimer_in_fwupd_mode( i) . unwrap( ) ) ;
16571661
16581662 println ! ( " Disabling again" ) ;
16591663 ec. retimer_enable_fwupd ( i, false ) ?;
1664+ os_specific:: sleep ( 100 ) ;
1665+ println ! ( " In update mode: {:?}" , ec. retimer_in_fwupd_mode( i) . unwrap( ) ) ;
16601666 success?;
16611667 }
16621668 Ok ( ( ) )
0 commit comments