Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1403596rdb; Wed, 24 Jan 2024 14:25:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdtikeBJ8DpIEnJGxj7WWUHmg2V1bSlWaX0SlSq1kQAi38CI9p4IAcGza6hvY8N1fZL+7v X-Received: by 2002:a05:6870:4410:b0:214:418d:2990 with SMTP id u16-20020a056870441000b00214418d2990mr4123418oah.91.1706135135679; Wed, 24 Jan 2024 14:25:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706135135; cv=pass; d=google.com; s=arc-20160816; b=JOx+Z88qQNLCgVpmn4dCOzJ9/9coEKRTc6F/NFun1x7JmOknapiezAiS605SzZ5q38 qaY90sItxhw/K0wRjbeVQWxM8TTegVFC0PLmyJ3kocFtLaJRLgUTUQhe4T+vl7PoqSsS GM2RIj30LAnJpRqvdGjrTNua47ZDC/ui4xu2bHhpmvFxwZf4wYuSq68KsdLaMJQqX6XN /V4Cqu1a3wBkMfHSH/yu4+ZKeJQh9vlgPsN3MTKbry16GT4CUIZcn5i2ZBuN7GyI+xon rTSchDKRvo6E/+BmfeSuoBxLft4MccbzWKvLjc28On2vcrBMkpWEqZba1284I+1llv/Y O2Uw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=FsxxqHwtyuN+pDO2NqY66GmiknEtFe2BpKT5Y2BjYXY=; fh=IQiizRxZ2YBHOcC+ktxkUeFH1TVwb/nSBcMyEayeArs=; b=CMWOvB2FMamvkAueCFUDdnqx50o8eLJTZNfIGFmH+9hmwjs018TnRjq5wt+tT1YLHN 2t4nNdxpEVZYrhPXHWbKRBreMWyr0n6v6uY21Iakqg/kCeYpYS7+bxgLCMJXFfTL27rK pald2YI+sqBfgrjfONyhDOdU5pNFKdewzUu+FhwgySW9SZUQ7x3BVSpNO2Z9vBw9Hr/8 j01RtDzLiDK9zA+e2ZnKWKjgMCI8VHkn2onAYIPkbaq5jC36WELmflrqiv17gSqOyFfR 9+dsVfg+v9cMl7Fr7druIpD0MPTOvjQjIngsAcvuMT5txozj9do5CP+3TunieEQNHz3a /5Ug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TWRlVUz6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-37735-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37735-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y16-20020a634b10000000b005d24d531a21si3798931pga.483.2024.01.24.14.25.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 14:25:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37735-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TWRlVUz6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-37735-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37735-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 92988B21DEB for ; Wed, 24 Jan 2024 22:24:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1765D135A52; Wed, 24 Jan 2024 22:24:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TWRlVUz6" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A93B6135A41; Wed, 24 Jan 2024 22:24:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706135078; cv=none; b=E1T23ME4j8BOJWUsOl78E9mM1orR/aylYxlhuKeEGjddJ/uNu7234OY9oH3aTuaPSbD206fT7CzWbJ24GrTUP+5OT+DiW0Vc5LpdLBBMxUKAcmn8zi6rSUsU+TS98Ttn+rXjiccxleg1mTORnVkuGoA8EMH7ajVZ0/CGMwIHops= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706135078; c=relaxed/simple; bh=6aFoet48IEnWBwMN0oFvWdhYR1O5XItpGbgY5wNmtlI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=FVIEHUEPDd66wOx5bhnZ44RxdXSfXa8ZI18t/pY0N5I2lSk8lEipCMSGVI2GNBed+3IbqON17gIwrKEaWJItxeTEwm+9vu4HMP/c2p/wPcIqoK/BF3VDqiFG0WPfqGCECMHxDm3FbSb5P28u/fVWB0bcNt2z/D13D4cZWdy+Bx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TWRlVUz6; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a271a28aeb4so653680266b.2; Wed, 24 Jan 2024 14:24:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706135075; x=1706739875; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FsxxqHwtyuN+pDO2NqY66GmiknEtFe2BpKT5Y2BjYXY=; b=TWRlVUz6+DZhWF74tDNxHOx52164EgmVWnOmXVwTi13zW2Ive1SFbnquzeEgK03hv4 8VOCWZ59W+yCFGjtSOJecPKM2VMgU6ou1ob8Ia/mtkpNTNeNGhy2gTSCd/niiTDNYvTr g/kPy4nGvB49VI/eWrHcpeDXtsZX7hUyg4hWGqECe5os5KBICN3c8EAbZvt9kUfOTa6K WTcB5eBHYrTiTW0ytq8iSoaRm77izPKLPXD7Ng7YeiTzue2qD96UnUq33pGf38jEZ9aL KitBKyVCJLM93uLULFZDwCUERuJSTSxY7sWT6IwmPty4ICML4W0l2urwt6Q8TLxZwPjy RFyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706135075; x=1706739875; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FsxxqHwtyuN+pDO2NqY66GmiknEtFe2BpKT5Y2BjYXY=; b=n+ciaEG/4ctK3eMqbfhrOwQCxvuZymKLnT3P7/xJlK2r5Ur+mVSS4Wr/F/YL1xnoiF rtCXLNr6UK1G5DsIE85cfmyLxeXrlNPxBMsZWbQKfCBGIBMVDdmhgCXtB6R0o8BUV70K rhZTrVZ+sccfJqq4WE/QdAc5SzX8GvLxyuHSs8L/l0mN17JrdbCBtAWkHJHtjryASnDi Q1l1RstK6gskEiIqyljXHdKDS1QhZLRLLtUgeMD3k2Z0BpO2VIg9fghNwKDS28SxgEZ5 Yo8DHeRLwxkUIjnKX5jBhV7GAid0duJ7ZWmc2Nj5vWySghw4e+4zJVzBp0LC/oMVudqh zbYw== X-Gm-Message-State: AOJu0YzSg2qPzQYTCJvtTXaYAbU9/oPGM2hvCEF06XWA7hiJ7vLVIaqR KAXkMEXXXbeoEjCmGcJrt5ae0LHtmj4R6Jooy5Uuk6RUjftPDqOViqJeRe2nb3Qr5aHa2XIyBoP qSLClHfpBx6TB3iO30InZIlyfcdQ= X-Received: by 2002:a17:907:8747:b0:a31:ce3:6ca1 with SMTP id qo7-20020a170907874700b00a310ce36ca1mr1056927ejc.95.1706135074605; Wed, 24 Jan 2024 14:24:34 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240115144538.12018-1-max@enpas.org> In-Reply-To: From: Roderick Colenbrander Date: Wed, 24 Jan 2024 14:24:22 -0800 Message-ID: Subject: Re: [PATCH v1 0/7] HID: playstation: DS4: LED bugfix, third-party gamepad support To: Jiri Kosina Cc: Max Staudt , Roderick Colenbrander , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 23, 2024 at 1:51=E2=80=AFAM Jiri Kosina wrot= e: > > On Mon, 15 Jan 2024, Max Staudt wrote: > > > Dear hid-playstation maintainers, > > > > Could you please have a look at the enclosed patches for the DualShock = 4 > > driver in hid-playstation, and upstream them if possible? > > > > There is one bugfix, and a few small patches to enable third-party > > controllers. They sometimes don't implement features that they > > semantically "don't need", but which currently trip the driver. > > > > For example, for the DualShock 4, we don't actually need to know the > > firmware version in order to work with the gamepad - unlike with the > > DualSense, which has different driver logic depending on the version. > > > > Finally, there are two patches to add a DS4 compatible controller with > > an unassigned VID/PID - I'd appreciate your thoughts on that. > > > > If I can make it easier to upstream these patches, please let me know. > > > > Thanks! > > > > Max > > > > Patches in this series: > > [PATCH v1 1/7] HID: playstation: DS4: Fix LED blinking > > [PATCH v1 2/7] HID: playstation: DS4: Don't fail on MAC address > > [PATCH v1 3/7] HID: playstation: DS4: Don't fail on FW/HW version > > [PATCH v1 4/7] HID: playstation: DS4: Don't fail on calibration data > > [PATCH v1 5/7] HID: playstation: DS4: Parse minimal report 0x01 > > [PATCH v1 6/7] HID: playstation: Simplify device type ID > > [PATCH v1 7/7] HID: playstation: DS4: Add VID/PID for SZ-MYPOWER > > Roderick, any word on this series, please? > > Thanks, > > -- > Jiri Kosina > SUSE Labs > > Sorry for the late reply. I had glanced over them, but didn't have an opportunity for a detailed review yet. I will have some input (there was a goto I remember not being needed). 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). 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). That's in general the key feedback about the tests. A question for Max: do you have access to all the devices being added? Thanks, Roderick