From patchwork Wed Feb 7 16:36:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Staudt X-Patchwork-Id: 20061 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2354257dyb; Wed, 7 Feb 2024 08:37:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVS8PWBVIUVS6GdFU8iIFH7u/tgUy+a4AHVvwuFbvzmjrxBjknDxwknVPgPSbiHFSuSzC/9a37WMJ33CkXyTyFnEubpuA== X-Google-Smtp-Source: AGHT+IHjVnfpcXj7D0P+5dC4YeUd1X7fma0o5iHIrQ2+/erCuKSPGRkRqyo+9LxYTjaZ2GOgGxLV X-Received: by 2002:a05:620a:90f:b0:783:fbce:b30f with SMTP id v15-20020a05620a090f00b00783fbceb30fmr5924411qkv.40.1707323875161; Wed, 07 Feb 2024 08:37:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707323875; cv=pass; d=google.com; s=arc-20160816; b=X7+C8xurBATZH+FLwdM3Jg83GZrFZfHw4xAGtjgcH4tsqqOIE7kfQtJr6b8dzT/C9F fmfIKXdWAX4HZ2EboCADIYF8kXs7PYO/sAGTzh/bHkngfaS1LXciYzDIDMX7yMyTDSMD Pmk6SMYK7W5jBp8Jxk7/wUPiwXknZd3wx6saLmtBtXlR3rFt3R2L3926O9McN7p1SoNg SoVYNo3thAc1pof1EpmrG1ix7I0eMMWCwpvW9zWdxGF7fLIasWPq327h5UB8u2q+Hn6l PMzx1kBpCY2afsiz857OcPIKmIF63+HgZ1d94LDZFcw6i2t3TctPkjBtLDGouWmhruXF usNA== ARC-Message-Signature: i=2; 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:message-id:date:subject:cc:to :from; bh=7CQsCfDT3Lfw9A3gc2M78hk5IecY8XIKfDbVqMY02cM=; fh=B9lH++2RTgifxx+NSt9sulpRVRx8NXkc4HbUqbMs7jc=; b=U9+530v2UP75IAqmeiuhrnPeGeorNrXhx8Uqt+hnRmxB0XOvKFDUdgRG0oKY/d64gv ccDl0mFuF8sPw3tpidGAbUFqND4uEOdG+o7IWx/mnksn3EMUiWhSb4LslrA9QGaLzUBI MN4DbDOrKeY4JQFCXyGadk8HaqdX3QTx9n9Vwk3jCrYn0jU1anwn3dSPJcdW6OdeRA/o bPsU2VWpx7qUJuwGhIEKv+B4cV7b6qgHZe+Hx6wGVSXh8nTuZGHpIkbnvrj3qwvAtKd6 SRS9IxK5iA4tj7DjeWuUowNCNR6+xnbvLEVcnRH5cGcNRosEbSgc+oHRjnI2ZBilFv69 0xGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=enpas.org); spf=pass (google.com: domain of linux-kernel+bounces-56776-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56776-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWUQpRQoJi/A5F/F6Od4jRPci155n0R7wecwfqmQUKZ+1TkEsrSsA3hnuzhDY+bX374l9ITYAxhZ118Oo78ROC+TEzftQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t25-20020a05620a005900b007855b25487csi1342926qkt.763.2024.02.07.08.37.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 08:37:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56776-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=enpas.org); spf=pass (google.com: domain of linux-kernel+bounces-56776-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56776-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CDCBF1C2219D for ; Wed, 7 Feb 2024 16:37:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E19AF81AD8; Wed, 7 Feb 2024 16:37:40 +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 E6A42446C8; Wed, 7 Feb 2024 16:37:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.38.239.100 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707323859; cv=none; b=Ir3V5S7BtxV5cEBfxOnCqvtNPGpAHtxQlNaJkNHVCzd7I6+WiZiL084ybBJbKrOwGWs3S34ji8hzFA6A9E/E4fGct3g+IaSDMjSilqtnv8176bguJpqb8IsP8kJkP5bYBGQTp4CrCT3Va6wEI7GHFPpWj6zKppq6AC4rsDNWnoc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707323859; c=relaxed/simple; bh=XTPLse/pxfLkpk4yC3Bfz0Q5NTTh2ZLPQ8tOGCr2Onc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LwsarsAUpkFMuF8uvR/dLCPFJDq1FVonJFNt4I+0JFPBDUbuJAgTzqeFYUEmf6/piIaWphB6plF+VNnY8D/ykC/OSrRLe03BiPdOfxqJ1FLDe2wQ27i0swODfXUxjkt6U6+MumHwOu+W6Jrjt90K5LR6TuOh8KBDBKmKnzYCoAU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=enpas.org; spf=pass smtp.mailfrom=enpas.org; arc=none smtp.client-ip=46.38.239.100 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 86550100072; Wed, 7 Feb 2024 16:37:26 +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 v2 0/5] HID: playstation: DS4: LED bugfix, third-party gamepad support Date: Thu, 8 Feb 2024 01:36:42 +0900 Message-Id: <20240207163647.15792-1-max@enpas.org> X-Mailer: git-send-email 2.39.2 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: 1790258839490267274 X-GMAIL-MSGID: 1790258839490267274 Dear hid-playstation maintainers, Here is v2 of my patch series, with the discussed changes. Differences since v1: - Dropped patch for 7545:0104 (SZ-MYPOWER controllers) - Dropped patch for DS4 clones without a MAC address on USB - Changed hid_err() to hid_warn() where things are no longer fatal - Simplified goto as return in minimal report parsing I've included the patch to simplify the PID/VID mapping to controller types, since the previous discussion made it sound useful for future support of second-party controllers. Please feel free to drop it if you don't think it's relevant now. Thanks for your feedback! Max Patches in this series: [PATCH v2 1/5] HID: playstation: DS4: Fix LED blinking [PATCH v2 2/5] HID: playstation: DS4: Don't fail on FW/HW version [PATCH v2 3/5] HID: playstation: DS4: Don't fail on calibration data [PATCH v2 4/5] HID: playstation: DS4: Parse minimal report 0x01 [PATCH v2 5/5] HID: playstation: Simplify device type ID