Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1438200pxb; Thu, 4 Mar 2021 11:14:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMfNiXIXvBylQEJQ020GoXQkRQ3fRFmZq+so4exVaoQPmOjAxGqMf0HqWL1uqMQZNPvI2D X-Received: by 2002:a17:906:7f84:: with SMTP id f4mr5810270ejr.525.1614885296409; Thu, 04 Mar 2021 11:14:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614885296; cv=none; d=google.com; s=arc-20160816; b=rORViqsYUfg08Tm+WOowleuqTSJtCTwSDPK2t46QJ34pESQsmJIEI8GVnvjOwGRtG0 HN7kb6WxbmmUfWK6sNzDEtWpDOsGYAAaERFmKfIXx6AFZK3ZaTTLrh+3r1z8aCi7JeWF +Uj0VY2xN3Yal6uCRineFpZxBT/2oJInu1JSdUCVGHqVKQREOW9qmIxMgrPad0DCPzUP E/XzeJBHFJ7LZynqfjb+Hq6xhiKEUMFPVbUMuzi26ow9h9QoVnXcJg6kDKTB7ThMyQOI +Z4/yTcOU/q0UrhStR7TtgGwcjhWX+MKTsWngH9MU/kDk9tgxegnCFQHQNdTjkpw+UKv fPDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=r1R0blr2NRq/LmDTosfw+4YCsm7aCGjDzTjK3cF402c=; b=STNZR3LdxuKVZA9TFjsPtMd8AtF9pb+Kg9dfBnUbE0ZyxwXtUIK2o1hRtCDHpUwVhu 1jRyCQfsm6uR0syVxzS2VtJEeyXAVjv7xx2Xe7e+N2G0n3equy2QqzKEL+g9FVEaXVGM Di7sTVJnBhedss03h20zIVugteQFvM7Wn/pnIj7nzCBmKIan1w2qtC3tobrYSjdNQvP0 ls7cIb7SFh7BLMXgtTPRbfW/7dRn0Kjr2ZaSvpZWpF/ZT8EEaEJdmy6OVBuKrODcvj9y n9kMwSDerYGtYlfcWBvXpw01wvBlPTzCPuEMLSKBCD4/n6QGB8cXefxfREc6hHRNhuii MAVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si302768edq.5.2021.03.04.11.14.27; Thu, 04 Mar 2021 11:14:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236084AbhCDS67 (ORCPT + 99 others); Thu, 4 Mar 2021 13:58:59 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:54818 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235887AbhCDS6e (ORCPT ); Thu, 4 Mar 2021 13:58:34 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: rcn) with ESMTPSA id 750BE1F46638 Message-ID: <8ede2f3e7593cbbd78e5aa4d3b28257a75e17b63.camel@collabora.com> Subject: Re: Bug caused by moving to BlueZ 5.56 (bytes stripped from HoG reports) From: Ricardo =?ISO-8859-1?Q?Ca=F1uelo?= To: Luiz Augusto von Dentz Cc: "linux-bluetooth@vger.kernel.org" Date: Thu, 04 Mar 2021 19:57:48 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Luiz On Thu, 2021-03-04 at 10:44 -0800, Luiz Augusto von Dentz wrote: > Nope, you are the first one to report a problem with this change, so > chances are that what Dean stated probably still holds since the vast > majority of devices didn't care about the report ID. So I suppose the > following code shall take care of it or does it not? > > https://github.com/fwupd/fwupd/blob/master/plugins/pixart-rf/fu-pxi-device.c#L170 > Yes, that's how we're dealing with it for now. It's a quick fix, a more general solution would be to detect the BlueZ version and parse the reports accordingly. By the way, is there a way to query the version of the running daemon other than running it with '-v' and parsing the result? I just wanted to let you know that this can actually happen so you're ready for it, as there might be more code like this in other projects, although I don't know how frequent it is for a device to use vendor-specific report IDs. Cheers, Ricardo