Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2494104ybh; Mon, 5 Aug 2019 01:57:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrQ35XovTeQNfSmKJeTqRpZoqloheWE9nrXm6RQUyuiljlq2WVMq2OE27jCTU96yRnFygN X-Received: by 2002:a63:d04e:: with SMTP id s14mr129124002pgi.189.1564995457695; Mon, 05 Aug 2019 01:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564995457; cv=none; d=google.com; s=arc-20160816; b=bjkMT2dWWtAuDsAU/xP+4sLTZ+PaL+6s5fasAvBQ33j8D1Sv+PM2WsEGUOPjzNu11e z+UesH+D1YQP/E5YfYoFkyYcMVdVjWYNOiyEYcE0IFXaKtmcjea9iX/vkDntvLXQ77gp fz371TnoRnQCBv0JGtYBk9s/j9woOoAVCRHLxCo9AttheID7uUH6Bi6N2NdVH+wdnZp6 B/5uq5P47EjpejlQe6O+kkjkoQL8pMEzKYdxHsXrV//TcBU9hTz9hXEkzUvzql+ZoE+A OaUV3Gp+8CJuQ+Df1lmx30rCf2Bpph12JIfu2xqPzCBuO7cUljn6WcJA/hPVAea7wDz9 H6xA== 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=84QEP6FR40jS8MsBxZuPCzBl4Z7+iuUpFONR975wak0=; b=GX/USA6g9hx9FF1k+bUW8Qxa9sPJGZ0IwW7Xn/EAEhNbLzx1cGg6msB6CbBpn6uEhd 0EK56ICtlhkLI9BZWDdw7GH7fZFq6yls21Q7kb8hFHm+xZxp+5BMcBMivn6ghb8N2PF9 y02iCYEo5Scfde7kDVhszPOW7d9sABEZvBV/EtDgNFPm0GOv4BDQ0gcfM7RwAaJYTEuX Q6EI4I8OaGvfAoF55x3znXJVw6f7yVQMEz22eNVASfREV/9nFIYG015F9DEP63o74buF c6o3OWfnTvL/LS8M4HFWtu4x8kD4/UbQ/vOM63jH4+b0WrujDRknUUecw5bAxiDvAiiz T3pA== 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 b40si39677849plb.426.2019.08.05.01.57.22; Mon, 05 Aug 2019 01:57:37 -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 S1727809AbfHEIzI (ORCPT + 99 others); Mon, 5 Aug 2019 04:55:08 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:40444 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726423AbfHEIzI (ORCPT ); Mon, 5 Aug 2019 04:55:08 -0400 Received: by mail-ed1-f65.google.com with SMTP id k8so77890664eds.7 for ; Mon, 05 Aug 2019 01:55:07 -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=84QEP6FR40jS8MsBxZuPCzBl4Z7+iuUpFONR975wak0=; b=s5jPBA9g3Nqvf+LxYW1Updrv6lyQrsKIM3+YYPUPlonN+pptH0c7FxfQ0NfUNFuqJ1 HjtGZu5Rd69G+gFEVg2CFejJr/OBmXmHHY9S/ZjuNJkeyEHpXg/052299cALqUVlz0EB t4Zik9okuVjkTPsvtCbcXx7o/egn0BGsvPiiOgla4w/fXUKaGVfufVokcaJmy/qBPDO4 AOVjewO9taZhwAmgTod5r6h0uSlaEzqfFDICXG0fN1KKzuR2ReOMr/ZxkV64FuSeMSBm jFoPjnvvc5McWSY1rj5FOvqlbF/Yb3YWi1UG8mtSvAmyRfOONZmHgMCFHCi2pUWf+3tu DeOg== X-Gm-Message-State: APjAAAXnjxwOsfv3/U+epvW3rJ+v74+SdzjWACsoxSGT7sk0Y6Sfd+Gj xHNkqXF4Ffe99Yb3Afa/P7HhAw== X-Received: by 2002:a50:acc6:: with SMTP id x64mr135478105edc.100.1564995306572; Mon, 05 Aug 2019 01:55:06 -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 e43sm19988862ede.62.2019.08.05.01.55.05 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 05 Aug 2019 01:55:05 -0700 (PDT) Subject: Re: [PATCH] HID: logitech-dj: Fix check of logi_dj_recv_query_paired_devices() To: Jiri Kosina Cc: Petr Vorel , YueHaibing , 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> <3e9bda5b-68dc-15b9-ca79-2e73567ea0a5@redhat.com> From: Hans de Goede Message-ID: <7988688e-8020-3d03-63cd-d844c01e5bf6@redhat.com> Date: Mon, 5 Aug 2019 10:55:04 +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: 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 Jiri, On 05-08-19 10:51, Jiri Kosina wrote: > On Wed, 31 Jul 2019, Hans de Goede wrote: > >>>>> 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 >>>>> Fixes: 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. > > Hans, have I been CCed on that patch? I don't seem to see it in in inbox. I have "Jiri Kosina " in the To: for the patch in the copy in my Inbox (I always Cc myself). Anyways, you can grab it here: https://patchwork.kernel.org/patch/11064087/ It has gathered 2 Tested-by-s and 2 Reviewed-by-s since posting, so assuming you like it too, this is ready for merging. Regards, Hans