Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2524587ybh; Mon, 5 Aug 2019 02:28:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+ZjoFtSNqQyhQOiYsnXpBR1gi3FLBBE5Hgo2gdSfWWmJhtTK1QCqQX7s5WjLwDtimMJ+R X-Received: by 2002:a63:2685:: with SMTP id m127mr36601643pgm.6.1564997325742; Mon, 05 Aug 2019 02:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564997325; cv=none; d=google.com; s=arc-20160816; b=JZH9cpllHlRs/+ofWQ5NDTfBK+P5A87YTLtgcRZm4lLKh70+dLbzEiNYb/LsiQXeI7 bW8Dzi08lha8H2cfr17uVqIbtDfNT0KxnQCR05ZrDj/XVjYHbTx2zdDZav6LaY3z62Fl bXllb0hwnBf68FXJycW7uzCIni1VZpC3hmeuVDXUkTRstgc6AvTzeveSC7RkSNmoZ4lc Bal3ktQNRSI1W82dHD0E8tWIvcqoPCC/RrGUrmnY+2U7ZTQ427s1YlzCNzMBrY/CjaT/ tgt5BC8mchz+IFsD1UDoVM9QRQEQNYOuUAlTiF5By8j+R1N/DZFp0bQA+vpIH0ar1O/3 8CKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=Q6HFt7/ogxvWwkBGiqBB2NtK9/Gsq8ZSmOkSTfTrSYA=; b=j3QOduBgKqcmDvShVKxB7Sd7jsLodxNred+rwCcNzeQvHGwSTF0iQ5076mv688pUo7 6UsbBa0pHq3DZPqSeLSAojNBN5xoTHjgd8G44/LUQZbUkTvMJ7f43ubnxg8XzwXJDdJp mgUp9gsMc5uS177qkbO9+iax/5NyPZvZQYepX9DkC7B8bH6NW8IWSI72e9yk1bKTQUZL gL58vaF1bYGb6TykOAlD5JA3B/wCvunzRU00+nhk2HlxWa1TKyWVjoAVI1sDGs2mOrOj aGilpZOxOGDqx+6/yVEOHeLWY7ZzB5QUZJ4Pre25/1hcsTus8oirvBWnxGvgXfNCyDVI 2PFA== 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 q15si15387176pgk.537.2019.08.05.02.28.30; Mon, 05 Aug 2019 02:28:45 -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 S1727230AbfHEJ1Z (ORCPT + 99 others); Mon, 5 Aug 2019 05:27:25 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:37695 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726880AbfHEJ1Z (ORCPT ); Mon, 5 Aug 2019 05:27:25 -0400 Received: by mail-qk1-f194.google.com with SMTP id d15so59515665qkl.4 for ; Mon, 05 Aug 2019 02:27:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q6HFt7/ogxvWwkBGiqBB2NtK9/Gsq8ZSmOkSTfTrSYA=; b=R5UNnh4QCNZ0ZqF6BZypLJplbceQfSdzmomS0e3iiTVYkAF0olHgGHFJ82QkrE4laX wBLBl5pDGnhHb2YtWXEp2ciXou00XiMyugsifwLNSuPNeFwAMuKzsXcUD1FwvjH9E/x1 HNxFhHbTIn07NoteQjc6ys+BgnOTSlY/qPe1zPyTfAS/poxhMoeisPNuRIRAmrQg5kTG GJTYWgj9YX4Otd1qSKVNfCVMx478mZGFQslvcTUe75wZ43xRN17GLiICAg+Vm6LXOz7d 3OLLNy7saCgABlz32Yv5veLqkexk11PQZ2JErj8eRzCoCRAPFKKzCej222SJYOThEVrM rQ+g== X-Gm-Message-State: APjAAAW3tb0/wXo9IGOXQcODsloqAEQ28+eyFw4pZGZLCKV7aoXGbfVG eg14WberVh39YN0GkPFXwJQ8lLauxMlkvksrK0Uzew== X-Received: by 2002:a37:dcc7:: with SMTP id v190mr53456085qki.169.1564997243999; Mon, 05 Aug 2019 02:27:23 -0700 (PDT) MIME-Version: 1.0 References: <20190725145719.8344-1-yuehaibing@huawei.com> <20190731105927.GA5092@dell5510> <20190731110629.GB5092@dell5510> <3e9bda5b-68dc-15b9-ca79-2e73567ea0a5@redhat.com> <7988688e-8020-3d03-63cd-d844c01e5bf6@redhat.com> In-Reply-To: <7988688e-8020-3d03-63cd-d844c01e5bf6@redhat.com> From: Benjamin Tissoires Date: Mon, 5 Aug 2019 11:27:12 +0200 Message-ID: Subject: Re: [PATCH] HID: logitech-dj: Fix check of logi_dj_recv_query_paired_devices() To: Hans de Goede Cc: Jiri Kosina , Petr Vorel , YueHaibing , lkml , "open list:HID CORE LAYER" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, On Mon, Aug 5, 2019 at 10:55 AM Hans de Goede wrote: > > 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. > Sorry for being silent on the mailing list. I have been 2 weeks on PTO, and when I came back, my server that shown a few corruptions here and there was completely broken. I spent the last week trying to revive it until I realized that I have a bad memory chip on it, which introduced random errors. Anyway, I think Hans' patch should go in, but I am not fully operational given that my test box is still recovering :( Cheers, Benjamin