Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1076578pxb; Thu, 4 Mar 2021 02:37:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHaBI59QoV/6y1D2DgBTUdhxClhouZXOTORnuNIV/5S41AnzQSybxh0qz9ELu80o/iDT2o X-Received: by 2002:aa7:db15:: with SMTP id t21mr3545306eds.145.1614854250202; Thu, 04 Mar 2021 02:37:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614854250; cv=none; d=google.com; s=arc-20160816; b=ncSWZ4J+pmqfVbYomwIiZy6gQF2EiVfUSJGL0jfzXXJflkdyJ5kLbxjbVT1UaUgn8B 6iDXPFAhEVrmc3BfxU2gqVNLcmTv84Su5tDobUAmmxpT6+1vtPxfO73xlj6r7woWu2IT tDi3ig9SdydRJFyzSm+y7Z8r7y6fulKgoQhsL23QUXRvSAeWeoD3pZj1u2gFkmTGt6lE Z1G/0mfbAtMubgbjYP2Emk+ewwXfSqu0LGUE2BXbDqBoSG3y2xTvLbPh5I7r1GO/Ntg+ wIsze/jmLho5Ma8wqGfKRa3d8AzLWblDmGIIt6Mo465LyIsPZtEuw03riNPuqd2THTzU l3LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :references:cc:to:from:subject:reply-to; bh=AtKuY0xKW3Eb0mprEeGteydv8kjxmC6QKExP77SXbHw=; b=tF+l1kP9w/h5Jm3ZxezdkjfVt3w27+IeFZypRK2qTB3KPPx7s5BBA2tFT15kkZdsGH cAJF4t2/BLWHLsd/mEGtExayzOvRk4e8Ni27GvWkvkj/h7KEtdOPkrd1VJkVY9D7P2t1 boh22hiVEPJ/rxZ04sxnw1LLqMuwIvYtIuhO1eBXsSb6fXqa+bAEOPN0eKyzu+udjLu5 d+LuWkEwhVoXn5u9NIGY94gMXtIWMUppJi5pxeSXzWi/r3u0286bfS4ie4DK6DyNrFOu 1DOM9F5979GHYDd12ZEDsTpx9TELaT6yJJWHYpfA3kj75Xhw7FlugVdzfbvzmHwm0l+B bnfQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be2si6074628edb.153.2021.03.04.02.37.07; Thu, 04 Mar 2021 02:37:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385154AbhCCRIj (ORCPT + 99 others); Wed, 3 Mar 2021 12:08:39 -0500 Received: from air.basealt.ru ([194.107.17.39]:47648 "EHLO air.basealt.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230421AbhCCMuQ (ORCPT ); Wed, 3 Mar 2021 07:50:16 -0500 Received: by air.basealt.ru (Postfix, from userid 490) id 770D6589433; Wed, 3 Mar 2021 12:48:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 Received: from nickel-ws.localdomain (obninsk.basealt.ru [217.15.195.17]) by air.basealt.ru (Postfix) with ESMTPSA id 268C9589421; Wed, 3 Mar 2021 12:48:01 +0000 (UTC) Reply-To: nickel@basealt.ru Subject: Re: Need some help on "Input: elantech - add LEN2146 to SMBus blacklist for ThinkPad L13 Gen2" From: Nikolai Kostrigin To: linux-i2c@vger.kernel.org, lkml , "open list:HID CORE LAYER" Cc: "Gustavo A. R. Silva" , Colin Ian King , Dmitry Torokhov , Benjamin Tissoires , "jingle.wu" , Wolfram Sang References: <0d1eaadd-5350-63a4-fe6d-f8f357c49504@basealt.ru> <20210225093801.GA1008@ninjato> <3ffc29f8-cdf1-15fe-6406-28872bba5716@basealt.ru> Organization: BaseALT Message-ID: Date: Wed, 3 Mar 2021 15:48:00 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <3ffc29f8-cdf1-15fe-6406-28872bba5716@basealt.ru> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, resending this once again, hoping it wouldn't contain any HTML and wouldn't be filtered by LKML. 03.03.2021 13:11, Nikolai Kostrigin пишет: > Hi, > > 25.02.2021 12:38, Wolfram Sang пишет: >> Hi, >> >>> I had a preliminary discussion with Benjamin Tissoires and according to >>> our agreement I repost it for wider audience. >>> Blacklisting the device was decided to be a bad idea. >>> But actually I managed to get touchpad totally operational via SMBus >>> using a following hack: >>> >>> providing a parameter to i2c_i801 driver: >>> >>> modprobe i2c_i801 disable_features=0x2 (i.e. disable the block buffer). >> So, from an I2C perspective, there are two things to mention here: >> >> a) I am in the process of extending the I2C core to allow block >> transfers > 32 byte. This is a slow process, though, because we need to >> pay attention to not break userspace ABI. If this is done *and* the i801 >> driver supports length > 32 bytes, too, then it would work natively. If >> the i801 can do this, this is a question for Jean Delvare. >> >> b) I don't know Elantech HW but there are devices out there which allow >> configuration for the block size. Something like a bit specifying if >> block transfers > 32 are allowed. Or the SMBus version to support. Block >> transfers > 32 are SMBus 3.0+ only. If your HW does not have that, >> disabling SMBus is an option, too. Disabling it in the i801 driver is >> too much of a hammer, I'd say. >> >> Hope this helps! Happy hacking, >> >> Wolfram > Thank you for the information, Wolfram! > > Finally it turned out that the solution was near me from the very > beginning, but I failed to check mainline code at that moment (which is > now 5.11). > Happily Jingle Wu has pointed me to a couple of  patches of his > (co-authored by Dmitry Torokhov): > > https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git/commit/?h=next&id=056115daede8d01f71732bc7d778fb85acee8eb6 > > https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git/commit/?h=next&id=e4c9062717feda88900b566463228d1c4910af6d > > I applied those to 5.10.17 and trackpoint works like a charm. > So I guess theese patches are worth being backported to the longterm > 5.10 branch. > I'm really sorry for the noise. > -- Best regards, Nikolai Kostrigin