From patchwork Thu May 31 12:10:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ethan Lee X-Patchwork-Id: 10440971 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 EAECD602BF for ; Thu, 31 May 2018 12:10:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D70EF2917E for ; Thu, 31 May 2018 12:10:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA63E29197; Thu, 31 May 2018 12:10:37 +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 762FA2917E for ; Thu, 31 May 2018 12:10:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754897AbeEaMKf (ORCPT ); Thu, 31 May 2018 08:10:35 -0400 Received: from mail-yw0-f194.google.com ([209.85.161.194]:35537 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753986AbeEaMKe (ORCPT ); Thu, 31 May 2018 08:10:34 -0400 Received: by mail-yw0-f194.google.com with SMTP id v131-v6so4291866ywg.2; Thu, 31 May 2018 05:10:34 -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=QCnOOfkMNDENSPH9lsLm0egLQYE1yVRzINOWC9AdbvE=; b=olPvZJ3zPMaFIOQKTkqtIg9Eft5wbRLbz1a6eaGxLF1sDTbjRzhOwkrndwE9H7R+DP Z/NzZe5bB49Ul3+oF4KkuSBpuv6vv8fBkbkSnDAJMAV0kaVGWgti0Gz+hMyc+jnE9B0z UIPLy3Oz3yVYl2qKE27tku3nU8b2SinoKdqoSNDCU+XQJmgt84kzDgtmB2cN1/SO6Wt8 vmZ0LA9yx8XzZWcdM99YHXZ7+NgTOR/lNmvMz5B93oLZL2fcmZCLoIvDedtHIo1b90MF +a5EOLUlAMIKGYJLlsFkrjmAo5mSw1N+46b6JK1Vv5QBZ0fHIpPITR9sQjblJ0cg6NXU g5Dg== 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=QCnOOfkMNDENSPH9lsLm0egLQYE1yVRzINOWC9AdbvE=; b=ROYY9Jsa6cqUg2535ZKDBe0XODGrTrgTQ+eEdynwLjafn7aXMRKlEq5zJqp91LDnnI h4h4tANJ1P1tsQrDo3oawzAGtjeU6jv7wF0coSsfhf0hAtcWiqoW7x1w4wk4igtZ4iiT IcafQLq3dBGq0sCd67SQrQDbVZvQKAnLa/A7N2yTIqpuHO9ibrEuW5ku+veBMzQiKTXJ 2ZRVueKUsVqA4ImyMfS+TXJtUHc5HoJkqJ+cWF/T2fWQ/i384v2q3Fi1Wjvjcas7MJMW 97oNoycp8q5I5x1HYp1nvQEJE0tRFVI0oIyu6zPA7OiRZyqo9jadvwGQBs4biaFRiLdG IwVw== X-Gm-Message-State: ALKqPwcebu3fFF7kgtHZcEi3zlRjO4t6KXp7tJAekvfMXKBcG2DUGozA cz64xwRnejI30EN+rvbuToXQOdo+w3E= X-Google-Smtp-Source: ADUXVKI0dmK0QbtWxUZfqTS4ojIlBRsodr7hThLwW8p18FlJmDpk7QRukvFab+2u20GHiOfOZKPatQ== X-Received: by 2002:a81:4784:: with SMTP id u126-v6mr3520005ywa.95.1527768633688; Thu, 31 May 2018 05:10:33 -0700 (PDT) Received: from flibittower.hsd1.ga.comcast.net ([2601:c6:c87f:f332::97b5]) by smtp.gmail.com with ESMTPSA id 138-v6sm13224838ywq.6.2018.05.31.05.10.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 May 2018 05:10:31 -0700 (PDT) From: flibitijibibo@gmail.com To: linux-input@vger.kernel.org Cc: hadess@hadess.net, aicommander@gmail.com, Ethan Lee , stable@vger.kernel.org Subject: [PATCH v4] xpad: Add GPD Win 2 Controller USB IDs Date: Thu, 31 May 2018 08:10:19 -0400 Message-Id: <20180531121019.18228-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 Cc: stable@vger.kernel.org --- 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 */