[PATCH v2 0/2] platform: arm64: huawei-gaokun-ec: Fix short transfers and PAN ACK masks
From: YoungJoon Lee
Date: Sat Nov 28 2026 - 04:06:50 EST
These two fixes address short I2C transfers and PAN ACK mask
construction in the Huawei MateBook E Go EC driver.
Changes in v2:
- Patch 1 is unchanged.
- Patch 2 validates against the two physical connectors, as suggested
by Pengyu Luo. The no-port-update sentinel still sends a zero mask.
An I2C stub and UBSan verified the empty ACK, both valid masks,
rejection of invalid indices without an I2C transfer, and short
transfer handling. The series builds as an arm64 Image and EC module.
OpenAI Codex assisted with source inspection, regression testing and
drafting.
Lee Youngjoon (2):
platform: arm64: huawei-gaokun-ec: Reject short I2C transfers
platform: arm64: huawei-gaokun-ec: Validate the PAN ACK bit index
drivers/platform/arm64/huawei-gaokun-ec.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
base-commit: d4000e7b99e06e92f21a3c92098a0476d316e9d6
--
2.53.0