Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp243121pxf; Wed, 10 Mar 2021 05:30:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHj+GueikRkMXelXUypNpqN+wVfsijyEVSdpKBMiRm0fm3rUY73AFv8DCEJhlsXfdwA8WR X-Received: by 2002:a17:906:4e57:: with SMTP id g23mr3617837ejw.47.1615383033083; Wed, 10 Mar 2021 05:30:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615383033; cv=none; d=google.com; s=arc-20160816; b=FBriov1sLUtCvcBQI1+tkD75AtK79K5rGp+fyDSGig7ESJ3Y8NEDDzzn6kWWtunVay 2Mb+b4zjHwG0tseVjq8S1TgSFO+CbRsDUAf22BPqxbMr0BmRmzVCtLfIDEFKV8ugqc4j d+xpAEgN1/81NTZFkYiTXI0Lp7woXKryhtN/d1x5Mn0ivlwa1B1+gp0x6f4MSo1keSKz bsk+UaGD6G2N1mk70gAwNaFhDAYWsbExXStv+rv/dAlGbxRh2FvI6p6wo8tizlssONFE 6WcjzYtx/IYftfMG6JFnzsh4cUo4/NtJGnNRI3buFzecyFxhAPwODcHOtDqsXkwRUI7W V35w== 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=hscxemQ4sL+N9fiJ2GI5EP1CBVN0CT6X0DPp4IslCeQ=; b=Hge3kuU0srlicKe/gg8HXr0zTYBN5tVinvNkSQMcGonFLAG+QsARTMtbDWVH3wHGUa 1NXjUngIrCaBqipLYrXQfqi75M5cjQANcuRVF9fkJf4YtzdGEZV3JmFnNzRdIPVPiZux 6IsTVOoRKjtU0i6w+0YYTCR0X/2wEJivB04cfsy/h68E9jpUDZakVbeV2hxXstvygYjS HQ40WLQFhYGpkxHYe0cgz4HgeXW8wvDBacFpwfNmwG9Jpuwlyd0eY+qmryDWhGd73vHn kO0FIejDaqFue9UKOEu9AB1ng73L2bPgUVWH1LCsSH90ZVtfUJON2sNg3QydDXaz2KQH SQRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=m0xQSwXg; 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 cw22si11299265edb.429.2021.03.10.05.30.08; Wed, 10 Mar 2021 05:30:33 -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=m0xQSwXg; 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 S233530AbhCJN3E (ORCPT + 99 others); Wed, 10 Mar 2021 08:29:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:47046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233282AbhCJNZR (ORCPT ); Wed, 10 Mar 2021 08:25:17 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CBF6164FF6; Wed, 10 Mar 2021 13:25:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382717; bh=xlKZADZowqjonhakEuVUhDKq3MlV1MdeGYf7cDLsMFg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m0xQSwXg1S2v+U42P1mLEwNbe85m5TuFepMFvfl9rTbAC3q5P2ymu5bwCexn2MD1X 0ZwmywXNfmojFUNBYCGeTpoUzAXkvqLrSfQl4/bDOIngVfVmQ/FrYuSLsFhUoSfrog CDhypSoL2YZirJgV1vyHY7dX+UqWsxKttUUAHiyc= 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.10 40/49] 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:51 +0100 Message-Id: <20210310132323.216679445@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132321.948258062@linuxfoundation.org> References: <20210310132321.948258062@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 4b0033d48863..06813f297dcc 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -639,6 +639,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 aeff1ffb0c8b..cb7758d59014 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