Received: by 10.223.185.116 with SMTP id b49csp1011300wrg; Tue, 20 Feb 2018 11:35:14 -0800 (PST) X-Google-Smtp-Source: AH8x225hPTPhVdjklcE2XwmC7/kVTVEGKLnGnyuevrwUbxjdjVvfYL9Ue4vmSiH+xN+DAf0H8Det X-Received: by 10.98.247.9 with SMTP id h9mr693915pfi.212.1519155314166; Tue, 20 Feb 2018 11:35:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519155314; cv=none; d=google.com; s=arc-20160816; b=GEGdCJcmr3RVy19yhw5y1kDx3zdRVvF23f082e04feu5Af2Ahd0BF7tI9M3sQ8V2fd vzaxU1tsXMRtPvOaKnbuYoQd8wzuseAdAd5iF/PeF5OpAViFjMSM++oz8ZjoFVoVCjIO YOUHXwhEPWrChneYl7r51lDr2JbgoVjKi7EZaXG8cV/zPCENzPnw+FKVzqkrHr89DZgn 9ocOL1zqlKp9ofWUVpvvF9vdUyPKbEg8/0dZwMzGowoVBIKsU0J9OQJpy3GQ3d66ysnC ANECQorgyTQYcc3g6XEdn+0EQaT2qUZ//jjvq9jJYFrkU+XzQBhwc9jb4HDrI4XiRHSR fIRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=o1UjXN2lHx/Jr53oypea+ccRyPTASgd7pjNpNxRwi+s=; b=XyzphfGBPp9Xr9+pQewz0grHHCk2OfthlOedXj3w2T//xgmM+GOGGQLkuBsV2emIFh k4BpNfsMRLCHHNsM2ik46Lt9TvO9/Wgb6B3o4zr5mT509GF3kB7GT36Lm4alVXm7LCql vrSh0fkfPvfVdEViKCqiFecD1Z6PZDvuoECdfNrG35pTgr0HfvbdJK8sUrw1H+X3+G9l VwzMSOK0QmOg5SyoVOOCit7XQtcf09zrbI5O3mqN9Z9ovY8phkR9L4cH5h2WFqaEwWuo ur7HeJmcuI7eT/duvDdW2tBi9/6+Gaj87Y3wza4AIPtwC/882ZJnuA6gT8nOUMCiPxDK L6HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lmNmTxJK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1-v6si235554pli.394.2018.02.20.11.34.59; Tue, 20 Feb 2018 11:35:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lmNmTxJK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752216AbeBTTdh (ORCPT + 99 others); Tue, 20 Feb 2018 14:33:37 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:33539 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751994AbeBTTdf (ORCPT ); Tue, 20 Feb 2018 14:33:35 -0500 Received: by mail-wr0-f195.google.com with SMTP id s5so17661765wra.0; Tue, 20 Feb 2018 11:33:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=o1UjXN2lHx/Jr53oypea+ccRyPTASgd7pjNpNxRwi+s=; b=lmNmTxJKVQuUmOoQO8PWAZRu+S6PvKvU++y+c5YQjVq8iUfsPOIptnPp7Mx7+5ZFfN RQE3ZtpcNdD6svAFxFXnzla8Z4NkDCarIAc2dk/AUZuh3IJ2HsFmL0aG9bPoXxP2FwI8 VFWWVlZ2B/BGGRq1+DdPZE/JnQNaAQJgabtdqr/4uXCQMHEuQM4fMTBbIsxI688gg94R 7I2A7Wa/JOs1DoUWs7w4bmWpfXGyf2icEHGywJFZEPNXgqVyiDLRz2fgBZllpOnOMeo5 DXkYWDr+G7A//UK07kfRylUXyeDw6RTdmBgHJsURKevo72sTC7Psnq83q9bHjd4LCG+S lkFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=o1UjXN2lHx/Jr53oypea+ccRyPTASgd7pjNpNxRwi+s=; b=oavRkETvjBd5+mv2sax8G7MZtvA5HaOo1uzhdUNg1rdMifHajBNSO/OWAErjqtBDAf La5ZB1IO6HmeRjQ5GjEN5R0PKwF7HqtzoejhDMoIddvESViCdKr9S2abFQvODNHg8tAP ey7e2pl5VUujrzg14xY7/DNsf+GxjfmH9k/xDiz5I2+Y7fqgP5V8kjPHrkz5/bOgG9IP xpVF4DwhlCsaZd/EX5fz5mS3T+c6m9FUGxenMhJKSbLHgKxy4kr+FTRXxVDVocTLJkMh xTK+uAF0DQwVNKQcTcNEspO5JLGArcIovOS0fXAFuDrLU4exzPBD84Xh1fNWiqZSPkc0 NoZw== X-Gm-Message-State: APf1xPBM4Lf3A0FwpgoxEtnxFGrYaBUVNC20FutypagbxL2i0vuGDf9w O2QCxgHmgzKs22hFrItfuW0= X-Received: by 10.28.167.151 with SMTP id q145mr103493wme.64.1519155214476; Tue, 20 Feb 2018 11:33:34 -0800 (PST) Received: from localhost.localdomain ([2a01:c50e:5126:7a00:c17:3826:4af9:bc38]) by smtp.gmail.com with ESMTPSA id k63sm17311520wrc.30.2018.02.20.11.33.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Feb 2018 11:33:33 -0800 (PST) From: Rodrigo Rivas Costa To: Jiri Kosina , Benjamin Tissoires , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Cc: Rodrigo Rivas Costa Subject: [PATCH v2 0/3] new driver for Valve Steam Controller Date: Tue, 20 Feb 2018 20:33:03 +0100 Message-Id: <20180220193306.28748-1-rodrigorivascosta@gmail.com> X-Mailer: git-send-email 2.16.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset implements a driver for Valve Steam Controller, based on a reverse analysis by myself. Notable changes from patchset v1: * Remove references to USB. Now the interesting interfaces are selected by looking for the ones with feature reports. * Feature reports buffers are allocated with hid_alloc_report_buf(). * Feature report length is checked, to avoid overflows in case of corrupt/malicius USB devices. * Resolution added to the ABS axes. * A lot of minor cleanups. Rodrigo Rivas Costa (3): HID: add driver for Valve Steam Controller HID: steam: add serial number information. HID: steam: add battery device. drivers/hid/Kconfig | 8 + drivers/hid/Makefile | 1 + drivers/hid/hid-ids.h | 4 + drivers/hid/hid-quirks.c | 4 + drivers/hid/hid-steam.c | 703 +++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 720 insertions(+) create mode 100644 drivers/hid/hid-steam.c -- 2.16.1