Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp162249rdb; Sat, 27 Jan 2024 01:02:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFa1ntAcWU1bXiBu8FdrKcvWs3aur1sqZHhs98PhORsdFZueO2fVOykhRJq4aatjF0x0KBi X-Received: by 2002:a17:906:b893:b0:a35:46d8:53ce with SMTP id hb19-20020a170906b89300b00a3546d853cemr375886ejb.18.1706346129371; Sat, 27 Jan 2024 01:02:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706346129; cv=pass; d=google.com; s=arc-20160816; b=loda6qll49+hozEvDgi/3rNCCCGuE78VdoyfmeF/llgEZixQziF6ZgMpQ5rRNmt1Gi KS5zKZpFRdUUei+BnN0VVqQwHNBv/s8PR3zjQgcXgJJxwWus++J+BY8G+KQHCrGCJ6Xy XFDIVV2P6yTbY28jJbFQHP8cFIrUhTL7WQikNHR80iIAkJh0J1/wYVfcbBTUdRPC+oMt QVNpOI0W9qt3rjxT0YU1tVXKQm+knKZJJAaCtRmtLKANk2DyTI4+ui0Hk4vql89xqaj6 P/39qZzYxZezgNN0XRGwp4se9C8A4EmYOXV0K32LrbSnfRAgiwZFSGB9qPCbzgqZVwPw LYRg== 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 :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=7zh25NjrrTGISYXWS4V8Gymd69LdGTaLzymVs7qpKNc=; fh=KK0LdLJ2z2QfPCpSaQ7qdCR27apq2/3U4AiT+qxR8gw=; b=fFvDdbpNLkwlYKmNbA/oIgftkoiFE5BItIY4xvA+x79ji1UEplB1w3TI/nglni9Do0 CP/p//4dnRV3wJxNeEF32h56yz0T+F2TZXqpIXtIwZyFPKizS19cqPskgVHm6OLjWHPZ DBt3ArhDJmACtLxiUuX5spnAdIjz/nU3rSSZcVUUrlSms4RxHpcxw3PeByXgc5WhaSQo ppRY1FfTmclDwhCX4A4XdxyVaQ628XpK30HWaxnRXHqKmvrzEbwNodBfJYpyFta7jCZ0 8OkGBwoCF7nhcHFBifjQP8h29wu9qYFEdqYeI7+B54ELrsWCuLIhuqp1m+/9iZPyxHol Ic+g== 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-41124-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41124-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 gg16-20020a170906e29000b00a30ecb7d5e1si1374018ejb.656.2024.01.27.01.02.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 01:02:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41124-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; arc=pass (i=1 spf=pass spfdomain=enpas.org); spf=pass (google.com: domain of linux-kernel+bounces-41124-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41124-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 ED9761F22724 for ; Sat, 27 Jan 2024 09:02:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E3751E891; Sat, 27 Jan 2024 09:01:59 +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 9C5F97F; Sat, 27 Jan 2024 09:01:56 +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=1706346118; cv=none; b=NkWtoXll/EsIQ291G3OKVstc/44Jr1w0d47fnJHHlx4VXMLjU8i7LMRJYCiFPr633DxiJOn/SrUdOyihU1/VQem9zFyLh5ME+31LK/MAMDN0gJ3jyX+oBda1mAEIP6A1TokGk3PmOLHia+MWfed0k/XjMHi1kdTBp5xryOGCHZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706346118; c=relaxed/simple; bh=7zh25NjrrTGISYXWS4V8Gymd69LdGTaLzymVs7qpKNc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hjU7tukYRWlgUit8TuOZ751ryAw2J9jGkrlYcDjtcNijyEeONMm1JaHs+JRQ//zCfT9JdY3TMujup7ib6g/U5RfdMhWIPS1fN1aOY56PuOQHNrYMVcuS6EWdTnlDVEgz31Smoa2gPdn4xj+yuMHKAXoMBKCwiCS05SxJChnpSO0= 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 0F2C810142D; Sat, 27 Jan 2024 08:51:51 +0000 (UTC) Message-ID: Date: Sat, 27 Jan 2024 17:51:41 +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 2/7] HID: playstation: DS4: Don't fail on MAC address request To: Roderick Colenbrander Cc: Roderick Colenbrander , Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240115144538.12018-1-max@enpas.org> <20240115144538.12018-3-max@enpas.org> Content-Language: en-US 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 F0mwfbd7OuPYCKpmIiX1wqNfiLhcTgV3lJ12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ain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 1/25/24 09:39, Roderick Colenbrander wrote: > On Mon, Jan 15, 2024 at 6:58 AM Max Staudt wrote: >> >> Some third-party controllers can't report their MAC address. >> > For what type of devices is this not working? This one example of this > request which is very foundational for a controller working on even > the game console. Are this perhaps USB-only devices? If the case maybe > some kind of error is only needed for USB connections. IIRC I've only seen this quirk with the oddball VID/PID 7545:0104 that my patch 7/7 adds. It is indeed a USB-only controller. I have not tried this device (or any, really) with an actual console, my focus is just on Linux. Admittedly, I'd also like to know what happens on a real PS4 :) My intention was to keep the error message and the solution as universal as possible, in case a controller comes along that has both this quirk *and* Bluetooth. It's a bit of an ugly workaround though - if you (or anyone else) have an idea for a nicer solution, I'd be really glad. Max