From eadafdd7e1375cb9b235083101ff0c7691ed20e3 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Thu, 26 Mar 2026 20:07:47 +0800 Subject: [PATCH] portio also doesn't work on 32bit Fixes 371da5f59c7824468ca6de9d06751eeecdb513c9 We don't have any 32bit system, so we don't need to do portio on those. Signed-off-by: Daniel Schaefer --- framework_lib/src/chromium_ec/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/framework_lib/src/chromium_ec/mod.rs b/framework_lib/src/chromium_ec/mod.rs index 76862c8..45aa0fc 100644 --- a/framework_lib/src/chromium_ec/mod.rs +++ b/framework_lib/src/chromium_ec/mod.rs @@ -27,11 +27,11 @@ pub mod commands; mod cros_ec; pub mod i2c_passthrough; pub mod input_deck; -#[cfg(all(not(windows), any(target_arch = "x86", target_arch = "x86_64")))] +#[cfg(all(not(windows), target_arch = "x86_64"))] mod portio; -#[cfg(all(not(windows), any(target_arch = "x86", target_arch = "x86_64")))] +#[cfg(all(not(windows), target_arch = "x86_64"))] mod portio_hwio; -#[cfg(all(not(windows), any(target_arch = "x86", target_arch = "x86_64")))] +#[cfg(all(not(windows), target_arch = "x86_64"))] mod portio_mec; #[allow(dead_code)] mod protocol; @@ -243,7 +243,7 @@ fn available_drivers() -> Vec { drivers.push(CrosEcDriverType::CrosEc); } - #[cfg(all(not(windows), any(target_arch = "x86", target_arch = "x86_64")))] + #[cfg(all(not(windows), target_arch = "x86_64"))] drivers.push(CrosEcDriverType::Portio); drivers @@ -1897,7 +1897,7 @@ impl CrosEcDriver for CrosEc { // TODO: Change this function to return EcResult instead and print the error only in UI code print_err(match self.driver { - #[cfg(all(not(windows), any(target_arch = "x86", target_arch = "x86_64")))] + #[cfg(all(not(windows), target_arch = "x86_64"))] CrosEcDriverType::Portio => portio::read_memory(offset, length), #[cfg(windows)] CrosEcDriverType::Windows => windows::read_memory(offset, length), @@ -1919,7 +1919,7 @@ impl CrosEcDriver for CrosEc { } match self.driver { - #[cfg(all(not(windows), any(target_arch = "x86", target_arch = "x86_64")))] + #[cfg(all(not(windows), target_arch = "x86_64"))] CrosEcDriverType::Portio => portio::send_command(command, command_version, data), #[cfg(windows)] CrosEcDriverType::Windows => windows::send_command(command, command_version, data),