Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4260258pxt; Wed, 11 Aug 2021 01:34:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg8eaMGBrGD/x9BOfWMnBbegRBWyk01yBaDJxtTJtWbvDzGLfDxZzHkCaffAPA6mMEEdBi X-Received: by 2002:aa7:dd0d:: with SMTP id i13mr10140953edv.371.1628670854297; Wed, 11 Aug 2021 01:34:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628670854; cv=none; d=google.com; s=arc-20160816; b=te4C7D+t/YSmhd1hfFTs7ArckWSDT+YinqFBvb176chMmiAH+HM2BuQo3C+pYlPCdP FyBFpnU2v3fcaKspUteRIMacSxYjxdy1khY1Vgyaakjp2oLmW6T6fi5TECjfKDBI/l16 cSECboB6G4s5AlubUnM/6BbS9vwYVdoHTRQLi9uM4Zc/wKk9tUg1zwo0jSs8ifQzL5aq GFufkVHlN7NEeWMGaz5WEKNlsu/n9+HOAQjqeimiYNgb4UYPWorYxncnUmWIlDcaNtbw DYr0uwWG3xZh9agHZYSpTE+XlimYEXPVKn0bEE0ZV2CBvs9jFeq+/WrbBrTzO22WCH75 IBng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=RZqRgzHZYgqEPRuuZiIkirwuR0fhVZEI60yV2LcBYEM=; b=BCwhPgrrtyNqfzF+sfPwHawrUCyO98T+XKnsVNGWdiP1FDff/Q8RNFKDxUY6h60MiX 4DE0JcY8lG2JSFkZQ55nx3Ozy+1/XkSBXz2Hl10p+p/YdlOH7RfJAUgZbkK4FKCgNmP5 mhkzSSxvnFlFrY4DOYjB4kw1f5QOSyjPntIQAAWlsVArdjlhvXeXn64hWE5SLcoq2I+b gclv2zpCD3dS+wGA0KyHkjBipZGsvsFwE1pd+0tt+tcVDG8aE5+jL7fG9LdIp642Hk73 XSWBmVvjyH43+XkYDPrjjCuwp4WiVGXuefQEl7ILhcKGMlDsDYdj8kSTZKzrRjF9NSlj 0KuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ClIol3rl; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf27si9391321edb.374.2021.08.11.01.33.51; Wed, 11 Aug 2021 01:34:14 -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=@gmail.com header.s=20161025 header.b=ClIol3rl; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236091AbhHKIcn (ORCPT + 99 others); Wed, 11 Aug 2021 04:32:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235282AbhHKIcj (ORCPT ); Wed, 11 Aug 2021 04:32:39 -0400 Received: from mail-ua1-x92c.google.com (mail-ua1-x92c.google.com [IPv6:2607:f8b0:4864:20::92c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60047C061798; Wed, 11 Aug 2021 01:32:16 -0700 (PDT) Received: by mail-ua1-x92c.google.com with SMTP id t25so812613uar.13; Wed, 11 Aug 2021 01:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RZqRgzHZYgqEPRuuZiIkirwuR0fhVZEI60yV2LcBYEM=; b=ClIol3rlEDFuVYvxlE4Gr0oV80VY7+LLPMCiiyZVWP9vk0uP0Wdw9RJ32FMi8GDUPJ +VtGBzSIoh+x/k5Ga+alG493zgGuqt0zcdWNKsDL31eZPu/kPO2rS9TUgLDeDsCOXbRI TjI5Qi25wGxsQNbiVfN5R/i3mphru4QHi59KnoZEwnQ4mYaz+AWrQEI/ooHz1kvXZwEJ 11vhvgYt1vk4Ttmdj5NTsxGyYHfBUWcRDA036HZA+Dthzt/WxZDqwH1YY+YenpvA07ZO FpHru3XJQ4kffcoIw5VrtIIcB6JSsI0RZcZ6bFwYN2ED/5Ysi4GyVrX1XTKcio/eKXtl 4V/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RZqRgzHZYgqEPRuuZiIkirwuR0fhVZEI60yV2LcBYEM=; b=OoCo0e3DMmbpJuu2oyob8bnQtFHsOrl7JrmopN/whT0r3nwXyy/R1MrCSrAQVzDi2g uuAQyg3mDJUqQi1bZw1VThsOWJGSk6wzn12rsVLz5INz5ic6HSOTrXhk1d2bwAL57VyR EbvurpOQiDa6m/zo9Ck5ficRjNc2bSB2DNRinuYacLFuTBZMi8MjD01h/0205qplkttA qaK1nc1HQrfTOPVCGK2er3hcDbgBSZFogkiSRcGZaHHYw4c8QIC0dv9UKTVJkhTN6oYB 2kzn+xRZF8DFW+sZKFiGorkgSbvMzrvPJMVDg5Lt20wxEF7ficLNly7NA5zJkoEcFaLw 3haw== X-Gm-Message-State: AOAM533g0uphmcufZoaCk3dtCB4cu4wDHZGAj4oIQltWnYRO1KesuiwY x2hd37Y4qik+TPGQZBz7N3tZLgSlw5NtZjhX4FU= X-Received: by 2002:ab0:849:: with SMTP id b9mr24512073uaf.43.1628670735534; Wed, 11 Aug 2021 01:32:15 -0700 (PDT) MIME-Version: 1.0 References: <20210809065505.6823-1-jbroadus@gmail.com> In-Reply-To: <20210809065505.6823-1-jbroadus@gmail.com> From: =?UTF-8?B?6I6K5L2z6ZyW?= Date: Wed, 11 Aug 2021 16:32:04 +0800 Message-ID: Subject: Re: [PATCH] HID: i2c-hid: Fix Elan touchpad regression To: Jim Broadus Cc: jikos@kernel.org, Benjamin Tissoires , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, kai.heng.feng@canonical.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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. > LGTM Many thanks, Johnny/ELAN > Fixes: ca66a6770bd9 (HID: i2c-hid: Skip ELAN power-on command after reset) > Signed-off-by: Jim Broadus > --- > 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 46474612e73c..517141138b00 100644 > --- a/drivers/hid/i2c-hid/i2c-hid-core.c > +++ b/drivers/hid/i2c-hid/i2c-hid-core.c > @@ -171,8 +171,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, > @@ -183,7 +181,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.31.1 >