Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2565948lkm; Mon, 20 Sep 2021 18:52:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzakZIfxv6Ume0yqn7s6qgYShO0QEvTfSuBAYaUoDcS/YW2bCuPa2FjK4Arl/kazFvqOlDW X-Received: by 2002:a92:cb11:: with SMTP id s17mr20140290ilo.90.1632189048372; Mon, 20 Sep 2021 18:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632189048; cv=none; d=google.com; s=arc-20160816; b=Q6P3yvJf/9KZzU0xTKYuXHFBqV/kvZFdi5F4WkYdPmnKszdU0GHP+zpL7xYDuueaI0 ejwkLHKWSwO87O5uZchoGtNwsVVPXNY3pvMqdu5V//hFDoInQZ84MxW4XvoULCPLbGOQ QLdjwMGZnz/bWgXLB+lE6jNDysqG3cw+IgEDo2+AnyzOUFKC/NTfSahIBdlnqys2Xa0C twSrGqKHLMa4x6cl1b1E2O/foK2YGBHMprLKAbtammngsqJwkZYyPCB/HKlgoTQJaWXy gTsLU0GdQDdNN1xar8Pg4V3lQa5dkDSUFTbAOhWAIN8UzOw+XuZXIyHOh2McKy/zSo4E C9tA== 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=rbAHdFKoY6dMjWHmrl73aGx0LLPXL527QRlykJuHIJM=; b=isw1rFQkLY4F/6cJVGh9pVxob07ywYe07J5nFFLVW+TQjoGlkfsrw9MmA485eEqWGH jdxjrS9tAJDH0kgCwNNETgMV0SAHQidgY2kYsCJ65rQjyQRYQQwQo/Ah//w362WFQOHY j6GfHNkwATkI4spbK4en5bpVKd/wvjQGQZGN0VW5aAwNs1/b84v5cnMY+smwZq3rB+WQ ftEY9AREgKMZjVJrLrS6kWffdsvhKwqY+J0dvb5v2aMpr0HCkQo4uAn/FN/RkmSFqdgY OMd1uyNIYWvxPM9KfKUaPBIM21lE4KC6PDtPrsrQWVVrgyb+VaEXI7XxZdxJpUA83rbk F+aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=k5CYv2k3; 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 x1si13703755ilm.82.2021.09.20.18.50.36; Mon, 20 Sep 2021 18:50:48 -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=k5CYv2k3; 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 S1359011AbhITSJK (ORCPT + 99 others); Mon, 20 Sep 2021 14:09:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:33076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357335AbhITSD4 (ORCPT ); Mon, 20 Sep 2021 14:03:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 795D0619FA; Mon, 20 Sep 2021 17:17:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158223; bh=okWWpq5ZMSCdnb2qy9kjJUnCAJGdNZ7DXdug3735cnM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k5CYv2k3zcYE18NlZX2Dohft0EfC2teaS0616dWuMJYcbYDgnXLufx1exn+wWygtB olo5CCD/MuFmEw+vSoAm/YBGOZsHLkxyLFQ53RyLHOFL91UIozEip0u6oXFrjPP+du DKxccb2VQfDzMTdEO4IPcz/HE071tPa36PxQvaKE= 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.4 058/260] HID: i2c-hid: Fix Elan touchpad regression Date: Mon, 20 Sep 2021 18:41:16 +0200 Message-Id: <20210920163933.089929797@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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 6f7a3702b5fb..ac076ac73de5 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -178,8 +178,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, @@ -190,7 +188,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