The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v4 0/2] usb: typec: ucsi: gaokun: Validate and defer port updates
@ 2026-12-03 18:58 getfeus
  2026-12-03 19:09 ` [PATCH v4 1/2] usb: typec: ucsi: gaokun: Distinguish empty updates from EC errors Lee Youngjoon
  2026-12-03 19:10 ` [PATCH v4 2/2] usb: typec: ucsi: gaokun: Defer missing USB events per connector Lee Youngjoon
  0 siblings, 2 replies; 5+ messages in thread
From: getfeus @ 2026-12-03 18:58 UTC (permalink / raw)
  To: Pengyu Luo, Heikki Krogerus, Greg Kroah-Hartman
  Cc: Hans de Goede, Ilpo Järvinen, Bryan O'Donoghue,
	platform-driver-x86, linux-usb, linux-kernel, stable

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@mail.gmail.com/

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-04 13:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 18:58 [PATCH v4 0/2] usb: typec: ucsi: gaokun: Validate and defer port updates getfeus
2026-12-03 19:09 ` [PATCH v4 1/2] usb: typec: ucsi: gaokun: Distinguish empty updates from EC errors Lee Youngjoon
2026-12-04 13:15   ` Ilpo Järvinen
2026-12-03 19:10 ` [PATCH v4 2/2] usb: typec: ucsi: gaokun: Defer missing USB events per connector Lee Youngjoon
2026-12-04 13:18   ` Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox