From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.175 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792436491; b=qW+eO3dE6+NYxPsTTQ+CFj+Xkbp3MxtFRVZ561URmsTu2jABR9Gp7+XBaNh5ZHgpZGlF Ne2Y62kNOilPB1wBXJJzh/uJDhdhRos2F9a1ARzvgmDG6ivBFLAIz8Z+RQI65M8Bq+yGg cybJ9gcfG2mXvUaBZHc8W3l8DjHDxwLFFEKkCXsXq3BJMWwW3rmXyR2nUDM0TTusrZRTZ OSW0mhOqYieScV64+gKjglKqMx1qstowJhG1ZlEn4fvTOATjxE4UxA6MlN9T4BlS1mJae mhlWzyPpchLGQJ0otHwhuZjd89fDdHU7m+MWy31GH+kL+hfaUa+fuTV51eYtqWMuqAw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792436491; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:Subject:Date:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key; bh=NlRWSTOFbePBOR+ZW461CZ2nj2CGvQoMjpOv8gpMfng=; b=O9YRTrAL073/7UeoldLkg4E6MVNq5GAtzRlvcEw6dWpmr+yfjOYsBa48P4OaaTqg+l6v Nw9wYPuJ7fgp5W8YnLozMnVRIlKQyBNyQsCHVG85OtNr/uNs6HW8xDS61zprKNlJTroO6 AYodQw/eIi4ACtg4pU20BdDc6nX++AYwVf0/TASaa/VRs4I9bVNKR2sTdx97NOOy14kth rXYkfhFHI/0tMDIGomcpR1X2ByKUxa9FIAkQ3inl/PWMCFWdPKom28MGCN4M0MnKqC4HV 6AAPzVdvXX+COFZYgpU4xWgrhm/C9mHd5glzHt5a2T25UhcK5pXe5EGW24eWUkH/yhQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=ZEvpwaca; arc=none smtp.remote-ip=209.85.214.175 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FA4A606A326 for ; Mon, 19 Oct 2026 19:01:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5FA4A606A326 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, unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=ZEvpwaca Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2e8f2c3ad6bso13313085ad.1 for ; Mon, 19 Oct 2026 12:01:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1792436490; x=1793041290; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=NlRWSTOFbePBOR+ZW461CZ2nj2CGvQoMjpOv8gpMfng=; b=ZEvpwacarzzImH6V6uOJTzbL8stPTETvmYc17X7c96whAtVQTM+Ndsw4UT0JGwmD+I BKmRrsuT6++2dsgO3bXm5ZuurZ21ZFUlWCPMc3B7m+FXydpVtnxL6hsXeexpZE1Av4L+ 0CoKGxEzPf1ZzmmWfMOYbNLnW7pyHFfz0mkPE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792436490; x=1793041290; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=NlRWSTOFbePBOR+ZW461CZ2nj2CGvQoMjpOv8gpMfng=; b=aeyP5LmSTMhCwOq14i2xOS3b8tI9P4wCvhOk0ndXT01j4znRT2K1ITbJ56iBl28NaO Hq4pVakHWa+7Mi9pBrSFG7csJSZguvcDo0Cf9tUszysvyrDCRqiwg+mSl3cbx94VJtM3 SrLgLt0UyZQuztuXoeE+kvr6JKVCJIRGvybX/LT94x94m5I2yb/Ntx5oiVfzv6cX5Pfj 7n64Uk+57+24dcGd99joSx7MJdW7UoIfBx9LdME4MngyucyVRPMVcEjwHv+2Drovu1M3 5EybITOgI/Q8Ek9/KM4ECkbUYo1pcrHhLD/dEG/3kwsD63mThxrfUK+SWMcq8zT1QJlH gbrw== X-Forwarded-Encrypted: i=1; AKwUvBybPabo0OyDGbbO4PuG59mRs1xV9tEOj2mZ/TsCO9rlUu3DjHkqB2M2cJOv8wfnf+QdGqQSsnl2DauvX/hebisOue8=@vger.kernel.org X-Gm-Message-State: AFq9FYLp3fP32GiZZIAcdjP29mcFGfBIjt5hfHWl9rWVoebRun/wB+lN dfnyJTfOoey3uCYBtgh55D+5gqcxynlOBiDzdDNRGX0UdrlFPddS2XbMCjgdkEKn8w== X-Gm-Gg: AYBFou15JGcLfxXs04RM87Qi3SMlioT5Xpuj5iSbJTOBIXvlXwcZSCWw6XjUPth7mGb 7qcLV+/TCm5OV/2j5Yeby8iOHZc3RFH31zJcI6ZKt80ojXO0k+bFwgaaNzf0bibhdy8JcPpPppr hKjuRAfOkW89YYfXZsmrtWOgquddzpw0IyYdTQ29m6sKD8Ii/XNQSeu9Et+26SgN7LEHQdQhJBL nkFUAL8rFbNFVCciKx8UQtXJxcwvolLfJXcVTnO3C7exp03Mf2hUCH7jtgG8ZWCuqIELmzp5lCv 6gMMv3N+Kg2zOYckOPsec/iyKEgae8c5Jw8X9ArkQSSA/ivKioz4MQcLOLDY5Fy8iMeza+dl48z v5SXCirp85C6lxZkjSVwa8BwNfh6uK8unmeg8BOxwxLOPt0NoKhqqW2j5xxXTd2T2ksMfjVQHNF pqMb3Qy/0LVJu0Uh77XMBCk6U7hynH7d5jgFlOZ9/24z42wpxUkt3uUH9lCjfSvqXConuVGsK53 wvWLYy4Ynjt5kPPIfRUJjn7jgEkMROPsWjp7Q+jMSk+cniOHbuPSfDI7YNviyo2m9oygkqOlHaj yo+Xyw== X-Received: by 2002:a17:902:e84c:b0:2e9:6b5b:3db6 with SMTP id d9443c01a7336-2e9a69e93d4mr78949655ad.30.1792436488354; Mon, 19 Oct 2026 12:01:28 -0700 (PDT) Received: from jingyliang-input-linux.c.googlers.com (218.117.230.35.bc.googleusercontent.com. [35.230.117.218]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2ea151e1b7esm4473105ad.75.2026.10.19.12.01.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 12:01:27 -0700 (PDT) From: Jingyuan Liang Subject: [PATCH v6 00/11] Add spi-hid transport driver Date: Mon, 19 Oct 2026 19:01:12 +0000 Message-Id: <20261019-send-upstream-v6-0-cb9ba4b3d6fa@chromium.org> X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAPho1moC/23PzW7DIAzA8VepOI8Jm4+SnvYe0w4UTMMhSQUt2 lTl3Uc7aZ1Yjn/L/km+sUI5UWGH3Y1lqqmkZW5hXnbMj24+EU+hNUOBRiAgLzQHfj2XSyY38b2 OJoaBwoDE2s05U0yfD+/9o/WYymXJXw++wn36I0khO6kCFxw06KNDsFGGNz/mZUrX6XXJJ3bHK v4BUPUANkAjeLIuxmjNBiCfgBL9L1U2wIgBvNI2SL3fANQTaJs9oBpwtEoGTcZTkBuA/gVA/Ad 0A6RVLgoIThJ1wLqu3/ZCO9axAQAA 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, fqwqf@fqwqf.xyz, daleyo@gmail.com, Jingyuan Liang , Jarrett Schultz , Dmitry Antipov , Angela Czubak X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1792436487; l=5852; i=jingyliang@chromium.org; s=20260213; h=from:subject:message-id; bh=ga6CwkzARUkSvEvRDG0PQmoQD7fSmYRrychrK6mPJmA=; b=vBA5OO3tSh7vW0DnhWVDJWpbII+xJtYD5/j1+yxiiJ5vl/UDtQJ3Uk4FZ+YGJnUP3gkXxZnv6 fjs+9TLMNgCBwXACf0yfOCEkSy7lN5urMp6GOiINJI/amWw+dLgEKq1 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 v6: - Take output_lock while reallocating buffers in ll_start() - Don't drop input reports while a refreshed device probes - OF: drop mod_devicetable.h, use named initializers, fix alignment - Move the dt-bindings patch before the OF driver patch - Drop Tested-by from the documentation and DT binding patches - Link to v5: https://lore.kernel.org/r/20261009-send-upstream-v5-0-384af01da3ee@chromium.org Changes in v5: - Fix request/response races; match GET_FEATURE responses by report ID - Reset the device on response timeout; wait uninterruptibly - Validate device descriptor and report lengths; fix buffer sizing - Honor rtype in raw_request(); fix GET_REPORT off-by-one - Use hid_safe_input_report(); forward input reports only while open - Disable IRQ around hid_device teardown; fix a sparse warning - Use disable_work_sync() for reset_work in remove() - Cap trace copies at 64 bytes; cacheline-align read approval buffers - ACPI: select RESET_CONTROLLER, use device_reset_optional() - OF & DT: read opcodes as u8, use dev_err_probe(), require reg - PM: cancel reset_work on suspend, wait for reset before reset_resume(), fix IRQ imbalance on resume failure - Panel follower: fix regulator/IRQ imbalance; depend on DRM || !DRM - Link to v4: https://lore.kernel.org/r/20260609-send-upstream-v4-0-b843d5e6ced3@chromium.org Changes in v4: - Extended io_lock scope to protect the shid->hid pointer lifecycle against races with the IRQ handler - Cacheline-aligned DMA buffers, enforced 4-byte alignment - Added error rollback for failed suspend/resume transitions - Moved IRQ request to probe with IRQF_NO_AUTOEN (disabled by default) - DT Bindings & OF Driver: - Required a device-specific compatible string in the schema. - Added description to explain why opcodes and addresses properties need to be defined in the schema - Added `spi-peripheral-props.yaml` reference and switched to `unevaluatedProperties: false`. - Added fallback to default timing parameters in OF driver if match data is missing. - Link to v3: https://lore.kernel.org/r/20260402-send-upstream-v3-0-6091c458d357@chromium.org 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 HID over SPI 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 HID over SPI 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 | 130 ++ 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 | 50 + drivers/hid/spi-hid/Makefile | 12 + drivers/hid/spi-hid/spi-hid-acpi.c | 262 +++ drivers/hid/spi-hid/spi-hid-core.c | 1757 ++++++++++++++++++++ drivers/hid/spi-hid/spi-hid-core.h | 118 ++ drivers/hid/spi-hid/spi-hid-of.c | 242 +++ drivers/hid/spi-hid/spi-hid-trace.h | 184 ++ drivers/hid/spi-hid/spi-hid.h | 46 + include/linux/hid.h | 2 + 14 files changed, 2812 insertions(+), 2 deletions(-) --- base-commit: ee9c669f9bf5fd2c24206746ded9382fe810df89 change-id: 20260212-send-upstream-75f6fd9ed92e Best regards, -- Jingyuan Liang