Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp577193rdb; Mon, 15 Jan 2024 06:52:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IEyda/1t4n5ZnW5qe8Hi8WKA8aSDC9HlOtDpytQXRln4vr/O7Q1eWPn3EWvGveWCGiv8DMD X-Received: by 2002:a05:6402:358d:b0:559:5523:509c with SMTP id y13-20020a056402358d00b005595523509cmr383211edc.118.1705330361759; Mon, 15 Jan 2024 06:52:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705330361; cv=none; d=google.com; s=arc-20160816; b=IH3ke3IecJx1d0qCIIhMFuImxMBZR7uhUPqLqEbJWXE5Hij9cTOT1XvGky7C6J9/se sJjRkChp1MflFBv7Cuw+3rSWtBLJIJuZTFXWAimWgeHwsPo6Cqz90VkMgPWrad8OXpsY eixHroo+oo4GY4MvkzWN6Hh0nAmt4HYGUhAzc6oOV2OD/9YtG3sgOPG+PPC8pWsWwDxV aBnxete60hMDJe6vUdgQykn0BZFdqPZ8i9k0kavYwgE85LiImCd7QyrIkHoR6qSJ/Axi 673CjckqUCxQZMVdpYE8sU8Iln+wtkKHo6uefyKSchjWj07bLExyfzTQfPUCuAVPlYfU F01g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=EScg+YNM1Wa18SHzJHlO1KlYOZOlXiE+1nqdFlpzLcM=; fh=3M1PHg4byxu2MygWip944LqLZSq0Urk5Qa4iYXrexb8=; b=sHe1rpvzRe9q217m3NPq/bU4erJh5d7ysAFbh5fOBREIFhbP3KDw0F3Lm3z9+bs1wz opUDvtSL+HME/vqTCWLzXjqldX3OlpZnokkA+eumBSVhrOWVMkUsGbKxa/ACYUqKHL58 WslWcGD737uDQS0ELnnXIaNlEfyctto+lxWuznQi1FEcmVOlcFjtSJ30NMr4W/I1q/ve BYi6fzd+vi0EIJbArdZG2un4wbvEvBJ0R9UeV5ZLMSn+7+LiJMP32NBZz9hNTGeicktO RXHqM3kddFGYq5DXqB3kqx9rzey8ALqny4ge/R/rxnqcnThOhiTqNassqKjRRR74gnDt Uulw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-26142-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26142-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m29-20020a50931d000000b00558dae9339dsi2906100eda.393.2024.01.15.06.52.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 06:52:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26142-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-26142-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26142-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 847B91F22A6A for ; Mon, 15 Jan 2024 14:52:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01E0719443; Mon, 15 Jan 2024 14:49:06 +0000 (UTC) Received: from mail.enpas.org (zhong.enpas.org [46.38.239.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A6D318EC8; Mon, 15 Jan 2024 14:49:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=enpas.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=enpas.org Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id 4A1C7101655; Mon, 15 Jan 2024 14:49:00 +0000 (UTC) From: Max Staudt To: Roderick Colenbrander , Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, max@enpas.org Subject: [PATCH v1 7/7] HID: playstation: DS4: Add VID/PID for SZ-MYPOWER controllers Date: Mon, 15 Jan 2024 23:45:38 +0900 Message-Id: <20240115144538.12018-8-max@enpas.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240115144538.12018-1-max@enpas.org> References: <20240115144538.12018-1-max@enpas.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit It seems like this USB VID is not officially assigned, so let's create a hid-ids.h entry without a vendor or product name. Signed-off-by: Max Staudt --- drivers/hid/hid-ids.h | 3 +++ drivers/hid/hid-playstation.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 72046039d1be..df831ab464a4 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -22,6 +22,9 @@ #define USB_DEVICE_ID_3M2256 0x0502 #define USB_DEVICE_ID_3M3266 0x0506 +#define USB_VENDOR_ID_7545 0x7545 +#define USB_DEVICE_ID_7545_0104 0x0104 + #define USB_VENDOR_ID_A4TECH 0x09da #define USB_DEVICE_ID_A4TECH_WCP32PU 0x0006 #define USB_DEVICE_ID_A4TECH_X5_005D 0x000a diff --git a/drivers/hid/hid-playstation.c b/drivers/hid/hid-playstation.c index a0eb36d695d9..0aa474f1e96f 100644 --- a/drivers/hid/hid-playstation.c +++ b/drivers/hid/hid-playstation.c @@ -2747,6 +2747,10 @@ static const struct hid_device_id ps_devices[] = { { HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER_DONGLE), .driver_data = PS_TYPE_PS4_DUALSHOCK4 }, + /* Third-party controllers identifying as "SZ-MYPOWER" */ + { HID_USB_DEVICE(USB_VENDOR_ID_7545, USB_DEVICE_ID_7545_0104), + .driver_data = PS_TYPE_PS4_DUALSHOCK4 }, + /* Sony DualSense controllers for PS5 */ { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS5_CONTROLLER), .driver_data = PS_TYPE_PS5_DUALSENSE }, -- 2.39.2