Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17928519ybl; Thu, 2 Jan 2020 15:00:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzGDHFAi+vIYr9BPrCQrs5AORzutC5XJCAQ3FOtrMHuZQiGByodYem8i8BuJjsmYnVKzIlq X-Received: by 2002:a05:6830:18e3:: with SMTP id d3mr90109694otf.190.1578006058052; Thu, 02 Jan 2020 15:00:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578006058; cv=none; d=google.com; s=arc-20160816; b=Tx/Qvs2tCPfeLazYYPQ+zUfBmRBeQNnFuioUBP8p9CCtktf4PxQcR5SmiZKciJJrIn PBg1ucK5qIx5Jq22requ58YbVuuyMmwVJKDqcybCGrUCjI4hHe16Br8R73rA8vvhlrlD 3WP5ep44iB5mXhd4R6pJ1Bc0aPegxLZ3KUP6ljRm1GbAYXV4MjCbwsngM4ZAT3qTuKDM BWIqU8r7CYSk6Em/1jvhwOetqRbApNj+yhMI1OLPtin5Q69V5TRy0RhT/0xdGMtHL4Oi WSC72CHpuexYprzHQrP8E3401GPx7La9gVBl6otgVvhnzFIfWA2g002KT4VnV8igTlS/ Bjjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zW9xNV4N5K0KDF2+wBCxPYmvOI6zpdBFmexCEXMTGVc=; b=RCOhaOvwidtXzkPZ4CxjXb9tMNj/2+9wWu4QCjxDI3kxo+i6kQ46wxCyT6F7pPNSwp wsVvPZKAiDBECanUFM5yrYuD3x9wA7p3pBVau8zjUweAa2MjtCTLgvCbTfbs5LZsulpI xMjoue9ZpepAdxY6AIOP1C6MmhQU3/Pb339omoJuLibBMJt2pr8AT6Gf7ylZic5omyg5 V+KTozs3xdp7B9tDfChw2pRg3sZIulupSq31iJ8tFCYNdqOT+TUPcR0IhDEuCx2AjD5G Ekw9VjaVE0iwRDDb2Wy4NZCUYqi/ZXsXQyHxSzY/zpbwvShWAe89KrNrKv17HiVFy9rZ qnGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Jmy5rBPO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s6si28839762otp.126.2020.01.02.15.00.46; Thu, 02 Jan 2020 15:00:58 -0800 (PST) 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=@kernel.org header.s=default header.b=Jmy5rBPO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727821AbgABWOE (ORCPT + 99 others); Thu, 2 Jan 2020 17:14:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:54158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727813AbgABWOC (ORCPT ); Thu, 2 Jan 2020 17:14:02 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8221022B48; Thu, 2 Jan 2020 22:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003242; bh=3zu+4V2eQVwvmMet9n7DSUnTp8m5rB1/MAk2RXZ9Xmw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jmy5rBPOMZ+obq+gwY8xlHt//egsHCm9JQ63k/AvQOjYjP2KxVbXGH19L1Cu8Xi8k cMVKZWfVwm3N8/bcost/xJegone2AvBEZtscWi/9BRE9yRvlSl5tV1Jy5uTUOGin5f pTI76MMeg550Q424NMVMbiFdKRqBZcvuDt/iOUBM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aaron Ma , Jiri Kosina , Sasha Levin Subject: [PATCH 5.4 078/191] HID: i2c-hid: fix no irq after reset on raydium 3118 Date: Thu, 2 Jan 2020 23:06:00 +0100 Message-Id: <20200102215838.277270849@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102215829.911231638@linuxfoundation.org> References: <20200102215829.911231638@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aaron Ma [ Upstream commit 0c8432236dea20a95f68fa17989ea3f8af0186a5 ] On some ThinkPad L390 some raydium 3118 touchscreen devices doesn't response any data after reset, but some does. Add this ID to no irq quirk, then don't wait for any response alike on these touchscreens. All kinds of raydium 3118 devices work fine. BugLink: https://bugs.launchpad.net/bugs/1849721 Signed-off-by: Aaron Ma Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-ids.h | 1 + drivers/hid/i2c-hid/i2c-hid-core.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 00904537e17c..6273e7178e78 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -960,6 +960,7 @@ #define I2C_VENDOR_ID_RAYDIUM 0x2386 #define I2C_PRODUCT_ID_RAYDIUM_4B33 0x4b33 +#define I2C_PRODUCT_ID_RAYDIUM_3118 0x3118 #define USB_VENDOR_ID_RAZER 0x1532 #define USB_DEVICE_ID_RAZER_BLADE_14 0x011D diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c index 04c088131e04..7608ee053114 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -170,6 +170,8 @@ static const struct i2c_hid_quirks { I2C_HID_QUIRK_SET_PWR_WAKEUP_DEV }, { I2C_VENDOR_ID_HANTICK, I2C_PRODUCT_ID_HANTICK_5288, 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 }, { 0, 0 } -- 2.20.1