[Midnightbsd-cvs] [MidnightBSD/src] dbb265: Backport iichid input report fixes (#441)

Lucas Holt noreply at github.com
Thu Jul 2 13:20:30 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: dbb265a462de1affddf2b7d637b0bf38b6d36712
      https://github.com/MidnightBSD/src/commit/dbb265a462de1affddf2b7d637b0bf38b6d36712
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-07-02 (Thu, 02 Jul 2026)

  Changed paths:
    M sys/dev/iicbus/iichid.c

  Log Message:
  -----------
  Backport iichid input report fixes (#441)

* Backport iichid input report fixes

Use the HID-over-I2C advertised input length for interrupt reads, handle RESET acknowledgements as the two-byte response required by the spec, and move reset waiting until after the interrupt or sampling path is available.

This matches the relevant FreeBSD iichid fixes for newer laptop touchpads that require full-size reads to acknowledge interrupts.

AI-Assisted-by: Codex (GPT-5)
Signed-off-by: Lucas Holt <luke at foolishgames.com>

* Address iichid review feedback

Guard reset acknowledgement reads, validate report length against the bytes transferred, remove the debug fill, and allow normal reads after reset timeout.

AI-Assisted-by: Codex (GPT-5)
Signed-off-by: Lucas Holt <luke at foolishgames.com>

* Handle iichid sampling reset fallback

Mark RESET acknowledged after the sampling-mode attach read so future input reads do not remain limited to the two-byte header when the probe read returns a nonzero report.

AI-Assisted-by: Codex (GPT-5)
Signed-off-by: Lucas Holt <luke at foolishgames.com>

---------

Signed-off-by: Lucas Holt <luke at foolishgames.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications


More information about the Midnightbsd-cvs mailing list