Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1527312pxb; Thu, 16 Sep 2021 09:16:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8VjHWvnxcVORDr/kVxUR9qFWQAGjcNDsLcwmZvQMAq/jjI4H2AEUW1zXElu7or5WVECt6 X-Received: by 2002:a17:906:3fd7:: with SMTP id k23mr6975142ejj.176.1631808959984; Thu, 16 Sep 2021 09:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631808959; cv=none; d=google.com; s=arc-20160816; b=Cc1QV++ILyoJrXo8+znSpvW7Z1Vavv/onhQdRciN8lI9GtVxOpy2TOtn+0mFGYMgjg jNgm4x53TuRM+iJFGo3IEbF0M+DHgHcQOompnf7kuI7IPETi2qWVxf/hVf2JqY2CTMvg WV1c1jTY8hNCz3WNR7xScCwMzrPkIn+JeB1XBROYhMpzbdIdE1EBGSA/nTFIXdr0z/DT OARRkXgIa/pls4K0uRrnQoE0uK2HSwKJ3fdz2S5Kc5MOceaGEEPRZWlUy4BHXoagXQyc zupuwWH4Ocq1WtWePrQRTtSYh+tJy4Xi3WbuiojTNJjgkOY8p40S3T0EKRtLOsHvMY1D Oo2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bWfw0i6DHJR2nFqkpUU8cTacmLNdKsU0R0LM/nr8jOM=; b=ue4eZt7pWDDgKspTMcle+MSgr6+XH2jN6SOe1vgvn8b+zvMJwS2GB703ZT1OykFIxY 7oEGKXmvXivZRGDwC/xZFfUEBasG7gN+ROP1zM0zAou/NGVJa/H2kc9LsvaKLa1+lFpn 51mevJ3+wXlFqypabst7KuyLyYmfFP7BPe0klVzg2hAWC/r5lYYPrycafV/ii+CfS9Bt DFeaSGb5pNM6W+uZSpuZrcbNM2zoX1b9BIHVPDCk0f26KmSwpDaEzEHSsin53PI6KrJ+ +F/6vsAFc4O76QcXZ1ZxCFFf0VKl3urT0aPsEPtWuOu/hf9ca3uY7v3hd23O+zKv0JYa em8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tKvW2za0; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x26si3938902edv.472.2021.09.16.09.15.34; Thu, 16 Sep 2021 09:15:59 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tKvW2za0; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240691AbhIPQOW (ORCPT + 99 others); Thu, 16 Sep 2021 12:14:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:47920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235287AbhIPQIh (ORCPT ); Thu, 16 Sep 2021 12:08:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6FC5B60698; Thu, 16 Sep 2021 16:07:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808437; bh=McsK7Kc7A5CYCUqTXR2l4d64T/NaYUnB+1lCXtJkRPY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tKvW2za0veS+hL6SGMIXly3vJwmK74MGmI6ZEJQvrw9YvM1yYPRn+5f4rj6a4wE7q 3zpFR56j55Em/qbpszLEOC7cXy6GqF/V1/vGU+23h2aB/sjzT6puZcQ/ULlhUyKJNp t1AF4Wx6t1lkMxnoj6pBJO3Vh4O7rE8iHScV9TtM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jim Broadus , Jiri Kosina , Sasha Levin Subject: [PATCH 5.10 090/306] HID: i2c-hid: Fix Elan touchpad regression Date: Thu, 16 Sep 2021 17:57:15 +0200 Message-Id: <20210916155757.137020440@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jim Broadus [ Upstream commit 786537063bbfb3a7ebc6fc21b2baf37fb91df401 ] A quirk was recently added for Elan devices that has same device match as an entry earlier in the list. The i2c_hid_lookup_quirk function will always return the last match in the list, so the new entry shadows the old entry. The quirk in the previous entry, I2C_HID_QUIRK_BOGUS_IRQ, silenced a flood of messages which have reappeared in the 5.13 kernel. This change moves the two quirk flags into the same entry. Fixes: ca66a6770bd9 (HID: i2c-hid: Skip ELAN power-on command after reset) Signed-off-by: Jim Broadus Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/i2c-hid/i2c-hid-core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c index 1f08c848c33d..998aad8a9e60 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -176,8 +176,6 @@ static const struct i2c_hid_quirks { I2C_HID_QUIRK_NO_IRQ_AFTER_RESET }, { I2C_VENDOR_ID_RAYDIUM, I2C_PRODUCT_ID_RAYDIUM_3118, I2C_HID_QUIRK_NO_IRQ_AFTER_RESET }, - { USB_VENDOR_ID_ELAN, HID_ANY_ID, - I2C_HID_QUIRK_BOGUS_IRQ }, { USB_VENDOR_ID_ALPS_JP, HID_ANY_ID, I2C_HID_QUIRK_RESET_ON_RESUME }, { I2C_VENDOR_ID_SYNAPTICS, I2C_PRODUCT_ID_SYNAPTICS_SYNA2393, @@ -188,7 +186,8 @@ static const struct i2c_hid_quirks { * Sending the wakeup after reset actually break ELAN touchscreen controller */ { USB_VENDOR_ID_ELAN, HID_ANY_ID, - I2C_HID_QUIRK_NO_WAKEUP_AFTER_RESET }, + I2C_HID_QUIRK_NO_WAKEUP_AFTER_RESET | + I2C_HID_QUIRK_BOGUS_IRQ }, { 0, 0 } }; -- 2.30.2