From patchwork Thu May 31 01:14:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ethan Lee X-Patchwork-Id: 10440127 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 72A40601D3 for ; Thu, 31 May 2018 01:16:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64415291A4 for ; Thu, 31 May 2018 01:16:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58E74291AC; Thu, 31 May 2018 01:16:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D1CA291A4 for ; Thu, 31 May 2018 01:16:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932577AbeEaBQb (ORCPT ); Wed, 30 May 2018 21:16:31 -0400 Received: from mail-yb0-f193.google.com ([209.85.213.193]:43547 "EHLO mail-yb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932563AbeEaBQa (ORCPT ); Wed, 30 May 2018 21:16:30 -0400 Received: by mail-yb0-f193.google.com with SMTP id w3-v6so4450597ybq.10; Wed, 30 May 2018 18:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=TVM14ZYDR0SrJc2GoWQy6MbR16+N1f8OS0jUx4Cxipo=; b=Y9BdeeNePNec/OmA1GWs9CUmCjdFId4MeJ0d8ymVdODQycGwyLz2Vix6sT3h4EvmMY xJ8Dq8HSQIDns/xFhLRdE3oaD+OWXCv9gJvi8mmY2F0nwDRxTsw/vC4gM4o7U6Lgbci2 p51OgQlhbEUAqJX68XA/24Si41VqlYX/fyItmCThjFm4K5r3L2Jh2RhlTCzaKv7wJ5IY ZmsycpL7nC5nIENUg1Yrnw2IEVm8IXd6xObIKu9DCU8i70G8vfpV/4cy79ivle6QZbOq YwhDfmHV2Wqd1ZbdAhDgI+Aye/VNG74FMJMreC0R0hEgbXycKsyYL/ICj5Mt63ntwzQk 8tvA== 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=TVM14ZYDR0SrJc2GoWQy6MbR16+N1f8OS0jUx4Cxipo=; b=Vrr6UUK6rlvQwWNcJCg8FkyLBS9QfvLRzIgHkO2QSTziYBMnoB3tNreQprK8hrjFT4 4rYIjf3BBU9eAEt7VVMTX1mWq4GTlQ6bYfxriatUpTTLplBn6YG9tsddZ14UVUsqXPx0 uzElZXn0UewrIg/VBPAjuIW78syJecvEA6u/coMaawm/bzhYSdwuWzTTyzTL3ucUH36+ sdFcrxeX3EWtG3y7/mmVCjMIrPm/D2JaEdaue+hviz4tL7lhCnoepCbfITzRF4ht4WOO upHhJK+M4snTlzWqgV1XMEGVak6EIIn0Wm0AD14NsuBeJBtZOBEXgVi/A1LWrU3dq9Nu xyDw== X-Gm-Message-State: ALKqPwe9p/t4mEjOPwpIiXmyfxD/ksSx8LqfZhK9JN9xLCTfzSoAcrt4 RDj9N38xgPbVP9kLfb+Hj4TQg8r32O4= X-Google-Smtp-Source: ADUXVKIthSWECntN8CQKykdxqQSO5F+FeCwU90iOLUHBSWUmm5z18Y1xtgrwVDTKocT+0nBt5LaILg== X-Received: by 2002:a25:707:: with SMTP id 7-v6mr2922928ybh.38.1527729389806; Wed, 30 May 2018 18:16:29 -0700 (PDT) Received: from flibittower.hsd1.ga.comcast.net ([2601:c6:c87f:f332::97b5]) by smtp.gmail.com with ESMTPSA id y21-v6sm3402463ywd.0.2018.05.30.18.16.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 May 2018 18:16:29 -0700 (PDT) From: flibitijibibo@gmail.com To: linux-input@vger.kernel.org Cc: stable@vger.kernel.org, hadess@hadess.net, aicommander@gmail.com, Ethan Lee Subject: [PATCH v3] xpad: Add GPD Win 2 Controller USB IDs Date: Wed, 30 May 2018 21:14:59 -0400 Message-Id: <20180531011459.2911-1-flibitijibibo@gmail.com> X-Mailer: git-send-email 2.13.6 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ethan Lee GPD Win 2 Website: http://www.gpd.hk/gpdwin2.asp Tested on a unit from the first production run sent to Indiegogo backers Signed-off-by: Ethan Lee --- drivers/input/joystick/xpad.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 06e9650b3b30..a89b81b35932 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -123,6 +123,7 @@ static const struct xpad_device { u8 mapping; u8 xtype; } xpad_device[] = { + { 0x0079, 0x18d4, "GPD Win 2 Controller", 0, XTYPE_XBOX360 }, { 0x044f, 0x0f00, "Thrustmaster Wheel", 0, XTYPE_XBOX }, { 0x044f, 0x0f03, "Thrustmaster Wheel", 0, XTYPE_XBOX }, { 0x044f, 0x0f07, "Thrustmaster, Inc. Controller", 0, XTYPE_XBOX }, @@ -409,6 +410,7 @@ static const signed short xpad_abs_triggers[] = { static const struct usb_device_id xpad_table[] = { { USB_INTERFACE_INFO('X', 'B', 0) }, /* X-Box USB-IF not approved class */ + XPAD_XBOX360_VENDOR(0x0079), /* GPD Win 2 Controller */ XPAD_XBOX360_VENDOR(0x044f), /* Thrustmaster X-Box 360 controllers */ XPAD_XBOX360_VENDOR(0x045e), /* Microsoft X-Box 360 controllers */ XPAD_XBOXONE_VENDOR(0x045e), /* Microsoft X-Box One controllers */