Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1013116pxb; Thu, 9 Sep 2021 18:00:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXte9Rv141kzzncjZ7KCHfDdizjw0r1C1EFXfyEDlkFN8ki02vs+KyaU3Iz/q+SaoY0jU6 X-Received: by 2002:a05:6e02:1747:: with SMTP id y7mr2044762ill.5.1631235620870; Thu, 09 Sep 2021 18:00:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631235620; cv=none; d=google.com; s=arc-20160816; b=XokhILZeVhjhKaccmYps0xElycCbBcQsXiLm+0DfSO8A38yZ2WK/J4M3PQI9goVOiL PyXu1kXGRymb+uKdbpLVfoHxX0QxAsNxPeCsgaecFxRz5tp10kAfB6FmIgHerxty5t3B ONuOf61tRzyQzl7LvjaNp50nMfMLbjjUZIxgFYmJgqJIcXpy/6XvLp0yTb8jYqGVizOO Q4S/mcMJCEpIv9Dz4t2tXl98bvx4y5yQRRV7MknjUgZLZ2ZutmX0JT8Q2gB9UYO6bGaW n1sCKSPyK4mVcD86r0oH1FyCROJXe6f8UFgn/ZgCipHV4G3pYM9/eT4+qSSvWU6jwwFM HQ5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Jr30H7LUDRQK4mC1GOs7D4myWoLLodcw+ekEs3DawtA=; b=PN86nkDap1VedytpczcKHUj4IdQQuaQm1c+k/IzW0WktWimUfGXQfdYOqz+IDQ0p6b 1aNxbtvsMZxr51m4dCSoEsz+JAnO5qXCHtoc2gVErkui+vMfVQQvifHHsNQg0ejRmeEv yDiT8SxHfqWhrkeOWytUL2yItPjyzjlyBQNJz5jn5Ibb/VhoqCV1rKA90lYEf8YpUNpR JajogkMsQprG2kMh11LLAzxCckztZPI8lra35c+ePr9K8YfxTFSCovKvFiLx5ZREzNf4 duSue3tP0o9i1O5s3qIHGPow+mYDrIw/vu4nvawBfTdVwV9hJjEUA42dFVfHEDGSuOj0 nwQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pgo8OwsK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si3853030ilj.3.2021.09.09.18.00.09; Thu, 09 Sep 2021 18:00:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pgo8OwsK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244893AbhIJBAP (ORCPT + 99 others); Thu, 9 Sep 2021 21:00:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:48822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234421AbhIJAXU (ORCPT ); Thu, 9 Sep 2021 20:23:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AABD660FC0; Fri, 10 Sep 2021 00:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631233330; bh=oKM4h4sSszh3tyXPxlVi2ZB8z/da0OOGWRHqYDw1HZY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pgo8OwsKEUFQ6y4V2VYf9UwvSm5vhD8PXK+x1ZFLKFKOWDveqwxmCq3K7ByUYLVJ7 BHP7K5foxL/wRxZYdOvV7v/PLT07MOi5jJAlZcBNPrGQxRzEhsEGPgWRBOQJRDgIht U8pURKLBWtlyxGWDljmQ3wBv2xS/r5n4tfuco57t3x3/cPibnx+MtEdO843ZQyvyF1 oUwuZgo4PRFWJIc8QLXGOBNoSE7vh7PiFFfqMzRJhW+q71e8g4z90BCQ1LMtU3U/oQ yMFbmY95X2nenoLEtXQGQDOf26ZaJqbJPK5QIpZoCrb7OBhWE1bWKNJv10rpkbkYkC kUDz9lm+82TOg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Ulrich=20Sp=C3=B6rlein?= , Jiri Kosina , Sasha Levin , linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 20/37] HID: sony: Fix more ShanWan clone gamepads to not rumble when plugged in. Date: Thu, 9 Sep 2021 20:21:25 -0400 Message-Id: <20210910002143.175731-20-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210910002143.175731-1-sashal@kernel.org> References: <20210910002143.175731-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ulrich Spörlein [ Upstream commit bab94e97323baefe0afccad66e776f9c78b4f521 ] The device string on these can differ, apparently, including typos. I've bought 2 of these in 2012 and googling shows many folks out there with that broken spelling in their dmesg. Signed-off-by: Ulrich Spörlein Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-sony.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 2f073f536070..cdff43defe88 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -2847,7 +2847,8 @@ static int sony_probe(struct hid_device *hdev, const struct hid_device_id *id) if (!strcmp(hdev->name, "FutureMax Dance Mat")) quirks |= FUTUREMAX_DANCE_MAT; - if (!strcmp(hdev->name, "SHANWAN PS3 GamePad")) + if (!strcmp(hdev->name, "SHANWAN PS3 GamePad") || + !strcmp(hdev->name, "ShanWan PS(R) Ga`epad")) quirks |= SHANWAN_GAMEPAD; sc = devm_kzalloc(&hdev->dev, sizeof(*sc), GFP_KERNEL); -- 2.30.2