Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5929419ybi; Wed, 31 Jul 2019 05:39:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhfwoytqNcEwwzcGYki2z7AOhse5eUA4vBO6uP3baMKuWTiBRPvL6Kkmo/bSZOoIwfesGE X-Received: by 2002:a62:e815:: with SMTP id c21mr49082464pfi.244.1564576746867; Wed, 31 Jul 2019 05:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564576746; cv=none; d=google.com; s=arc-20160816; b=YjtsO9ZsrUIy/h+ymA0bUJK/ntLC8lh1+QpJc3uW+TVYZ+TivonbSCIO/JTtuoLA6U 3ijtocf87ci12tI7az8cdAFI2SZr8cDiXWVNFTM1Dme3PCmM0DX58Xj1fquN8v1Ej3b4 g9xVPQflZaM4txTmAqIdnsGojD0tvLbG/UAUAzg0RE6D+RTSl60HUJkAzxVIf33XV9CA Sx3M23cTMJi6Qbk28OFHJhxihbdwhyyQvS5Iqc8wHpiD/pLMkPbQCElUeNM7fryeZCDI xf4HIVbUXKt2TNxUw6idLNPOAW1iRkegCLs/eQmv2M7f8MBDHwNxDAM5ocPDqUJRff2+ ASBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=jCrdi6iZTx1g9vmHzrs+JIRim7u1VeaT1iHowsMbIo4=; b=vfU3uIPuFG/cCNGlZu5OSvmZwREfY3cuswjyNuMa9YNBtHaX2esZsBLUbJ3IvxDwYx P55XoU3GWmXbvk7aQO0ma/lKGZBBCoEKNnIVNYoYHqPhwtBmQ+JoMxiCO+8o/HW2On8T Tso5OX8bgxtPSeRX+KLN6CFnysR7ghGvOF8+qXaivBmFUxolmrQiZdkxbeJ85UKpp4jr A5lFOsgB6Q86i3C1oiYgNZsTtsIEeyLU83Qhz8+060bSYY11LFckuz4lO1J7gAuHdcFs f4taVLzkcoOXgahYwlG+GYtQC+d1n/jGVJ0sZ2nk36t0yvQX1sAZoQRgbt45N4q3LlP4 xc3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay21si1455904pjb.34.2019.07.31.05.38.51; Wed, 31 Jul 2019 05:39:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727441AbfGaL3h (ORCPT + 99 others); Wed, 31 Jul 2019 07:29:37 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:36877 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbfGaL3g (ORCPT ); Wed, 31 Jul 2019 07:29:36 -0400 Received: by mail-ed1-f68.google.com with SMTP id w13so65411485eds.4 for ; Wed, 31 Jul 2019 04:29:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jCrdi6iZTx1g9vmHzrs+JIRim7u1VeaT1iHowsMbIo4=; b=rJukYSBONc8Fj+b3Wtsut9rWwPKuoTjQAL2wSXaJjQkwhxYdTPxfscWWfFY84CE4Y9 lxbdUk7H31p2YNfLuUzxfz3wBzxh4xBHNLtvuJwf2KcWZ9WUGsusCUwonq7uuUjU6R0F NAFa2IqoikxLSJBnxT6IFK7lf+EjAss9j11ITLMz2qc7lAczGG5ChmarrPWiMxK3EkJb NwxBKTjKMWNphD4+paJ2c83NRLBA2LqAJcKiop6wQQsHlciRGeeKx+FuuGn1cdelkraH 9zvj6NcnjIKGO9yLmBJ5IQJuOJ9E6gPruiQX9um7NwJaE+flux37xV9W0ZNcXUvtuedP g1EQ== X-Gm-Message-State: APjAAAUeOQcq6IAYcXJk3nOtPot4L6voiaqSu9L05tWCOU4yGM2qYFQI 5D56KXWEyomUKR39cWuAt5Mkng== X-Received: by 2002:a50:b343:: with SMTP id r3mr103636766edd.16.1564572575321; Wed, 31 Jul 2019 04:29:35 -0700 (PDT) Received: from shalem.localdomain (84-106-84-65.cable.dynamic.v4.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id t7sm4548498edw.87.2019.07.31.04.29.33 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jul 2019 04:29:34 -0700 (PDT) Subject: Re: [PATCH] HID: logitech-dj: Fix check of logi_dj_recv_query_paired_devices() To: Petr Vorel , YueHaibing Cc: jikos@kernel.org, benjamin.tissoires@redhat.com, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org References: <20190725145719.8344-1-yuehaibing@huawei.com> <20190731105927.GA5092@dell5510> <20190731110629.GB5092@dell5510> From: Hans de Goede Message-ID: <3e9bda5b-68dc-15b9-ca79-2e73567ea0a5@redhat.com> Date: Wed, 31 Jul 2019 13:29:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190731110629.GB5092@dell5510> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Petr, On 31-07-19 13:06, Petr Vorel wrote: > Hi, > >>> In delayedwork_callback(), logi_dj_recv_query_paired_devices >>> may return positive value while success now, so check it >>> correctly. > >>> Fixes: dbcbabf7da92 ("HID: logitech-dj: fix return value of logi_dj_recv_query_hidpp_devices") >>> Signed-off-by: YueHaibing >> Reviewed-by: Petr Vorel > OK, not only it didn't fix problems with logitech mouse (see below), > but removing mouses USB dongle effectively crashes kernel, so this one probably > shouldn't be applied :). > > [ 330.721629] logitech-djreceiver: probe of 0003:046D:C52F.0013 failed with error 7 > [ 331.462335] hid 0003:046D:C52F.0013: delayedwork_callback: logi_dj_recv_query_paired_devices error: 7 Please test my patch titled: "HID: logitech-dj: Really fix return value of logi_dj_recv_query_hidpp_devices" which should fix this. Regards, Hans