From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 CB28C3C4562 for ; Tue, 24 Mar 2026 06:40:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774334407; cv=none; b=Da/9YpKYukn9tuBUnavURerTrV1PrT3DQnZPXlqZQHxLoeuNLFSEYiN0YNjeM4zALad1sxdoxuyd6pbVQgcPTiongEC5mqq7ztb7FzrCtnOH/QAx8+38QJ8CkbmGaJsJjFP/exdXyDFAkbsSxjOxv2OkKXsH3d1ZrrxkJxF+C4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774334407; c=relaxed/simple; bh=kWMVHrbTgq59qsBF4CpPuynsRpdHuf4qfybAUgKcv1Y=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Goh/umDi7CtH0utEsLUG5gm54AyvH6mC6Vg6ZChADwe7e3C1xNPYwealENyCSh8BTwjp2qnI9VnNdPLJASlgchuqGh/QkHX4PbC2ZYv98yYCk0GFlA8r3qNM9yi0M3y9ITpUpVVIsGcMmwMSKKKWL4bXE67LqAJ6DeDzcD3mfIk= 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=Bayty719; arc=none smtp.client-ip=209.85.214.173 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="Bayty719" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2ad21f437eeso43838335ad.0 for ; Mon, 23 Mar 2026 23:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1774334402; x=1774939202; 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=M1IUdQ9vciBV4vtJJEjMhyajLdYSBJmzXHlAoFV09cM=; b=Bayty719eLyEssE+D+sV7sxnwd3YzJX/N2JvH6d1IMTp5T2Hc6FTt4RU3pi/uklzv7 1GRDTN5+KbE8hkEp5TbTp5rrxZ18TQXE07sTjhBK6E1+Hsnl9QCEh+E6jIIvB6bWoGZI f/u8lMsQU1Lg/5VFN2gEvR+UZDC1+WWGybCO4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774334402; x=1774939202; 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=M1IUdQ9vciBV4vtJJEjMhyajLdYSBJmzXHlAoFV09cM=; b=hxr6McnjeOwEo7QC0KHdeacuQacy39ch+kJrUYA+IX8C9NY66+w+WeiCxJNuZP0dXx du6+xrmOyeIaKMAS0L9QGOaHuyYGLDWgVpbp0AAuz8DWgPfV/t0xgVgZdAJcaVX6Ic8h b1/HwgRDK7EbjWWcuMK4oJl+STI9+qPdyVYRZ6z7gSvgLtL7bekE5W7exKBO5cotlDEV TatfaVIRNDeH73VRtWVVFTv/o9VOZ7VCtK9F94y2IxBd+r0JXByqZnmvnwbrsH2ut3/D fM1QpZdNjDs4bp65gc732/RnpjftFUo1pt4mBmjnK5uNZZ0gfoDGIU/kp/ZgjYbAl6lP puuw== X-Forwarded-Encrypted: i=1; AJvYcCVYSq7ZpKVOlXppQIrDGGyQ78Yvym931GDjX2/l4uxivNbP1NgQUpxysBURfl23PlO47+9L0nzKG7l7h81seYngNWE=@vger.kernel.org X-Gm-Message-State: AOJu0YxDPqjZCxAk3SYk5hZW+gWcZRYaKuC1AemGa+0mFAFWgWb2a8Ik IvHsbDNVwCgN7ak409rO2zw+NizZ4CWhazA5khZMBEAmcrj7HqMEVKJS9TWY+N7HiA== X-Gm-Gg: ATEYQzwwAhfVt2eTF+B4GCZH8gUc45efZWAs5mCXUp1VyT4CwmT2gfKmzfSOrRYkKu2 BRl0p9QlbqulMyU4/N2LP955i7meJkmTk0durcdqE8dnblzKo475Z2j62wyuQQ9YDRhFpUTSOdg D9F4u+GfSUkWrU9lk++UytmP+bPWSh5kQPCn3ldFga6vpfDBpWAK40eM9sViArjzBu+D5VuzPaK 4Uk73q4SV/pbxvSKEa0PNwGhF1EdWMOBrf8fJ22bC74v7fiZP7ulA4tG9SyjzpXU64xQUE3eHZy NiEShs1bqlf/xoCpC3BPALqF/ZqwRcJsk+iV82ImF6a1GbUYXjjifQobHmqSq2Qo60bjbgNVhy4 SEXxxmNFdRSe3Py3QHXmeIztlCrSNUQs7C7axg9i/fCv1ICBxd1iUc4A8dx2xl4YRyzKv2pwAEr wJ1reOFNbBuOAyd8qRfujxvBxQBW4wsXgi5rhCzL2w4kdm0HqQEE+d+WjTe58Q73pMo1zu94Rax V2D8LHylForgjatxBYeNrjmzCPrBZp5wA== X-Received: by 2002:a17:902:e550:b0:2ae:a7e2:e80b with SMTP id d9443c01a7336-2b0a4e0e487mr23771835ad.19.1774334402101; Mon, 23 Mar 2026 23:40:02 -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-2b0835429afsm128416545ad.26.2026.03.23.23.40.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2026 23:40:01 -0700 (PDT) From: Jingyuan Liang Subject: [PATCH v2 00/11] Add spi-hid transport driver Date: Tue, 24 Mar 2026 06:39:33 +0000 Message-Id: <20260324-send-upstream-v2-0-521ce8afff86@chromium.org> Precedence: bulk X-Mailing-List: linux-trace-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=H4sIAKUxwmkC/13MQQ6CMBCF4auQWVvTDimKK+9hWCCdwiygZApEQ 3p3K+5c/i953w6RhCnCrdhBaOPIYcqBpwK6oZ16UuxyA2qsNBpUkSan1jkuQu2oLtZX3tXkaiT In1nI8+vwHk3ugeMS5H3wm/muP6nU5Z+0GaWVscY+WzRXX7p7N0gYeR3PQXpoUkofx4Lc6a0AA AA= 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=1774334401; l=3002; i=jingyliang@chromium.org; s=20260213; h=from:subject:message-id; bh=kWMVHrbTgq59qsBF4CpPuynsRpdHuf4qfybAUgKcv1Y=; b=dfMXFcVFCiOJHI71GrEDcRWBXlTgiM2SynaQouSI8EGuy2k+Pi8LYvBDwf6lHmC0T/Yh23G15 5xiYrgKpCW+Bcn6RVOA6XgqL9LfcYcABPhbNEW7nCKYlr2kGEzFiAjH 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 v2: - Fix style problems and remove unnecessary fields from the DT binding file - 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 | 11 + drivers/hid/spi-hid/spi-hid-acpi.c | 254 ++++ drivers/hid/spi-hid/spi-hid-core.c | 1417 ++++++++++++++++++++ drivers/hid/spi-hid/spi-hid-core.h | 93 ++ drivers/hid/spi-hid/spi-hid-of.c | 244 ++++ drivers/hid/spi-hid/spi-hid.h | 46 + include/linux/hid.h | 2 + include/trace/events/spi_hid.h | 156 +++ 14 files changed, 2403 insertions(+), 2 deletions(-) --- base-commit: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b change-id: 20260212-send-upstream-75f6fd9ed92e Best regards, -- Jingyuan Liang