Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp244609pxf; Wed, 10 Mar 2021 05:32:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGmpBRNCxFvNMPtpKztsRbf3izy/+rp/B5EsPhnTFKU45V+O2efgtO75SMyQmVe74Sm6Wu X-Received: by 2002:a05:6402:32a:: with SMTP id q10mr3254317edw.15.1615383155169; Wed, 10 Mar 2021 05:32:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615383155; cv=none; d=google.com; s=arc-20160816; b=EMGRPIAY/qMU08C835oPQ5dlQ5weB/ehIkvCchBtix2gVkh+gjrvsnCDBbsOq4YtoC lcld/69m3PNKoyfBR7n2sgVNwcs4kJNRQtdOAy1d4pF4+QUF5sX6U0gw+bOgiHu6HX4N CsGCMqNaoMdDPYB3CDp62kzcAMyygUiffnV0uFuO0HxkmrWn4QfMlaup/SA33fBQKnvn 11wiD76J48EhSCB/Josot1/2aC8QoWscNV2zKD8d+vlWMczdX21kzWHNBYK7b1dYcw6B egmePqIjpg3itLLS9O0LRNTQkkf0EYSlzL57YLtcSPu4IyJAyDgGchIuMKogbmQ3Shw6 YaOQ== 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=lh72cNirnnipIFgJLt1YNjKzdvgPNHhxoji3Rk1taz0=; b=FIhMNI0ksXK5bFUaJ4GgXVG1TOFqIguSq+tnSwSrWbMPOBmNMBaNOF37aTCwgdq3PH 4vrR83zof/y3ttXqShx1FaBwWJAc/myxobTPUELvME3J74hwdKeXH6gB/ULUL8+sDADH ErvdEDzK/r+cXlRMLXe6tsDiY74DK78uJN15SDcFyoBR6iXA9UlHmry7+ovL8n/cb7Ba dMTfpGKWccFeUP5HWvl5rHUTlIh/K0OiOwnqTCwA27nFCNJykxF7CA5AFyX3J7YhFfzi YadnvsZRfKc+tlz+8BJzJj7cY8TzuBctjWZsOPZ6ErUBmZxPI5g60zi18M/nDP1QtXk2 AR7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZkJ8w513; 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 n19si7928581edr.388.2021.03.10.05.32.12; Wed, 10 Mar 2021 05:32:35 -0800 (PST) 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=ZkJ8w513; 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 S232978AbhCJN27 (ORCPT + 99 others); Wed, 10 Mar 2021 08:28:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:47184 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233287AbhCJNZS (ORCPT ); Wed, 10 Mar 2021 08:25:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D97B6508D; Wed, 10 Mar 2021 13:25:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382717; bh=mzcP6l4rTut90mi4k0H3tuOf4wjP53ALaglonlf0KLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZkJ8w5135cyn3zdmHkehc4lByKBNaD0cmrOukQgayfciw0/Ycsb2R/G4t9MAOMpZP FITWAQmCHqvBWVfqNbMFw4yB9PxWuZDjxc342+QpzNdFD6njj/9M7vUjFLIRjb75ex sKL1FmBdU0LG7wM9mCw2inDaqidcL2xlECnp8NHM= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Jiri Kosina , Sasha Levin Subject: [PATCH 5.4 22/24] HID: i2c-hid: Add I2C_HID_QUIRK_NO_IRQ_AFTER_RESET for ITE8568 EC on Voyo Winpad A15 Date: Wed, 10 Mar 2021 14:24:34 +0100 Message-Id: <20210310132321.226315451@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132320.550932445@linuxfoundation.org> References: <20210310132320.550932445@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: Greg Kroah-Hartman From: Hans de Goede [ Upstream commit fc6a31b00739356809dd566e16f2c4325a63285d ] The ITE8568 EC on the Voyo Winpad A15 presents itself as an I2C-HID attached keyboard and mouse (which seems to never send any events). This needs the I2C_HID_QUIRK_NO_IRQ_AFTER_RESET quirk, otherwise we get the following errors: [ 3688.770850] i2c_hid i2c-ITE8568:00: failed to reset device. [ 3694.915865] i2c_hid i2c-ITE8568:00: failed to reset device. [ 3701.059717] i2c_hid i2c-ITE8568:00: failed to reset device. [ 3707.205944] i2c_hid i2c-ITE8568:00: failed to reset device. [ 3708.227940] i2c_hid i2c-ITE8568:00: can't add hid device: -61 [ 3708.236518] i2c_hid: probe of i2c-ITE8568:00 failed with error -61 Which leads to a significant boot delay. Signed-off-by: Hans de Goede Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-ids.h | 2 ++ drivers/hid/i2c-hid/i2c-hid-core.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index fc499c9039a0..d004f5645b30 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -641,6 +641,8 @@ #define USB_DEVICE_ID_INNEX_GENESIS_ATARI 0x4745 #define USB_VENDOR_ID_ITE 0x048d +#define I2C_VENDOR_ID_ITE 0x103c +#define I2C_DEVICE_ID_ITE_VOYO_WINPAD_A15 0x184f #define USB_DEVICE_ID_ITE_LENOVO_YOGA 0x8386 #define USB_DEVICE_ID_ITE_LENOVO_YOGA2 0x8350 #define I2C_DEVICE_ID_ITE_LENOVO_LEGION_Y720 0x837a diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c index 592176aff027..96898983db99 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -173,6 +173,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_ITE, I2C_DEVICE_ID_ITE_VOYO_WINPAD_A15, + 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, -- 2.30.1