Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2340445imm; Sat, 30 Jun 2018 17:23:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJE16mWdB4GUrKhUmdq4n58D/OKtz3iHVVbqJ2OXDvNxvV4YpNpnRSsIO0ezbFAtEqGi8BX X-Received: by 2002:a63:6c03:: with SMTP id h3-v6mr16909109pgc.28.1530404612245; Sat, 30 Jun 2018 17:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530404612; cv=none; d=google.com; s=arc-20160816; b=HLvOlYq+WRP8HLKQuqesiwPm8N1MbBrbj49WE7HpJxIigOwSGCGmaioc4/JsbXBW0P 3lLB0RLyxY6ZFNWExc+OTGKygkqtobOP6l/oyHyfQE5h8zih3loGRz9LR+0ra3n14TzW lFfVUGyvkYFsPgy3JCo1O+7aDtRnRGsAfyVEMxykCEnlFSFu4T9N/hnJdxDEFuzhpcq1 50BKdpmwTSljhN0zj/AWPFuX9y0ZrQDjBz5YA+62HnG6fdo9Jn4dR44I/WJMVbUj0zd6 RAMTHgZWa80NaI6n/SMESdj9P3URjZm/CC70Ktsm28d6q5FaPI6OG7ei4oKuGrPCJLOX eClg== 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:dkim-signature:arc-authentication-results; bh=tJImHBF2EwXLlmdkVXoaXDFCNFb51x1QyyG4T9zW/E4=; b=HpRknqcUCFOGAAs0oK427S7YCpoZDgSOBpwJES5YtnbvLe4m9xcT7uWwsPuAKatzP+ +SwHXNMAbR3Y7mfD5Ik7k8nMuMyvtXm1MLilJ8CqYICqIBmg2L7PLncDMrc6ygsD0s8t P5N42xWkfHEAaufinDrHAP0ArMH2T1pfm9d1+8GOgB6kFtR8BZLtH2Dnu+Htq51eSXLk lEigC2ozfDxEy+EuXqFZyfvDCLyJFWSGlnXfpGBhYRJh8bV4/V9KiABUSCypNHV+NVkX tk68+uppS/dZ/biF/KZmvCT+im88cVgUIQtmijH1hj87py/vIAJSBa+GR0kdWHA3S1Tj BzNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DZdKsM9g; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14-v6si4201973plt.382.2018.06.30.17.22.40; Sat, 30 Jun 2018 17:23:32 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DZdKsM9g; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752138AbeGAAUE (ORCPT + 99 others); Sat, 30 Jun 2018 20:20:04 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:39924 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752067AbeGAAUA (ORCPT ); Sat, 30 Jun 2018 20:20:00 -0400 Received: by mail-pf0-f194.google.com with SMTP id s21-v6so5840675pfm.6; Sat, 30 Jun 2018 17:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tJImHBF2EwXLlmdkVXoaXDFCNFb51x1QyyG4T9zW/E4=; b=DZdKsM9gH4e+GY7qP4HxJIjBmAaKD/unCTpZVUfMI00l4QR4jByVbRd789W0o3Zf3M tdYVNhcRzcjvui/qdgGtS0NyoAxFhHcyI/ZwETOcoWvP3k5xYY1Ad9Xslue1MeZKzlI4 ib0b2zRFQgp2RIcWP77w81CAmuyB2XATtmR2dOfTrs2A8VujDZ6k6U1hLLGNiuxCTirH AW4glZmwPVdrF4rcAS6xXW6rtWMV2Rop7oCG5uJ2Cta8Jp5uxIKiSgmn5spuBMIj0Wkx f+hNO42y1atlFvkTh2J4x4Oq+LHjmq5yO0SkuSF036mZcLhH3ebN18xzNX6xfmkS3pwe 0SFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tJImHBF2EwXLlmdkVXoaXDFCNFb51x1QyyG4T9zW/E4=; b=YR5bff6EF3eht/t7Tqf0bKltAOg7tgRolgNBvqGYFe1Fbyfnf2ruDd1wilt8dv0sXK SyhvmKeXgUZPpf/ZTkn5g9kbOn8W/Jhqnp+WFG3LPbPkoR1uwvxj2h8s6NCvA+ilkWiW 6atr5PnA7YUk7cak4S6Vv/6pkmNPf6oOiTyOc2BZzYzJP6yWhnIwZMLg8v4Vd16pdq2X O8PkMVy55JqL6CkKBpwnv1QJezS+5khIvITXkb7CfRDc2K7dhS9ECz5DI2aHLF5WLf6Q j/91n6GJf/INmrz7DC7ehPJCeDVZ0Z+0UC4h2w3Hm3xkqoMIloHPgIAvTptzL+KiP8xi WeiQ== X-Gm-Message-State: APt69E1uOdmlA2MAUMeyFYEGn2Rtne4fiOpo+7VqN1N/d2xy37nSAUMr XgEWtq83xhQYBFyfLw4wxc+bmg== X-Received: by 2002:a62:904c:: with SMTP id a73-v6mr20026986pfe.145.1530404399460; Sat, 30 Jun 2018 17:19:59 -0700 (PDT) Received: from hobbes.alyptik.lan ([2605:e000:1117:c002:2e0:1bff:fe70:ea]) by smtp.gmail.com with ESMTPSA id b123-v6sm8424566pfb.156.2018.06.30.17.19.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Jun 2018 17:19:58 -0700 (PDT) From: Joey Pabalinas To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Daniel Martin Subject: [PATCH 2/4] HID: multitouch: don't check HID_GROUP_MULTITOUCH_WIN_8 for serial protocol Date: Sat, 30 Jun 2018 14:19:51 -1000 Message-Id: <0aaacf083be5b68a830f9e174f9abee3b00c5a51.1530402641.git.joeypabalinas@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The HID_GROUP_MULTITOUCH_WIN_8 group never needs to check for the serial protocol, so avoid setting `td->serial_maybe = true;` in order to avoid an unnecessary mt_post_parse_default_settings() call Signed-off-by: Joey Pabalinas 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index a793076139d7d0db9b..c0654db0b736543ca0 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1460,11 +1460,13 @@ static int mt_probe(struct hid_device *hdev, const struct hid_device_id *id) if (!td->fields) { dev_err(&hdev->dev, "cannot allocate multitouch fields data\n"); return -ENOMEM; } - if (id->vendor == HID_ANY_ID && id->product == HID_ANY_ID) + if (id->vendor == HID_ANY_ID + && id->product == HID_ANY_ID + && id->group != HID_GROUP_MULTITOUCH_WIN_8) td->serial_maybe = true; /* This allows the driver to correctly support devices * that emit events over several HID messages. */ -- 2.18.0