Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5871663ybi; Wed, 31 Jul 2019 04:42:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwU8LkBxCOzLipywnEx8Vt8seBElmB8Oxv3nKpRQCsayzRFYgVQwE92TCLmRgGlauwestdg X-Received: by 2002:a17:90a:5288:: with SMTP id w8mr2579410pjh.61.1564573337891; Wed, 31 Jul 2019 04:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564573337; cv=none; d=google.com; s=arc-20160816; b=a4ofPHf+Pk+P+9MAe3RLMcWa5anyvl1UarvkNVAhSHc95ivrxZyqO+3MTYzndhMe6E ArYHXifkB08BAVEjU0Vs08rCxNUnqWPN02U20spKBukjaQdBSub1Edo+aORzCmIKLCgd ZHR5vPQbi28skGlDZquwcPJdQg1CmvdqHxiXuneUo3lgSnElcS+YlQsQ+YRMMHV/IdRw RxBNvo/JGl5q6f/t1qkXJwg/GAijK4iMsNUH7RH7n6W7ocMaNLMH/HYmDMe1zL7444V5 eA+4UhMr+Ck1YboLyYvr4g5ia0rG8K7q1mr0W0sWMGLYLuex+8/KxW2JBeC75olpJjgp Nz4A== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=qEbiJEw9jtP0D6QzvsD72oirw7q1gbPObQGcbDjS+pM=; b=GUal9mh5GF63Gp9lw86HTLlYFXPGK7quWL9FtM/F9h+jkrV9krF29Loa17LwvK3e9N vzGHu0+J2jkE2yCSWM5yl5ut7v4PBm/fjbzNeftx3xAqFqtRmvkl708hnZ3ih6K7WSzN d86xZtZipHiqm4Soqhp4OmKWImrmCmCR31bmcp2G46iISdXQDlm3T1W254zplfDlPnLe nx8ToDSex0/aswW7l+8Q1Q4X3+raZeEWORHjKlqHYpM9h1BHYYJQFTIqq5WQCXN9Xwb9 8YerNbd1XZfNqFlQz7hnz8xruguIQ641YDof73Q7ErHjC9OnoS5bfpb5o4PUOJHpFaM8 AjZw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gb4si30729945plb.429.2019.07.31.04.42.02; Wed, 31 Jul 2019 04:42:17 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727224AbfGaLlX (ORCPT + 99 others); Wed, 31 Jul 2019 07:41:23 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:55172 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726301AbfGaLlX (ORCPT ); Wed, 31 Jul 2019 07:41:23 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 052F69A63D0C3EB13A6F; Wed, 31 Jul 2019 19:41:20 +0800 (CST) Received: from [127.0.0.1] (10.133.213.239) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Wed, 31 Jul 2019 19:41:16 +0800 Subject: Re: [PATCH] HID: logitech-dj: Fix check of logi_dj_recv_query_paired_devices() To: Hans de Goede , Petr Vorel References: <20190725145719.8344-1-yuehaibing@huawei.com> <20190731105927.GA5092@dell5510> <20190731110629.GB5092@dell5510> <3e9bda5b-68dc-15b9-ca79-2e73567ea0a5@redhat.com> CC: , , , From: Yuehaibing Message-ID: <917e5209-8e58-076d-bb25-0716d7414e5a@huawei.com> Date: Wed, 31 Jul 2019 19:41:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <3e9bda5b-68dc-15b9-ca79-2e73567ea0a5@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/7/31 19:29, Hans de Goede wrote: > 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. Yes, this is better one, thanks! > > Regards, > > Hans > > . >