From patchwork Mon Jan 15 14:45:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Staudt X-Patchwork-Id: 188211 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp1750206dyc; Mon, 15 Jan 2024 06:52:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWM87G10ly5dM9X2zyDmyvGrwQ9RaH8o8ciyqbV9JIqX88W6YOOPpsVHo+dIMFP6dwJ610 X-Received: by 2002:a92:cda6:0:b0:360:63c0:545a with SMTP id g6-20020a92cda6000000b0036063c0545amr10550258ild.6.1705330368566; Mon, 15 Jan 2024 06:52:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705330368; cv=none; d=google.com; s=arc-20160816; b=VSsS9bAssfDDhdhADGkiLozAjsHTREj2jrdCE2LwaNGB3G0Trn8Oh0Q8qgAgTmZJWP X4XRf67aDYG8k2MYD7F3jwrFK7Q4u6J02OJRdQmQLfFRTig3TcVLjCx1nhLqW26FlIg0 GWV5uWhWRwiC7cYFD+BDoMg5W3QME1aGQR5nD+qpTgWF/WDFZ8T8B8XD4PxSaWFgxjng VQlyTx/ldWAaDg4WcPawC3ixe8h0DvNl/puuDELmwHdXWvmxGq6naXtnMdG/qJ52GumG sQLZ27zhCzoyQVpXloHU/04TJxB0SNSaS/66YPUgEdG/L74jsNMZiX9fa9iyQX/M65Aq ZpSQ== 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-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26142-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s193-20020a632cca000000b005ce016cce2bsi8725931pgs.190.2024.01.15.06.52.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 06:52:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26142-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-26142-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26142-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5AE0B282212 for ; Mon, 15 Jan 2024 14:52:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0607819461; Mon, 15 Jan 2024 14:49:07 +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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788168496738538519 X-GMAIL-MSGID: 1788168496738538519 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 },