Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2566318imu; Thu, 29 Nov 2018 07:01:02 -0800 (PST) X-Google-Smtp-Source: AFSGD/WCFGNcYYpoJRbdEetli1kahZEu12vkXFm/wFO1YJhtGqRJbsyzhchb7z1zyXyUZm1u6St1 X-Received: by 2002:a17:902:b406:: with SMTP id x6mr1680449plr.329.1543503662229; Thu, 29 Nov 2018 07:01:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543503662; cv=none; d=google.com; s=arc-20160816; b=m+ugJH0CaB/PpcoZTRmDAy1k/eLretrutk6JcOsfmJFaizW/JlA/uqYLBjoT6gv9k6 ZZ+kSm5ltCOgOyp17eI/fvU0eT4INUsanV5fvr9FmuaxNV2dCy7PxYik1NtFkDCMb75O rTwulTqetBKkOhqkxCnH0qz1D7aUD1sevuOnERZQcK2sCXsCC/lQADnTNWETipvIU8/f hc7rGtvWo1hXdX8OHF4cAz/iImO+7YS+VFDnvUeF+9hEJq9cqvBLdlir8pS6JvIPzHak RSRlSRuOXYUmwOAxDP0kd5WBNlXbrmuL3y7g4FdqjCxaDXyLAcmwZx+wLO+nPjvlLcdI mjEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NF2OELHp3iUO7Z+BdEAlypa39HqXVgVKmWijwu1moZU=; b=s1BvZe7IWrA506rMbl4U/HHmE4Tq2rOviZkod5R7I7iaXlR5Gian6jS3niGMpBDrz1 ImbYwzBGC4QSTtEy8irfNHhMX94jV1xH5Vpszo0jV4h3Y800DT7JvpuHe0yVj8qgows8 eitz37CZlSYYp8Y3tJ8pbW94CNcggtqJ/M05vqysBWnjdSFiVTzA4Q3Yc3JrzFVmDVNY iLzGsvhVN+4+HTDfilyOnMOplsWRtzB4QRFDrPMVYiNvMJYxckbwiHmkCfGQ6Uysn98M aKOA6m+vnkc2lxvlALcSmnhw2vbhupen48zbwzSxJ7BmvH+QT46G4UomHsEDZgNLy68N IIew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CdQbYAd2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si1963863pgl.485.2018.11.29.07.00.35; Thu, 29 Nov 2018 07:01:02 -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=@kernel.org header.s=default header.b=CdQbYAd2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731067AbeK3BYz (ORCPT + 99 others); Thu, 29 Nov 2018 20:24:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:48002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729808AbeK3BYx (ORCPT ); Thu, 29 Nov 2018 20:24:53 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2F17E205C9; Thu, 29 Nov 2018 14:19:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501162; bh=aAFCEwZBZ4HzIX26eg5dW3CSARU/eNkH4/srGc/vgd4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CdQbYAd2vN9WuwCPHauI5UvQo80Fel65AHcVB1q67gXM6HgJaMRGF5INDXnoEa4Gt rh5SYWTjdj9LJ/M+ZAN9nu2WGXH9cyrNh4AMnlDvYQJfX7u70CGN30f74X3QrYrSLj wuJBQlL6f9s5p5UlXIxecwpKrLESlPZv5G0P0LkE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Enno Boland , Dmitry Torokhov , Sasha Levin Subject: [PATCH 4.4 67/86] Input: xpad - fix GPD Win 2 controller name Date: Thu, 29 Nov 2018 15:12:32 +0100 Message-Id: <20181129140115.532600299@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140109.832117862@linuxfoundation.org> References: <20181129140109.832117862@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit dd6bee81c942c0ea01030da9356026afb88f9d18 ] This fixes using the controller with SDL2. SDL2 has a naive algorithm to apply the correct settings to a controller. For X-Box compatible controllers it expects that the controller name contains a variation of a 'XBOX'-string. This patch changes the identifier to contain "X-Box" as substring. Tested with Steam and C-Dogs-SDL which both detect the controller properly after adding this patch. Fixes: c1ba08390a8b ("Input: xpad - add GPD Win 2 Controller USB IDs") Cc: stable@vger.kernel.org Signed-off-by: Enno Boland Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/joystick/xpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 66cc37b41113..69b44aebaf01 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -128,7 +128,7 @@ static const struct xpad_device { u8 mapping; u8 xtype; } xpad_device[] = { - { 0x0079, 0x18d4, "GPD Win 2 Controller", 0, XTYPE_XBOX360 }, + { 0x0079, 0x18d4, "GPD Win 2 X-Box 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 }, -- 2.17.1