@@ -247,13 +247,13 @@ fn print_pd_details(ec: &CrosEc) {
247247 println ! ( "Only supported on Framework systems" ) ;
248248 return ;
249249 }
250- let pd_01 = PdController :: new ( PdPort :: Left01 , ec. clone ( ) ) ;
251- let pd_23 = PdController :: new ( PdPort :: Right23 , ec. clone ( ) ) ;
250+ let pd_01 = PdController :: new ( PdPort :: Right01 , ec. clone ( ) ) ;
251+ let pd_23 = PdController :: new ( PdPort :: Left23 , ec. clone ( ) ) ;
252252 let pd_back = PdController :: new ( PdPort :: Back , ec. clone ( ) ) ;
253253
254- println ! ( "Left / Ports 01" ) ;
254+ println ! ( "Right / Ports 01" ) ;
255255 print_single_pd_details ( & pd_01) ;
256- println ! ( "Right / Ports 23" ) ;
256+ println ! ( "Left / Ports 23" ) ;
257257 print_single_pd_details ( & pd_23) ;
258258 println ! ( "Back" ) ;
259259 print_single_pd_details ( & pd_back) ;
@@ -570,13 +570,13 @@ fn print_versions(ec: &CrosEc) {
570570 | esrt:: ADL_RETIMER01_GUID
571571 | esrt:: RPL_RETIMER01_GUID
572572 | esrt:: MTL_RETIMER01_GUID => {
573- left_retimer = Some ( entry. fw_version ) ;
573+ right_retimer = Some ( entry. fw_version ) ;
574574 }
575575 esrt:: TGL_RETIMER23_GUID
576576 | esrt:: ADL_RETIMER23_GUID
577577 | esrt:: RPL_RETIMER23_GUID
578578 | esrt:: MTL_RETIMER23_GUID => {
579- right_retimer = Some ( entry. fw_version ) ;
579+ left_retimer = Some ( entry. fw_version ) ;
580580 }
581581 _ => { }
582582 }
@@ -1017,8 +1017,8 @@ pub fn run_with_args(args: &Cli, _allupdate: bool) -> i32 {
10171017 } else if let Some ( pd) = args. pd_reset {
10181018 println ! ( "Resetting PD {}..." , pd) ;
10191019 print_err ( match pd {
1020- 0 => PdController :: new ( PdPort :: Left01 , ec. clone ( ) ) . reset_device ( ) ,
1021- 1 => PdController :: new ( PdPort :: Right23 , ec. clone ( ) ) . reset_device ( ) ,
1020+ 0 => PdController :: new ( PdPort :: Right01 , ec. clone ( ) ) . reset_device ( ) ,
1021+ 1 => PdController :: new ( PdPort :: Left23 , ec. clone ( ) ) . reset_device ( ) ,
10221022 2 => PdController :: new ( PdPort :: Back , ec. clone ( ) ) . reset_device ( ) ,
10231023 _ => {
10241024 error ! ( "PD {} does not exist" , pd) ;
@@ -1028,8 +1028,8 @@ pub fn run_with_args(args: &Cli, _allupdate: bool) -> i32 {
10281028 } else if let Some ( pd) = args. pd_disable {
10291029 println ! ( "Disabling PD {}..." , pd) ;
10301030 print_err ( match pd {
1031- 0 => PdController :: new ( PdPort :: Left01 , ec. clone ( ) ) . enable_ports ( false ) ,
1032- 1 => PdController :: new ( PdPort :: Right23 , ec. clone ( ) ) . enable_ports ( false ) ,
1031+ 0 => PdController :: new ( PdPort :: Right01 , ec. clone ( ) ) . enable_ports ( false ) ,
1032+ 1 => PdController :: new ( PdPort :: Left23 , ec. clone ( ) ) . enable_ports ( false ) ,
10331033 2 => PdController :: new ( PdPort :: Back , ec. clone ( ) ) . enable_ports ( false ) ,
10341034 _ => {
10351035 error ! ( "PD {} does not exist" , pd) ;
@@ -1039,8 +1039,8 @@ pub fn run_with_args(args: &Cli, _allupdate: bool) -> i32 {
10391039 } else if let Some ( pd) = args. pd_enable {
10401040 println ! ( "Enabling PD {}..." , pd) ;
10411041 print_err ( match pd {
1042- 0 => PdController :: new ( PdPort :: Left01 , ec. clone ( ) ) . enable_ports ( true ) ,
1043- 1 => PdController :: new ( PdPort :: Right23 , ec. clone ( ) ) . enable_ports ( true ) ,
1042+ 0 => PdController :: new ( PdPort :: Right01 , ec. clone ( ) ) . enable_ports ( true ) ,
1043+ 1 => PdController :: new ( PdPort :: Left23 , ec. clone ( ) ) . enable_ports ( true ) ,
10441044 2 => PdController :: new ( PdPort :: Back , ec. clone ( ) ) . enable_ports ( true ) ,
10451045 _ => {
10461046 error ! ( "PD {} does not exist" , pd) ;
@@ -1376,8 +1376,8 @@ fn selftest(ec: &CrosEc) -> Option<()> {
13761376 println ! ( " - OK" ) ;
13771377 }
13781378
1379- let pd_01 = PdController :: new ( PdPort :: Left01 , ec. clone ( ) ) ;
1380- let pd_23 = PdController :: new ( PdPort :: Right23 , ec. clone ( ) ) ;
1379+ let pd_01 = PdController :: new ( PdPort :: Right01 , ec. clone ( ) ) ;
1380+ let pd_23 = PdController :: new ( PdPort :: Left23 , ec. clone ( ) ) ;
13811381 print ! ( " Getting PD01 info through I2C tunnel" ) ;
13821382 print_err ( pd_01. get_silicon_id ( ) ) ?;
13831383 print_err ( pd_01. get_device_info ( ) ) ?;
@@ -1554,22 +1554,22 @@ pub fn analyze_capsule(data: &[u8]) -> Option<capsule::EfiCapsuleHeader> {
15541554 println ! ( " Type: Framework RPL Insyde BIOS" ) ;
15551555 }
15561556 esrt:: TGL_RETIMER01_GUID => {
1557- println ! ( " Type: Framework TGL Retimer01 (Left )" ) ;
1557+ println ! ( " Type: Framework TGL Retimer01 (Right )" ) ;
15581558 }
15591559 esrt:: TGL_RETIMER23_GUID => {
1560- println ! ( " Type: Framework TGL Retimer23 (Right )" ) ;
1560+ println ! ( " Type: Framework TGL Retimer23 (Left )" ) ;
15611561 }
15621562 esrt:: ADL_RETIMER01_GUID => {
1563- println ! ( " Type: Framework ADL Retimer01 (Left )" ) ;
1563+ println ! ( " Type: Framework ADL Retimer01 (Right )" ) ;
15641564 }
15651565 esrt:: ADL_RETIMER23_GUID => {
1566- println ! ( " Type: Framework ADL Retimer23 (Right )" ) ;
1566+ println ! ( " Type: Framework ADL Retimer23 (Left )" ) ;
15671567 }
15681568 esrt:: RPL_RETIMER01_GUID => {
1569- println ! ( " Type: Framework RPL Retimer01 (Left )" ) ;
1569+ println ! ( " Type: Framework RPL Retimer01 (Right )" ) ;
15701570 }
15711571 esrt:: RPL_RETIMER23_GUID => {
1572- println ! ( " Type: Framework RPL Retimer23 (Right )" ) ;
1572+ println ! ( " Type: Framework RPL Retimer23 (Left )" ) ;
15731573 }
15741574 esrt:: WINUX_GUID => {
15751575 println ! ( " Type: Windows UX capsule" ) ;
0 commit comments