Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1235472pxk; Fri, 4 Sep 2020 04:31:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhfEzrqyAYzSitbkCbr/rjVL/1DH5Jw/EBs3HQNGFPawYM/yk/L92VjbfUVtBY5XR92ROC X-Received: by 2002:aa7:cf0e:: with SMTP id a14mr8109744edy.81.1599219085699; Fri, 04 Sep 2020 04:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599219085; cv=none; d=google.com; s=arc-20160816; b=CPqLgdsqG1KgHLKh70NWB2N1YHJ0Sc8ca1wyz0j9+NMsqSq+MKouiqQKRoPBL5RNGE 9vSi3hiJlMgpU4jf5xbnCNrAKNEADvcrBKXfC8btLR7tGjVfeqEw6Msa9dXFPiwKPL6K //pEQOT+e2ESVcv/qt4N8lMFOTQdFPdHrEehjGZ2TUkK+M9QdaP6IY9IX4aPJCsR/Pg1 d8Vsme1D9BOFhuAPZN6QP845SHUOoztxj8yFDRcrQQHCXXnlHRjGghY8v2tyA7lhWy3v muT4eJeEABsP+f6DOIWesQQbrYWDzM/yLAPs16rjdnbghe8Xz0T+FkJLsMF1p2v0aTHd Yqyg== 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=rGOUOPQ8Y3l0L4xm3V1c+7c7ChT/8b1ge/fYKbLTvxA=; b=YmGtrepG1W3IWQcZDy79mSWTvnxU7krn58FdjZdZKk7Wbp7c/Y/wwLKKvtQTBK/n3V z2/xe6mjtfr9ApSkfA6JwuKH/gwDuuhbbit5h3+Lc1JXRmn4vmIMIviAmiLISiRdLbZn iGsJj6MOOVnmJXbT+sbShXaf/9AT0cThQpXBqhmVjnaPNFnH1MJ4CUizJdFK7A4SfS/P 3sTc3kC0+/VImduWzl+9nCGG7XUC8s0Zz8uR7ZuK0BsMsGR6X35km8cVmyR2mDn+KZ/Q DnsVIXqDuuQRGIvL6dbyeq8GbO4Hl2qQInKRSYUiAiEtzTyeMPRGy6nppyfkyeWZhmoT ka2g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u16si3944195ejr.4.2020.09.04.04.31.03; Fri, 04 Sep 2020 04:31:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730014AbgIDLac (ORCPT + 99 others); Fri, 4 Sep 2020 07:30:32 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:24562 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730168AbgIDLZw (ORCPT ); Fri, 4 Sep 2020 07:25:52 -0400 Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-392-oqNixHkzPpeBG4ENRDsz8A-1; Fri, 04 Sep 2020 07:16:45 -0400 X-MC-Unique: oqNixHkzPpeBG4ENRDsz8A-1 Received: by mail-ed1-f70.google.com with SMTP id g8so2563545edm.6 for ; Fri, 04 Sep 2020 04:16:44 -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=rGOUOPQ8Y3l0L4xm3V1c+7c7ChT/8b1ge/fYKbLTvxA=; b=KF/xHZ6Oy1kMljSeobocNGoTTsS6rHZ0uZc+CKKBwGyiSAS54QeIoG0blJa5tOYvys BabkXZW0Q64LFHtsFhNOd0Kd34wSc2WS+s3L2fbiqNzvBfWMVIgpFV9FocekUs9NSUAQ 29iR/Ycm/II7qmpo/+zJ3aCJ7SBCgc/wHqFJWyXkWLT5XxIiqEwUWOgpUdyWVnZKptsv 9Vixa2SQ066hJrjHuowbKizw2Rx9a6dzeRTAfjhhkYG3culauc1R39+lhcgWKw4gXFxI Beh3QnhvWrpu+RuIBZg6k3Vyi+5aoMQbw6BGuJpSYXn5/Cc9v306RHidYAZLzoj/ZmdR FJaw== X-Gm-Message-State: AOAM530HYUOuclZCbG/EBZ7qXeM3C+YZqVBEXnMhHic4BWnYvnh1y37W OQRMBaLmJyKo+eRu8AdN/08V4GnCSok5iaQZUe9CGF/Nq/5OdQ3utK6TzL7NWQIDNVTODBHGumW IOyS/NMk20ngWns9EvQg+OdQj X-Received: by 2002:a17:906:1b55:: with SMTP id p21mr7070222ejg.457.1599218203863; Fri, 04 Sep 2020 04:16:43 -0700 (PDT) X-Received: by 2002:a17:906:1b55:: with SMTP id p21mr7070201ejg.457.1599218203655; Fri, 04 Sep 2020 04:16:43 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c0c-fe00-d2ea-f29d-118b-24dc.cable.dynamic.v6.ziggo.nl. [2001:1c00:c0c:fe00:d2ea:f29d:118b:24dc]) by smtp.gmail.com with ESMTPSA id n26sm5799589ejz.89.2020.09.04.04.16.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Sep 2020 04:16:43 -0700 (PDT) Subject: Re: [PATCH v3] HID: quirks: Add USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for BYD zhaoxin notebook To: PengHao , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Cc: johan@kernel.org, dlaz@chromium.org, stern@rowland.harvard.edu, kerneldev@karsmulder.nl, jonathan@jdcox.net, tomasz@meresinski.eu References: <20200904091322.30426-1-penghao@uniontech.com> From: Hans de Goede Message-ID: Date: Fri, 4 Sep 2020 13:16:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 9/4/20 12:38 PM, PengHao wrote: > Hi, Hans > > Thanks for the review. And sorry for I'm not really familiar with > mailing list, so didn't reply early. > > Actually the reason why I submit this patch, is the vendor ask we do > this, they do not want enable touchpad wakeup. > > And yes, this device use hid-multitouch. Right, I already suspected that. I guess they might be seeing a similar issue as what I am seeing on the Asus T101HA. Here when closed the lid comes to close to the touchpad and it starts sending spurious events, resulting in immediate wakeup from suspend. I have a workaround patch for that issue here: https://github.com/jwrdegoede/linux-sunxi/commit/cb3a4c23b94bc3646953d00cea183d4e8fddeea0 As the commit message explains that patch is not yet ready for upstream. It should probably be modified to only disable the touchpad this way when remote-wakeup is disabled (at which point it mainly becomes a power-saving feature). So if the BYD zhaoxin notebook has the same issue, then adding a quirk to disable remote-wakeup is likely still the right thing to do. But first I would like to understand the problem better. Regards, Hans > > > 在 2020/9/4 下午6:05, Hans de Goede 写道: >> Hi, >> >> On 9/4/20 11:13 AM, Penghao wrote: >>> Add a USB_QUIRK_IGNORE_REMOTE_WAKEUP quirk for the BYD zhaoxin notebook. >>> This notebook come with usb touchpad. And we would like to disable >>> touchpad >>> wakeup on this notebook by default. >> >> You are still not explaining why this is necessary ? >> >> And you did not answer my question if this touchpad is using hid-multitouch >> either ? >> >> So NACK (rejection) from me until both questions are answered. The commi >> message for a quirk should always explain why a quirk is necessary and >> "we would like to disable touchpad wakeup on this notebook by default" >> does not explain why you want to do that. >> >> Regards, >> >> Hans >> >> >> >>> >>> Signed-off-by: Penghao >>> --- >>> >>> Changes since v2: >>>   - Add changes >>> >>> Changes since v1: >>>   - Add the entries sorted by vendor ID and product ID. >>> >>>   drivers/usb/core/quirks.c | 4 ++++ >>>   1 file changed, 4 insertions(+) >>> >>> diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c >>> index 7c1198f80c23..fffe1f7f1098 100644 >>> --- a/drivers/usb/core/quirks.c >>> +++ b/drivers/usb/core/quirks.c >>> @@ -393,6 +393,10 @@ static const struct usb_device_id >>> usb_quirk_list[] = { >>>       /* Generic RTL8153 based ethernet adapters */ >>>       { USB_DEVICE(0x0bda, 0x8153), .driver_info = USB_QUIRK_NO_LPM }, >>>   +    /* SONiX USB DEVICE Touchpad */ >>> +    { USB_DEVICE(0x0c45, 0x7056), .driver_info = >>> +            USB_QUIRK_IGNORE_REMOTE_WAKEUP }, >>> + >>>       /* Action Semiconductor flash disk */ >>>       { USB_DEVICE(0x10d6, 0x2200), .driver_info = >>>               USB_QUIRK_STRING_FETCH_255 }, >>> >> >> >> >> >> > >