[PATCH v4 0/2] usb: typec: ucsi: gaokun: Validate and defer port updates
From: getfeus
Date: Thu Dec 03 2026 - 13:58:13 EST
Hi,
These patches distinguish a failed EC UCSI_REG_READ (0xd3) from a
successful read with an empty update mask, and move the connector
fallback out of the EC IRQ notifier so a later USB event can run.
Changes since v3:
- Remove redundant runtime count/mask checks and an unrelated rename.
- Explain when an empty USB event requires a zero PAN acknowledgment.
- Regenerate and apply both patches against the stated usb-next base.
Patch 1 supersedes the PAN ACK patch (2/2) in the earlier platform
series [1]; please do not apply that older patch. Its short I2C transfer
patch (1/2) remains independent and applies with this series.
Both commits cross-built as an arm64 Image and modules. Host tests cover
EC read failures, empty and matching updates, per-port fallbacks and the
PAN ACK bytes, also with the short-transfer fix. This revision has not
been tested on hardware.
OpenAI Codex assisted with source review, tests and drafting.
[1] https://lore.kernel.org/r/CA+m4KrC4-oEkg2_+_B=kn5ObqAd1ZB+f+hpe53Cmqx47LHnGDQ@xxxxxxxxxxxxxx/
Thanks,
Lee Youngjoon
Lee Youngjoon (2):
usb: typec: ucsi: gaokun: Distinguish empty updates from EC errors
usb: typec: ucsi: gaokun: Defer missing USB events per connector
drivers/platform/arm64/huawei-gaokun-ec.c | 16 +--
drivers/usb/typec/ucsi/ucsi_huawei_gaokun.c | 135 +++++++++++-------
.../linux/platform_data/huawei-gaokun-ec.h | 4 +-
3 files changed, 89 insertions(+), 66 deletions(-)
base-commit: 9357829ac604c28510b71b154cb6630af81226ff