Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2319811yba; Mon, 15 Apr 2019 09:13:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBAR8rd0Ku1h3r3qCGvepPz0wsE4xdvZZPgeOH1hcm4U67r5CfpVkA0WRXZGQ3MNpznsQI X-Received: by 2002:a63:af0a:: with SMTP id w10mr46374615pge.67.1555344796163; Mon, 15 Apr 2019 09:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555344796; cv=none; d=google.com; s=arc-20160816; b=NWNfGsVL49GwFoEs9BnIDmaiQVpnKyJjKSKAJp0aFp780I9y0KqtDGAhzp0VQ18VzT pngsryeyV7wuy+44Ym53oZFbRej65dR1ti0T40Oqy0qPj9WA7GYBO27nM7UAek18CzhH tz8EyC14bkO8X91aB0ms0oUfyzQsEr+wdlQOtbGbRvxCE688E2MMhMbh2jV76H4JCkcS TMQ5VE6Y6mlm4tKDJk5K8aAJrjyzu5miUHyo5lQ8FSgVfqbWExjN1OGFU6IdBNYRRt8n l2MLpjYoIlY15Y+Q/PY6ZopDNToihYLouUWFS+jSIjEMOoSkJZIr6TeqwXyCikP+4MRo bqfg== 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; bh=tZb0G+Ixk05sPWFLkG4KLNrtvUAjvxl/N0UbSKoYsGA=; b=bBeP83dUSW08+qjE36YXh/QSnv0pUZ1yTKt6zOn5EI6vrVYjZ9AQ8J9+Mh0h0VbfC/ SosEqB91x68rgzxvRyQNqmgmg02mxLP/VsHmWa0gnMMEaJxKeYuL4Elt7FRPwdQpD0Am qo3pUwYgnMHjpC/LoVM0nxKD1jXVq2CrUQ3f1pTrK43qEtHsQp3vjHDE/ByUQTOIkVLW pPrFHwszg7Ke4TBtjAsXav+bK8fjssi6eXdJ/fJ8JJtz9qL+TiJ8LH3TuQCBx7w/9Y0R 0C3g70xZZAq6xOwzq4HrISHCOwOKvmvpDaGwo9rSFhfqGeRKlkPARfMG2shlTFLYGvW+ gHlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o1rxf+p6; 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 n80si9868080pfb.169.2019.04.15.09.12.59; Mon, 15 Apr 2019 09:13:16 -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=o1rxf+p6; 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 S1727890AbfDOQLN (ORCPT + 99 others); Mon, 15 Apr 2019 12:11:13 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:46339 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727834AbfDOQLM (ORCPT ); Mon, 15 Apr 2019 12:11:12 -0400 Received: by mail-pl1-f195.google.com with SMTP id y6so8778809pll.13; Mon, 15 Apr 2019 09:11:12 -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=tZb0G+Ixk05sPWFLkG4KLNrtvUAjvxl/N0UbSKoYsGA=; b=o1rxf+p6yrXr83RO7GSPmI34elIz+dcIq2aH+q1Z3qWW61lDb+BWTvAp/TZQTpSqpS SCoELej5EsuqYHi+0WG3Qi/NcsF91qCIa0PDANVVkRY7kNENIdXi2TeiJp5wd4XyIvTH MSQFz0divmh0gMtnuZHJgAg9BttUEJV1ZaugsSca10KPFDQi9Fd0V/vfSIkvKR8uRIs9 sG+e1KE/rTWrjik2Pz89KB0XVi9w3J17tDm+LsXWVaiIxrCswmt4Y63kUBmOlMv8Zsq0 ahJ5PC47bRd/W3i3Z2s/e57noLpnyR1+CkM4yR1r90PMH1+jd9N7oQXHqyEzupOf/Rqt BgCQ== 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=tZb0G+Ixk05sPWFLkG4KLNrtvUAjvxl/N0UbSKoYsGA=; b=FJ47PIFLVXK+E1uQ5M7qoGJYwZe/pWRrMF+HX8b9v4aLctVrtaK88PAEnSzSOlrZow ENTwTjiddTt62mTdpl4z24M7e3M7+cnf8VzwpgIlBp+bD4x/8+JgwmwZKvhmOqq2v/qT oqlOCoZeY1DdFXJ/3hWqEC+pk1NwF2egnmSyf5Kygt9430objjVHqMnVVfnSN/EMDKfw 3LEIlE31L7a82hwixfPV96rWsio2kMv3sMHJ5rhK1LnZJAzfJf0o0QjhAjAMlOq8B1Tw yjYOh/hT/B2S7lz6N6HPlc8Z5mAtSIiPrPq0lTjPep787/KMZS4WG0KSsF7Kttf95H6R PDAw== X-Gm-Message-State: APjAAAVP4JMSqI9NPfjbLpNnC47SqnSSZ9xDGlwze/GTw/scGpUlpfX3 E1C3q1IirPjxicKKfOpmZoM= X-Received: by 2002:a17:902:8b8c:: with SMTP id ay12mr27140656plb.192.1555344672098; Mon, 15 Apr 2019 09:11:12 -0700 (PDT) Received: from aw-bldr-10.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 75sm98591590pfr.55.2019.04.15.09.11.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Apr 2019 09:11:11 -0700 (PDT) From: Jeffrey Hugo To: robh+dt@kernel.org, mark.rutland@arm.com, jikos@kernel.org, benjamin.tissoires@redhat.com Cc: lee.jones@linaro.org, bjorn.andersson@linaro.org, dmitry.torokhov@gmail.com, agross@kernel.org, david.brown@linaro.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Jeffrey Hugo Subject: [PATCH v3 2/3] HID: quirks: Fix keyboard + touchpad on Lenovo Miix 630 for DT Date: Mon, 15 Apr 2019 09:11:08 -0700 Message-Id: <20190415161108.16419-1-jeffrey.l.hugo@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190415160915.16324-1-jeffrey.l.hugo@gmail.com> References: <20190415160915.16324-1-jeffrey.l.hugo@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Following up on commit 2bafa1e96254 ("HID: quirks: Fix keyboard + touchpad on Lenovo Miix 630"), the devicetree (DT) identifier for the combo keyboard + touchpad device is "elan,combo400-i2c", which differs from the ACPI ID, thus if we want the quirk to work properly when booting via DT instead of ACPI, we need to key off the DT id as well. Signed-off-by: Jeffrey Hugo --- drivers/hid/hid-quirks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c index 77ffba48cc73..00c08f8318b8 100644 --- a/drivers/hid/hid-quirks.c +++ b/drivers/hid/hid-quirks.c @@ -997,7 +997,8 @@ bool hid_ignore(struct hid_device *hdev) return true; /* Same with product id 0x0400 */ if (hdev->product == 0x0400 && - strncmp(hdev->name, "QTEC0001", 8) != 0) + (strncmp(hdev->name, "QTEC0001", 8) != 0 || + strncmp(hdev->name, "elan,combo400-i2c", 17) != 0)) return true; break; } -- 2.17.1