Received: by 10.213.65.68 with SMTP id h4csp304288imn; Tue, 20 Mar 2018 04:07:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELvfUgGCu+SLrEX0EWLJy309tcCuveoh06acOLL/ah43CwaJs5IJqFzUQYhliW2RoE92y2Dq X-Received: by 2002:a17:902:227:: with SMTP id 36-v6mr15639575plc.134.1521544057429; Tue, 20 Mar 2018 04:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521544057; cv=none; d=google.com; s=arc-20160816; b=F0r6nt4pJYfpr8zNCgUJfq9U6d0lHsrFxbsSagXxB00y3i4aavBvNzq+ZLVLr7l9WF IMYvQ9xAEoJP6pDnb06PIWqc9pKe/Zz9oR7Z8rCHqKqD5WzfeQJ209ATfLNA2tmTBC4L 1WpmVF/5NNNhtzStEFr6Mi6Xg2/YPIrMwnD/PNU61MiHYhOdYZrBIE5dca7cw6IyrUj5 kkqT60H6sowjt22PC250Ga2poB3UUFocucDGi1M0GlUmjcttFxBazsmAvEUqhSJluBQo M8daWc1Gs6mmm4cz8hR9GIJsiLsYQQoLYEveKC26br/eotUT5kHMZb063UuUKY1Ton6I Zekw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=5+Kgrsvx7TrQuGKMH86ZDy/Oq1WLkn2pCk8FGVZwkZI=; b=0Of+vZS/zAjJVGHTGQO+agDTBAN63TrlqRuGU3NzSV5YX0GSWX3DivM7DPimGhwfVr riwcc8LcZ2nffuwsFuK0UHe3nH/OzJOsO4ICCmEEPInQbgCjhRUuDHBeX3Dgc1rrd5fN jaqdqUh9BoYekJH1fzXp8/pWZpODAokDAgLyZSNXhxzUk8I0gm3qDK/Tnnn2/Dyhaqh2 nhEZQKRtphI82nn2dJK6SgzD8AxpUuKjV+Zyf/UHck1iicCT/fxgqGODFz1qER8vjAAh 01FC1shKnbnHYtgjvKRYG8+lDKF7bTW9ejTjvhMHhW0CzW0cAH3IpRRlxfROiDSFxiYa CBXA== 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 65si975275pgj.705.2018.03.20.04.07.23; Tue, 20 Mar 2018 04:07: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 S1752840AbeCTLFR (ORCPT + 99 others); Tue, 20 Mar 2018 07:05:17 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:53430 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752753AbeCTLFH (ORCPT ); Tue, 20 Mar 2018 07:05:07 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B63CC818B126; Tue, 20 Mar 2018 11:05:06 +0000 (UTC) Received: from plouf.banquise.eu.com (ovpn-116-181.ams2.redhat.com [10.36.116.181]) by smtp.corp.redhat.com (Postfix) with ESMTP id BCFFA1102E20; Tue, 20 Mar 2018 11:05:05 +0000 (UTC) From: Benjamin Tissoires To: Jiri Kosina Cc: Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Tissoires Subject: [PATCH 6/7] HID: multitouch: do not set HID_QUIRK_NO_INIT_REPORTS Date: Tue, 20 Mar 2018 12:04:50 +0100 Message-Id: <20180320110451.16582-7-benjamin.tissoires@redhat.com> In-Reply-To: <20180320110451.16582-1-benjamin.tissoires@redhat.com> References: <20180320110451.16582-1-benjamin.tissoires@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 20 Mar 2018 11:05:06 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 20 Mar 2018 11:05:06 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'benjamin.tissoires@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is set by default now, so there is no point setting it in the driver Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-multitouch.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 03d00e477d0e..639c44fc0691 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -380,7 +380,6 @@ static const struct attribute_group mt_attribute_group = { static void mt_get_feature(struct hid_device *hdev, struct hid_report *report) { - struct mt_device *td = hid_get_drvdata(hdev); int ret; u32 size = hid_report_len(report); u8 *buf; @@ -389,7 +388,7 @@ static void mt_get_feature(struct hid_device *hdev, struct hid_report *report) * Do not fetch the feature report if the device has been explicitly * marked as non-capable. */ - if (td->initial_quirks & HID_QUIRK_NO_INIT_REPORTS) + if (hdev->quirks & HID_QUIRK_NO_INIT_REPORTS) return; buf = hid_alloc_report_buf(report, GFP_KERNEL); @@ -1471,21 +1470,6 @@ static int mt_probe(struct hid_device *hdev, const struct hid_device_id *id) */ hdev->quirks |= HID_QUIRK_MULTI_INPUT; - /* - * Some multitouch screens do not like to be polled for input - * reports. Fortunately, the Win8 spec says that all touches - * should be sent during each report, making the initialization - * of input reports unnecessary. For Win7 devices, well, let's hope - * they will still be happy (this is only be a problem if a touch - * was already there while probing the device). - * - * In addition some touchpads do not behave well if we read - * all feature reports from them. Instead we prevent - * initial report fetching and then selectively fetch each - * report we are interested in. - */ - hdev->quirks |= HID_QUIRK_NO_INIT_REPORTS; - timer_setup(&td->release_timer, mt_expired_timeout, 0); ret = hid_parse(hdev); -- 2.14.3