From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0A0D27A107 for ; Thu, 2 Apr 2026 01:59:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775095183; cv=none; b=EfxqPWGU1JFLriiE3yYgfeuuPbqY2etbbLU9ZEj1HxWLqWcf+Hifu3xLWvWVWSf2NnSuHn3s2KPds84UiRYy7/S+qSxIuxn+LOAgKb5AFfhJ65I3G8S4lagk21Q7gTtDU361b90Wrzqq1vI57gYlv7XynIpg/tDp6kblRedP/qs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775095183; c=relaxed/simple; bh=kcPnsTkVz2WYNUw/b9zWUBkXiGoXKHbUTwQqyAL67tk=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=ALSnSoPBQmnQfQAPZoyM1TDVvHQ90FTAc7GpiX3Jhz+upjfhtEjsnrpgdbUwTNsP4KG3iMFx8fl0z6jciUw4FXI41kFEN9mJ/HTSiIcBy7+yFGE+h170ZN4/D2ApwHgsCYSyd4yz5XLOV7EQy+c3eWht3pM55jweVh6JYAD7XVo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=jOMRqdZO; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="jOMRqdZO" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2b24ddb2428so1993475ad.0 for ; Wed, 01 Apr 2026 18:59:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1775095181; x=1775699981; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=4ZZBOmbN88NnDw+y/lllm24+YGKBJyhW9R/ma9g+/uA=; b=jOMRqdZOfhlcTBmWirxOVgRvwy2+uEhOffK9BC45/jbrVw2OwNN9KbrdyXaw2mLxgf Hr4VOnxjyD6HgWRho1Mr+FUyrdKLvTE6krOmnz9bx8ElyXx4/JTXHSkE4GJVR54rHYg4 nfTpXqAPY3db//4dsOVs6LDp+Z6fsmZ1q+X2I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775095181; x=1775699981; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4ZZBOmbN88NnDw+y/lllm24+YGKBJyhW9R/ma9g+/uA=; b=cjI1378QqZr/DFxUSsQWm2Njr6Zw1PhT6WcJfVtVi5qBfQybqzx3C4zpvmY9N0hI8U DUT7YKc/zdynMxxKVQSUPHpcbjCzU0R5TZ+JQpM4nOzQTUOA/t/6glKM1u2PaAL/vvhv DxLcisHpU3xAfCge/Siy5Yl+FnbVNttLaLp5aPCzsYkbvyWNDU7oqk0+8S5pBOvWCdL+ 8Koil2NYzdxtkmccUS1GZUbS9dbFGjfnN1juKd1f/mP9ASL23CvOyF31ux/83XRWZSfh 2SMcVBwIjlDz1XJp/H25lYhNNBIBVTd+p+2jqwQgZ5UDldxRzKpbBWbvMbCz+1ST4kl6 1mvA== X-Forwarded-Encrypted: i=1; AJvYcCWnsAANlt+yUGItQ1T/LXSNUSKuQoff09vDthxqtrph5rKtJuBJKPRzMzqtQTt5diOZ1Cdi9PEFr7r41Qs=@vger.kernel.org X-Gm-Message-State: AOJu0YydkkQBrTuaTxj6ViBOgEsOOvtOJxD2bpmwC5U1YSxJg37YO/+3 /i/ZCoua6T7JAyIWxG/9yM7WICz8zPqcxAyWBv82WUKvObN5olNDf5zZ/OS1H9Fl3w== X-Gm-Gg: ATEYQzy/JGwi7P2H/vV7thihDmg5QNJJ5WY3cMPuvUmMFggvoI2DOEu5DlUosjpuSdY 8CcOWUvFkvqbJi6LfwlxRB4xrPhS7+Fz23X+ggWbFToiqXOmbPHjS8TJiff0J6KwmZhb1HUrn6S kB8OxE4M/JCAZ3PrFBbDLSFkiioxIthEp92ClsSUsVMZ9jfvVdUg1eCVYRNxSH2j5cfLdC4gvwc JUbXewOLSfiFDA+Ep6iZ4bmBQE9c9cfz8PZ3LW5WC+cFe4nhYYB0gLKFOaRuUm5zK7bTwU9v2Ql ke7TJgatAfJwo1Xz2TBSIkJisEqlDlKSRFNJKbgPaSj7hcW+9oF0XnkMIgso54mOZF1YvxuGIgr M8DSw/ZVI15l7Vf6QFgzEhSXyEUcuApS9fYfup5gl581TLneUFq9mjehI8e7z3wIztCZ0gFTwG9 BG60mJaKAhFbC9w/tNz4ANLdsAdzx+frJWmGN1MpZSFP4kkCuvSE3CoYBNPsxjg13Q5NJwbBaZz vWrZdG0C0JHDd7pTP21VEF7us7oI4Nj5g== X-Received: by 2002:a17:903:249:b0:2b0:62dd:3a93 with SMTP id d9443c01a7336-2b269ab2df0mr53061155ad.7.1775095181083; Wed, 01 Apr 2026 18:59:41 -0700 (PDT) Received: from jingyliang-input-linux.c.googlers.com (111.169.168.34.bc.googleusercontent.com. [34.168.169.111]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b27478cb4fsm11187535ad.29.2026.04.01.18.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2026 18:59:40 -0700 (PDT) From: Jingyuan Liang Subject: [PATCH v3 00/11] Add spi-hid transport driver Date: Thu, 02 Apr 2026 01:59:37 +0000 Message-Id: <20260402-send-upstream-v3-0-6091c458d357@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAInNzWkC/13MQQ6CMBCF4auQrq3pTC2CK+9hXFQ6hS6gpIVGQ 7i7BTeG5f+S9y0sUnAU2a1YWKDkovNDDnkqWNPpoSXuTG6GAkuBgDzSYPg8ximQ7vlV2dKamky NxPJnDGTde/cez9ydi5MPn51PsK0/SQp5kBJwwUGBemmEykpzb7rgezf3Zx9atmEJ/wC8HAHMg EJoqNLW2qo8AOu6fgGYi/yK7gAAAA== X-Change-ID: 20260212-send-upstream-75f6fd9ed92e To: Jiri Kosina , Benjamin Tissoires , Jonathan Corbet , Mark Brown , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-input@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-trace-kernel@vger.kernel.org, devicetree@vger.kernel.org, hbarnor@chromium.org, tfiga@chromium.org, Jingyuan Liang , Jarrett Schultz , Dmitry Antipov , Angela Czubak X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1775095180; l=3676; i=jingyliang@chromium.org; s=20260213; h=from:subject:message-id; bh=kcPnsTkVz2WYNUw/b9zWUBkXiGoXKHbUTwQqyAL67tk=; b=Qeo/YrMVCst9P9/JIc83OYLI11nlSbg56ENkIlVZeiA5Pw4580P+tfcbEciDAxrT+lFTtV3/O k0ptUq2PwHQDhCJMyeQ7xQcAKm5BCQ7LPArLr2qTsbetYPbvpAg4Ymx X-Developer-Key: i=jingyliang@chromium.org; a=ed25519; pk=VTYSdqslTtYOjWWoIGgYoWupGWqNSidrggReKMgfPo4= This series picks up the spi-hid driver work originally started by Microsoft. The patch breakdown has been modified and the implementation has been refactored to address upstream feedback and testing issues. We are submitting this as a new series while keeping the original sign-off chain to reflect the history. Same as the original series, there is a change to HID documentation, some HID core changes to support a SPI device, the SPI HID transport driver, and HID over SPI Device Tree binding. We have added the HID over SPI ACPI support, power management, panel follower, and quirks for Ilitek touch controllers. Original authors: Jarrett Schultz , Dmitry Antipov Link: https://lore.kernel.org/r/86b63b7b-afda-d7f4-7bfa-175085d5a8ef@gmail.com Signed-off-by: Jingyuan Liang --- Changes in v3: - Add io_lock init - Relocate tracepoints to drivers/hid/spi-hid/ and fix tracepoint macros - Add tracepoints for sync, error handling, reset, and report processing - Clean up internal includes and fix Makefile CFLAGS - Add more details in v2 changelog - Link to v2: https://lore.kernel.org/r/20260324-send-upstream-v2-0-521ce8afff86@chromium.org Changes in v2: - Clean up DT bindings: fix formatting and remove timing and flags properties - Update DT binding example: use a device-specific compatible and drop reset_assert - Simplify ACPI/OF match tables by removing ACPI_PTR/of_match_ptr - Refactor OF driver to use match data for timing parameters instead of DT properties - Switch to fsleep() for delays in ACPI and OF drivers - Drop patch 12 as it is vendor specific - Add a lock to fix input/output concurrency race - Link to v1: https://lore.kernel.org/r/20260303-send-upstream-v1-0-1515ba218f3d@chromium.org --- Angela Czubak (2): HID: spi-hid: add transport driver skeleton for HID over SPI bus HID: spi_hid: add ACPI support for SPI over HID Jarrett Schultz (3): Documentation: Correction in HID output_report callback description. HID: Add BUS_SPI support and define HID_SPI_DEVICE macro HID: spi_hid: add device tree support for SPI over HID Jingyuan Liang (6): HID: spi-hid: add spi-hid driver HID layer HID: spi-hid: add HID SPI protocol implementation HID: spi_hid: add spi_hid traces dt-bindings: input: Document hid-over-spi DT schema HID: spi-hid: add power management implementation HID: spi-hid: add panel follower support .../devicetree/bindings/input/hid-over-spi.yaml | 126 ++ Documentation/hid/hid-transport.rst | 4 +- drivers/hid/Kconfig | 2 + drivers/hid/Makefile | 2 + drivers/hid/hid-core.c | 3 + drivers/hid/spi-hid/Kconfig | 45 + drivers/hid/spi-hid/Makefile | 12 + drivers/hid/spi-hid/spi-hid-acpi.c | 254 ++++ drivers/hid/spi-hid/spi-hid-core.c | 1456 ++++++++++++++++++++ drivers/hid/spi-hid/spi-hid-core.h | 98 ++ drivers/hid/spi-hid/spi-hid-of.c | 244 ++++ drivers/hid/spi-hid/spi-hid-trace.h | 169 +++ drivers/hid/spi-hid/spi-hid.h | 46 + include/linux/hid.h | 2 + 14 files changed, 2461 insertions(+), 2 deletions(-) --- base-commit: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b change-id: 20260212-send-upstream-75f6fd9ed92e Best regards, -- Jingyuan Liang