Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp405287pxa; Wed, 19 Aug 2020 04:56:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEtiQYqQSpTqgIDfdSC8CkKxNVXdXRY5coKi4T0fpMCjcxpHuFCcZowCfFf/gkEJUzzx5n X-Received: by 2002:a17:906:8389:: with SMTP id p9mr3820506ejx.346.1597838214679; Wed, 19 Aug 2020 04:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597838214; cv=none; d=google.com; s=arc-20160816; b=iIepHLQMZrUVqEC9BjuW93kb/dJVJOZIRfs0vgMp5Pq2ui08gIgyW1jWBr4PE0oMuW VyX/rVujr59uBBuVfrhRZjCx+OZYM1MxRpDK80Lv/jCrQ3Ro1W4V0bosPbpmK1qgDtpk 0jKtJ9/rhhYCnvH6qFoUskxclPV3YCwVWTzF+xt16J0MkvL1gQYU3LEcqDGC5xDHWQ0t y64Ijs5bogU8jo8WJfwI0Jqeku7SccQ1N1cST4C0UsaoW9TL9d1MHfqPPtzbrOG+b+VO vU8TUX39+Phh5Vl3ov+jH+p4HMKGrptl6qIDcJX3Z43ToK/UZlJ6ITzvFW+mos0C6hHA 0Ftw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=zenlIU+nafflU3BtQOHyGivVDekvyQsKZ1rqiQ8OoiI=; b=LA5jtKLZpLU8yxJtYfOUIrbxhySIN9jVXNopPuLe9l42YXDakMeQQ5qPUQHqx9vSMv XspkZT8FL0aKinnk60J9gafK450t/0IIMn8f+acd0hCXJNduQcwvjXJICoBuneE4+mEd uSlNWcphCkR+3XkWVK2S2C4Ur4WfiYjcCH0FDfMh/1MTLJdHga55c9C5LccFVyVHoA7z ZpsvrIc1fBJ/XaYjdwvMtAXh/0Ww27/HfA9aX3wl3EH6CEWWM9cX5WXN6eM6TjkeRYlx 7okVMXHm4H8pPETaNHTeTi3jUXZSAiVce1MWMXh9lEa08ngNGrx0r9xClgvPCZGNK2Ax bgeQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id si17si14376525ejb.599.2020.08.19.04.56.30; Wed, 19 Aug 2020 04:56:54 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728419AbgHSLwJ (ORCPT + 99 others); Wed, 19 Aug 2020 07:52:09 -0400 Received: from lucky1.263xmail.com ([211.157.147.134]:45724 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728183AbgHSLvQ (ORCPT ); Wed, 19 Aug 2020 07:51:16 -0400 Received: from localhost (unknown [192.168.167.16]) by lucky1.263xmail.com (Postfix) with ESMTP id 0C580C0EE6; Wed, 19 Aug 2020 19:51:05 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (250.19.126.124.broad.bjtelecom.net [124.126.19.250]) by smtp.263.net (postfix) whith ESMTP id P25957T140259910207232S1597837866680276_; Wed, 19 Aug 2020 19:51:06 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <7df13add65a42e5e027ee7f126acc4a5> X-RL-SENDER: penghao@uniontech.com X-SENDER: penghao@uniontech.com X-LOGIN-NAME: penghao@uniontech.com X-FST-TO: jikos@kernel.org X-SENDER-IP: 124.126.19.250 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 5 X-System-Flag: 0 From: penghao To: jikos@kernel.org, benjamin.tissoires@redhat.com Cc: linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, penghao@uniontech.com Subject: [PATCH] USB HID: Add disabled wakeup from s3 by touchpad on byd zhaoxin notebook Date: Wed, 19 Aug 2020 19:51:01 +0800 Message-Id: <20200819115101.22532-1-penghao@uniontech.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org BYD Notebook built-in touch pad, USB interface,so disabled,the touch pad device idVendor 0x0c45 idProduct 0x7056 Signed-off-by: penghao --- drivers/hid/usbhid/hid-core.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index 492dd641a25d..630a3cad211f 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c @@ -1193,7 +1193,13 @@ static int usbhid_start(struct hid_device *hid) interface->desc.bInterfaceProtocol == USB_INTERFACE_PROTOCOL_KEYBOARD) { usbhid_set_leds(hid); - device_set_wakeup_enable(&dev->dev, 1); + /* + * USB HID: Add disabled touchpad wakeup on byd zhaoxin notebook + */ + if ((hid->vendor == 0x0c45) && (hid->product == 0x7056)) + device_set_wakeup_enable(&dev->dev, 0); + else + device_set_wakeup_enable(&dev->dev, 1); } mutex_unlock(&usbhid->mutex); -- 2.11.0