Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp216558rdb; Sat, 27 Jan 2024 03:52:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEUnJSGBapX/xUPWrn6Ahx0kZ7+N50PJmh6JhaB1d0ft3qOphiki/FtrltoY45CylM9bPsj X-Received: by 2002:a05:6359:1583:b0:176:cf18:d0b6 with SMTP id jv3-20020a056359158300b00176cf18d0b6mr1827766rwb.7.1706356364490; Sat, 27 Jan 2024 03:52:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706356364; cv=pass; d=google.com; s=arc-20160816; b=TJYCkKx7EosbYghECvftqOQAuB99cioOpEfUsiYY81CMFUKkMgVd2aafrBGrewrl6G nX8kyxkzwwi+Ak+ZYa0s5Fjo36iWSRzKhgXvLNvZJ7B8etyBxaqS0WJnCdj/52DntfSZ 6xn6UmEVQS6jfe5dZns8SOi5sk+F0OSmkYqKktVMKg2ldbVK+NfGOdiRBF/oaXWvU4vc C+BNgJCW2jSviObKqagHw4laalDFIdLcMJr5vyOeXRKnnO7WV0of7vVR5f+bB88mL/k9 eOIfhW0ThyBwp++FqmhRHrspP9y4JQy/iJlnApRy0z1iWhiOXKguPxgdfkDWfuS92coZ afcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=smEVPDJ1TMvwMUm2x05BLrsaQnBayyX2ir3dtq9gJF0=; fh=Bg4S0YtlW4LSHtLnmtCYl8nVwnFM9wSJgO0SxJCvkyE=; b=FY0vnkJuFgWchGCI3OS57NYqZWp4ok0O6ALSfaQjGwVqn4NZD4X0ElgWF3jcta0nv+ 8O35hjEmgnpjkPSCgRdgqTfO+kU2CcIaQJgOtiwajAdbOhKrs0/OE0BBQvftd6pMwq0K iXcuRq5rqNZ/MrrIoqnPtjKc/5CFQbOv074KNm5aAGmmN1qxGv/oZPszS0BUSeIOKWxE gMWXmqkbnnReKiD4ZJK5iBzsv+meXu59yjsKMkWgu1dO4YCEKvPYnp8fa2QiRHT2fAoD s47SwKFhKGrMyArPSYPC72hSWB/BVySaCVCqNmcrTSuXb7UTwlFNVFviqH5/zre6/dMr Xbig== 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-41182-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41182-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l71-20020a63884a000000b005ce01d1c38fsi2686284pgd.367.2024.01.27.03.52.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 03:52:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41182-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=enpas.org); spf=pass (google.com: domain of linux-kernel+bounces-41182-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41182-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 23491281F89 for ; Sat, 27 Jan 2024 11:52:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 05832208AF; Sat, 27 Jan 2024 11:52:36 +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 81690200BF; Sat, 27 Jan 2024 11:52:31 +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=1706356355; cv=none; b=hzU7c4PW3FRYqkj7UpZKFQf9Pju+hJ5tY5BkCUVBvRw+q5Vj1WhMKKoK63jBYe7BPPwhI31RNaJ7Yd2v94fFLVZ513k2BP2N510qeanJRODlnSZwLLLiZhb1QLLJ7cZlBJksF7VGjaS0VCS+QXlZv0cXme6RUi3+90mIzLtTdww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706356355; c=relaxed/simple; bh=smEVPDJ1TMvwMUm2x05BLrsaQnBayyX2ir3dtq9gJF0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NXQKRu9nXnHjnIzxDVbBMH10t0ATFhRb7se/M0R8JNqVlBB5cUSsaKWTpIA9Hb9odsXjCwg+vKTZQsIESVfcEWxDMO3ffDrALgruHT9TFr06lRfbl1ldTTrNbnyYYMNlJJ0ExulCMJRBFGnRJaiI/n4CE+H9f8YXBYMRRggRKIc= 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 2EE881015FD; Sat, 27 Jan 2024 11:52:27 +0000 (UTC) Message-ID: <88df213a-5a12-4571-9f29-6311b82a8f25@enpas.org> Date: Sat, 27 Jan 2024 20:52:25 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 0/7] HID: playstation: DS4: LED bugfix, third-party gamepad support Content-Language: en-US To: Roderick Colenbrander , Jiri Kosina Cc: Roderick Colenbrander , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240115144538.12018-1-max@enpas.org> From: Max Staudt Autocrypt: addr=max@enpas.org; keydata= xsNNBFWfXgEBIADcbJMG2xuJBIVNlhj5AFBwKLZ6GPo3tGxHye+Bk3R3W5uIws3Sxbuj++7R PoWqUkvrdsxJAmnkFgMKx4euW/MCzXXgEQOM2nE0CWR7xmutpoXYc9BLZ2HHE2mSkpXVa1Ea UTm00jR+BUXgG/ZzCRkkLvN1W9Hkdb75qE/HIpkkVyDiSteJTIjGnpTnJrwiHbZVvXoR/Bx3 IWFNpuG80xnsGv3X9ierbalXaI3ZrmFiezbPuGzG1kqV1q0gdV4DNuFVi1NjpQU1aTmBV8bv gDi2Wygs1pOSj+dlLPwUJ+9jGVzFXiM3xUkNaJc4UPRKxAGskh1nWDdg0odbs0OarQ0o+E+v d7WbKK7TR1jfYNcQ+Trr0ca0m72XNFk0hUxNyaEv3kkZEpAv0IDKqXFQD700kr3ftZ8ZKOxd CP4UqVYI+1d0nR9LnJYVjRpKI9QqIx492As6Vl1YPjUbmuKi4OT2JdvaT4czGq9EJkbhjC8E KQqc2mWeLnnwiMJwp8fMGTq+1TuBgNIbVSdTeyMnNr5w0UmJ4Y/TNFnTsOR0yytpJlHU4YiW HDQKaw6wzvdxql2DCjRvn+Hgm9ifMmtPn5RO3PGvq7XQJ0bNzJ/lXl9ts9QbeR62vQUuv63S P6WIU+uEUZVtaNJIjmsoEkziMX01Agi+5gCgKkY8mLakdXOAGX9CaUrVAH/ssM0SIwgxbmeH F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w5gOWMMchFaemEnEJtg== In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/25/24 07:24, Roderick Colenbrander wrote: > Sorry for the late reply. I had glanced over them, but didn't have an > opportunity for a detailed review yet. No worries, thank you for giving the patches a chance. > My general fear is a balance between supporting clone devices vs > reliability. This driver is heavily used in devices (phones, tablets, > TVs, cars). There have been bug reports in the past and just getting > the fixes downstream takes a lot of time (e.g. Android devices). I understand this very well, which is why I hope I've kept the patches small enough to be alright to follow. If you have a bad feeling about something in particular, please let me know, and maybe we can find a better solution or alleviate concerns. On my end, I am working (currently as a hobby) on an appliance that aims to support as many controllers as possible, hence I know the choices you face in order to keep user expectations in check, and user experience consistent. See my comment on patch 7/7 - what if someone uses a third-party controller that happens to work by chance, and a kernel update breaks stuff? So I am with you on focusing on the original devices, which have predictable behaviour and quality. That said, hopefully some or all of these patches are trivial enough to be included upstream. I feel that it's beautiful to plug random stuff into a Linux box and to find that it just works :) > One of the key things I really would like to see enhanced are the unit > tests (hid-tools / kernel side now). To really make sure we emulate > behavior of these other devices well. The tricky part is that they > don't always support all the HID requests of the real device (which is > weird as the game console does use those HID reports and others and I > don't know how it would have worked there). I've been wondering the same, but without a PS4 of my own, I didn't try such controllers on a real console. That would be interesting indeed! > That's in general the key feedback about the tests. A question for > Max: do you have access to all the devices being added? I don't have all devices I've ever tested, but I do have at least one reproducer for each patch in this series. Thanks, Max