Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp240808pxf; Wed, 10 Mar 2021 05:27:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4mZrqHnhJ4MWLpHvH8cSk8lpfIPNjqTvWxBkwgnTet7yeFXfgBvlK8v5N45po4vk1EyFE X-Received: by 2002:a17:906:f56:: with SMTP id h22mr2934696ejj.494.1615382826424; Wed, 10 Mar 2021 05:27:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382826; cv=none; d=google.com; s=arc-20160816; b=CsZ2+usbb86RAwl/rBVEnRfDlQnRJ+ZjWnLwCadqXcKOL7eKxRucer/hfalwqwBpd1 AZBRJ+LHyCv0nH1bbwME7YM4WohV/c62X4BmK3C0pwiHqyQS6fRoEwyv0Ra6kBXgjX5W ZIpOCNUpn4voKFs5Dm8nrx/INxOhklsyput2+jpaltm8oVwcpLs33b2tf/z476l0L2i2 QTsJDZbzITFMYpszGuEXSqlNdrQh9P2sROqL/eLRGQp54U9sXRB9u1rXHHpzIgGjLoS7 SZh9+wrsuQD/hhpilShk+VsWpsyTQ+WSrSwmV1YAmIHshbGIUF5SX8bj316ZlKqy1e74 aCpg== 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=KwHwU3T7xEOkBu2y2tu30m3vLdxIzyUuYxAOswIcDHw=; b=nC8iklVhU8/nqSZoNiU3ikBonixzRgLKz/vXzQfdEu3qbiDWGm8WPKRzE+BqFCK+j9 i6n1LrT/zllV7XnY1sA/az0qkEN3dbwZ59AKT4RxxvBo38CcOAXnd8JEH5URSXGR5b2l K5mwoM122zCb6eiECrtJ7AXUF+nRkTxYpigtVL2Y31eQV/855wMDUva3d9b7djdHeStI AsYJ6otRQQD/zZkF9HdtfVWGX/YgsgpEp4KlsyF7gNIAyVV2Q79nEh1CrF7qEJonzJ28 CUolzY0TWODx8mgsE6RhaPSf6ZkJLxhxnGWeTl1pen097I72BC+5VnVDyyNE2k71oKjd oTXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LJfbmmkw; 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 g6si11766650ejo.534.2021.03.10.05.26.43; Wed, 10 Mar 2021 05:27:06 -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=LJfbmmkw; 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 S233525AbhCJNZv (ORCPT + 99 others); Wed, 10 Mar 2021 08:25:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:45702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232921AbhCJNYl (ORCPT ); Wed, 10 Mar 2021 08:24:41 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id EF35364FE0; Wed, 10 Mar 2021 13:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382681; bh=vy1o8xVd1LaQqflL97senOzoPjiGpvAcuTkfizoO0mo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LJfbmmkwLvptp/adI8zuLxNqx6NB7KxJ6PYldv+u2wVGMOxeB1PSsJgW3vAyfo0EP FHm74vHqMqYVLr3+cMNEvYPuFRrPUmrpkpsiEmgork4V+HnHB1F7RmNo8DYhsISnp3 kiE14XZEHFWAXGQxbM2F1L3SPE8H4sR0BWfPgXRU= 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.11 26/36] HID: i2c-hid: Add I2C_HID_QUIRK_NO_IRQ_AFTER_RESET for ITE8568 EC on Voyo Winpad A15 Date: Wed, 10 Mar 2021 14:23:39 +0100 Message-Id: <20210310132321.321123684@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132320.510840709@linuxfoundation.org> References: <20210310132320.510840709@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 5ba0aa1d2335..b60279aaed43 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 bfe716d7ea44..c586acf2fc0b 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -171,6 +171,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