From f1d180c2ea80ccc6c5f450ac032df6e7a6c39a56 Mon Sep 17 00:00:00 2001 From: Kieran Levin Date: Mon, 30 Mar 2026 01:00:24 -0700 Subject: [PATCH] fw16 - round up chunk calculation found that when writing the GPU EEPROM descriptor depending on the length of the descriptor, the end would be missing Signed-off-by: Kieran Levin --- framework_lib/src/chromium_ec/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework_lib/src/chromium_ec/mod.rs b/framework_lib/src/chromium_ec/mod.rs index 055ee75..2aa9e67 100644 --- a/framework_lib/src/chromium_ec/mod.rs +++ b/framework_lib/src/chromium_ec/mod.rs @@ -1451,7 +1451,7 @@ impl CrosEc { // Need to program the EEPROM 32 bytes at a time. let chunk_size = 32; - let chunks = data.len() / chunk_size; + let chunks = data.len().div_ceil(chunk_size); let mut return_val: EcResult<()> = Ok(()); for chunk_no in 0..chunks { let offset = chunk_no * chunk_size;