Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp208391imj; Thu, 14 Feb 2019 18:43:49 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia7TtGFcJparMMvaDPVFtU3/y92GN+wd1KteCNovKUOPaPKzwwFAZ/WApOrklP4N4Gf6uir X-Received: by 2002:a62:6303:: with SMTP id x3mr7649203pfb.110.1550198629852; Thu, 14 Feb 2019 18:43:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550198629; cv=none; d=google.com; s=arc-20160816; b=cbss5b2y6x3/4LrJB9v34HH2x/aP970BK8JC1j3KrImQhKOx1hntk+mli1Prlcm4H5 9WpZf61vk/vSv2Uv3N8tcuOnvthX4fyIFC0Y8xyqQXp8cE40l8ApRRangs/aDooYUnQn VOhm3NyTwacXv22u52dE0tIGGEIEYVbkKiyHWvAmRyzdHqhThtn9sOIGf7gEVRl6O8Gq Zp/kYKXTlnP50Onwa6Nyidxv0DRyjNlaiMe8PlCxnkyYsfiMJpi80G/qQY9ANBnpvMU5 hsSu+sK3dvU01SuEPseaID0TqVQXrqR5QhrC4iVQk3a5NoXFQxZaYKye89AUhAxyCckJ r3JQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1mBx49DAg0C8OlRsppQaWT+8DmSlTgHZIBuO/1zIWFw=; b=tQgeyAOaVuU3giMSBqFZvT5dI67yr2aqjeh/tz25nS6lciPcm9eJdz6qo2C5Ixj6d2 mcjH7voJ971j/jSrooF8mzGzGPA7Mg+i9TVdp4GgqyJmXlrTUrlckpeq653EHpaKb0FL amC688FlBPSW+ot2dLq7HRl7MTbfih+wvA9ibTOE1aNKuy5q36hswxaHm1ucsMKxtUu9 yKTACjCPiq4GcOfdBSLwp2JdfBFw6KXR0OxqeTFInfUxHfgvYBXMRxiR3x1oHBBQR5Vn SfIY9Fw1u7WrVaxuMPsZT8epBfrHceV9ugbbXQxKflGU6bxfnWb3bD9+Hb8+ZrbIWLZO oUXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="aWB1gU/0"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s27si3950391pgm.501.2019.02.14.18.43.34; Thu, 14 Feb 2019 18:43:49 -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="aWB1gU/0"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731846AbfBOCmO (ORCPT + 99 others); Thu, 14 Feb 2019 21:42:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:49622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731751AbfBOCJ1 (ORCPT ); Thu, 14 Feb 2019 21:09:27 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9F6A2206BA; Fri, 15 Feb 2019 02:09:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550196567; bh=1zusJERhOeg081NzPEpnxe1ptW9MXZoaZdM2Uc6fNqk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aWB1gU/0ug73fp+SY/cSASuquWR/GmMTdsxb27E2kk8XHeNLe6WIFCU1BFagCKLYb GoaPCVed9YF+coitK0Bbrg9jFCzVvI7AsAG2JVUqr1WQf/8jqYBM0KNpMLinmWImD+ aGuMZ5Zn3N/B8E1NCP2seYQMZNYC73YzH7jLZ1a0= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Kai-Heng Feng , Jiri Kosina , Sasha Levin , linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 4.20 15/77] HID: i2c-hid: Disable runtime PM on Goodix touchpad Date: Thu, 14 Feb 2019 21:07:53 -0500 Message-Id: <20190215020855.176727-15-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190215020855.176727-1-sashal@kernel.org> References: <20190215020855.176727-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kai-Heng Feng [ Upstream commit 77ae0d8e401f083ca69c202502da4fc0e38cb1b7 ] A Goodix touchpad doesn't work. Touching the touchpad can trigger IRQ but there's no input event from HID subsystem. Turns out it reports some invalid data: [ 22.136630] i2c_hid i2c-DELL091F:00: input: 0b 00 01 00 00 00 00 00 00 00 00 After some trial and error, it's another device that doesn't work well with ON/SLEEP commands. Disable runtime PM to fix the issue. Signed-off-by: Kai-Heng Feng Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-ids.h | 3 +++ drivers/hid/i2c-hid/i2c-hid-core.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 27519eb8ee63..81bc2f6b93a3 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -459,6 +459,9 @@ #define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_010A 0x010a #define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_E100 0xe100 +#define I2C_VENDOR_ID_GOODIX 0x27c6 +#define I2C_DEVICE_ID_GOODIX_01F0 0x01f0 + #define USB_VENDOR_ID_GOODTOUCH 0x1aad #define USB_DEVICE_ID_GOODTOUCH_000f 0x000f diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c index 8555ce7e737b..c5edfa966343 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -179,6 +179,8 @@ static const struct i2c_hid_quirks { I2C_HID_QUIRK_DELAY_AFTER_SLEEP }, { USB_VENDOR_ID_LG, I2C_DEVICE_ID_LG_8001, I2C_HID_QUIRK_NO_RUNTIME_PM }, + { I2C_VENDOR_ID_GOODIX, I2C_DEVICE_ID_GOODIX_01F0, + I2C_HID_QUIRK_NO_RUNTIME_PM }, { 0, 0 } }; -- 2.19.1