* elan_i2c: failed to read report data: -71 @ 2021-03-02 21:09 Uwe Kleine-König 2021-03-03 1:26 ` Dmitry Torokhov 2021-03-03 3:13 ` jingle 0 siblings, 2 replies; 13+ messages in thread From: Uwe Kleine-König @ 2021-03-02 21:09 UTC (permalink / raw) To: Jingle Wu, Dmitry Torokhov, kernel; +Cc: linux-input [-- Attachment #1: Type: text/plain, Size: 2368 bytes --] Hello, I just installed Linux on a new Thinkpad E15 and I experience a non-working touchpad. I can move the mouse just fine, but when I press one of the three buttons or move the trackpoint the kernel log gets flooded with: elan_i2c 0-0015: failed to read report data: -71 and nothing happens in the GUI. This is a kernel from Debian testing, i.e. 5.10.13, during probe of the device the following is reported: elan_i2c 0-0015: supply vcc not found, using dummy regulator elan_i2c 0-0015: Elan Touchpad: Module ID: 0x000e, Firmware: 0x0001, Sample: 0x0000, IAP: 0x0000 input: Elan Touchpad as /devices/pci0000:00/0000:00:1f.4/i2c-0/0-0015/input/input21 input: Elan TrackPoint as /devices/pci0000:00/0000:00:1f.4/i2c-0/0-0015/input/input22 I backported commits 056115daede8 Input: elan_i2c - add new trackpoint report type 0x5F c7f0169e3bd2 Input: elan_i2c_core - move header inclusion inside to this kernel, but this didn't help. When enabling smbus tracing the matching events are: irq/159-elan_i2-2207 [003] .... 963.625641: smbus_read: i2c-0 a=015 f=0040 c=a8 BLOCK_DATA irq/159-elan_i2-2207 [003] .... 963.629247: smbus_result: i2c-0 a=015 f=0000 c=a8 BLOCK_DATA rd res=-71 The relevant code is: len = i2c_smbus_read_block_data(client, ETP_SMBUS_PACKET_QUERY, &report[ETP_SMBUS_REPORT_OFFSET]); if (len < 0) { dev_err(&client->dev, "failed to read report data: %d\n", len); return len; } I think the failing location in the i2c driver is if (read_write == I2C_SMBUS_READ || command == I2C_SMBUS_BLOCK_PROC_CALL) { len = inb_p(SMBHSTDAT0(priv)); if (len < 1 || len > I2C_SMBUS_BLOCK_MAX) return -EPROTO; data->block[0] = len; for (i = 0; i < len; i++) data->block[i + 1] = inb_p(SMBBLKDAT(priv)); } in i801_block_transaction_by_block(). Does this ring a bell? Does someone know if there is documentation available? Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ | [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: elan_i2c: failed to read report data: -71 2021-03-02 21:09 elan_i2c: failed to read report data: -71 Uwe Kleine-König @ 2021-03-03 1:26 ` Dmitry Torokhov 2021-03-03 10:41 ` Nikolai Kostrigin 2021-03-03 3:13 ` jingle 1 sibling, 1 reply; 13+ messages in thread From: Dmitry Torokhov @ 2021-03-03 1:26 UTC (permalink / raw) To: Uwe Kleine-König Cc: Jingle Wu, kernel, linux-input, nickel, Benjamin Tissoires, Wolfram Sang Hi Uwe, On Tue, Mar 02, 2021 at 10:09:34PM +0100, Uwe Kleine-König wrote: > Hello, > > I just installed Linux on a new Thinkpad E15 and I experience a > non-working touchpad. I can move the mouse just fine, but when I press > one of the three buttons or move the trackpoint the kernel log gets > flooded with: > > elan_i2c 0-0015: failed to read report data: -71 > > and nothing happens in the GUI. > > This is a kernel from Debian testing, i.e. 5.10.13, during probe of the > device the following is reported: > > elan_i2c 0-0015: supply vcc not found, using dummy regulator > elan_i2c 0-0015: Elan Touchpad: Module ID: 0x000e, Firmware: 0x0001, Sample: 0x0000, IAP: 0x0000 > input: Elan Touchpad as /devices/pci0000:00/0000:00:1f.4/i2c-0/0-0015/input/input21 > input: Elan TrackPoint as /devices/pci0000:00/0000:00:1f.4/i2c-0/0-0015/input/input22 > > I backported commits > > 056115daede8 Input: elan_i2c - add new trackpoint report type 0x5F > c7f0169e3bd2 Input: elan_i2c_core - move header inclusion inside > > to this kernel, but this didn't help. > > When enabling smbus tracing the matching events are: > > irq/159-elan_i2-2207 [003] .... 963.625641: smbus_read: i2c-0 a=015 f=0040 c=a8 BLOCK_DATA > irq/159-elan_i2-2207 [003] .... 963.629247: smbus_result: i2c-0 a=015 f=0000 c=a8 BLOCK_DATA rd res=-71 > > The relevant code is: > > len = i2c_smbus_read_block_data(client, > ETP_SMBUS_PACKET_QUERY, > &report[ETP_SMBUS_REPORT_OFFSET]); > if (len < 0) { > dev_err(&client->dev, "failed to read report data: %d\n", len); > return len; > } > > I think the failing location in the i2c driver is > > if (read_write == I2C_SMBUS_READ || > command == I2C_SMBUS_BLOCK_PROC_CALL) { > len = inb_p(SMBHSTDAT0(priv)); > if (len < 1 || len > I2C_SMBUS_BLOCK_MAX) > return -EPROTO; > > data->block[0] = len; > for (i = 0; i < len; i++) > data->block[i + 1] = inb_p(SMBBLKDAT(priv)); > } > > in i801_block_transaction_by_block(). > > Does this ring a bell? Does someone know if there is documentation > available? I believe Nikolai also run into this issue and is saying that modprobe i2c_i801 disable_features=0x2 cures the touchpad. Thanks. -- Dmitry ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: elan_i2c: failed to read report data: -71 2021-03-03 1:26 ` Dmitry Torokhov @ 2021-03-03 10:41 ` Nikolai Kostrigin 0 siblings, 0 replies; 13+ messages in thread From: Nikolai Kostrigin @ 2021-03-03 10:41 UTC (permalink / raw) To: Dmitry Torokhov, Uwe Kleine-König Cc: Jingle Wu, kernel, linux-input, Benjamin Tissoires, Wolfram Sang Hi, 03.03.2021 04:26, Dmitry Torokhov пишет: > Hi Uwe, > > On Tue, Mar 02, 2021 at 10:09:34PM +0100, Uwe Kleine-König wrote: >> Hello, >> >> I just installed Linux on a new Thinkpad E15 and I experience a >> non-working touchpad. I can move the mouse just fine, but when I press >> one of the three buttons or move the trackpoint the kernel log gets >> flooded with: >> >> elan_i2c 0-0015: failed to read report data: -71 >> >> and nothing happens in the GUI. >> >> This is a kernel from Debian testing, i.e. 5.10.13, during probe of the >> device the following is reported: >> >> elan_i2c 0-0015: supply vcc not found, using dummy regulator >> elan_i2c 0-0015: Elan Touchpad: Module ID: 0x000e, Firmware: 0x0001, Sample: 0x0000, IAP: 0x0000 >> input: Elan Touchpad as /devices/pci0000:00/0000:00:1f.4/i2c-0/0-0015/input/input21 >> input: Elan TrackPoint as /devices/pci0000:00/0000:00:1f.4/i2c-0/0-0015/input/input22 >> >> I backported commits >> >> 056115daede8 Input: elan_i2c - add new trackpoint report type 0x5F >> c7f0169e3bd2 Input: elan_i2c_core - move header inclusion inside Uwe, you might miss e4c9062717fe Input: elantech - fix protocol errors for some trackpoints in SMBus mode >> >> to this kernel, but this didn't help. >> >> When enabling smbus tracing the matching events are: >> >> irq/159-elan_i2-2207 [003] .... 963.625641: smbus_read: i2c-0 a=015 f=0040 c=a8 BLOCK_DATA >> irq/159-elan_i2-2207 [003] .... 963.629247: smbus_result: i2c-0 a=015 f=0000 c=a8 BLOCK_DATA rd res=-71 >> >> The relevant code is: >> >> len = i2c_smbus_read_block_data(client, >> ETP_SMBUS_PACKET_QUERY, >> &report[ETP_SMBUS_REPORT_OFFSET]); >> if (len < 0) { >> dev_err(&client->dev, "failed to read report data: %d\n", len); >> return len; >> } >> >> I think the failing location in the i2c driver is >> >> if (read_write == I2C_SMBUS_READ || >> command == I2C_SMBUS_BLOCK_PROC_CALL) { >> len = inb_p(SMBHSTDAT0(priv)); >> if (len < 1 || len > I2C_SMBUS_BLOCK_MAX) >> return -EPROTO; >> >> data->block[0] = len; >> for (i = 0; i < len; i++) >> data->block[i + 1] = inb_p(SMBBLKDAT(priv)); >> } >> >> in i801_block_transaction_by_block(). >> >> Does this ring a bell? Does someone know if there is documentation >> available? > I believe Nikolai also run into this issue and is saying that > > modprobe i2c_i801 disable_features=0x2 > > cures the touchpad. Yes, but the really rock solid solution is already in 5.11 (thanks to Jingle and Dmitry): 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 which solves the issue for me as I mentioned in the original thread > > Thanks. > -- Best regards, Nikolai Kostrigin ^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: elan_i2c: failed to read report data: -71 2021-03-02 21:09 elan_i2c: failed to read report data: -71 Uwe Kleine-König 2021-03-03 1:26 ` Dmitry Torokhov @ 2021-03-03 3:13 ` jingle 2021-03-03 18:32 ` Uwe Kleine-König 2021-03-26 9:00 ` Egor Ignatov 1 sibling, 2 replies; 13+ messages in thread From: jingle @ 2021-03-03 3:13 UTC (permalink / raw) To: 'Uwe Kleine-König', 'Dmitry Torokhov', kernel Cc: linux-input HI uwe: Please updates this patchs. https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git/commit/?h=nex t&id=056115daede8d01f71732bc7d778fb85acee8eb6 https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git/commit/?h=nex t&id=e4c9062717feda88900b566463228d1c4910af6d Thanks jingle -----Original Message----- From: Uwe Kleine-König [mailto:u.kleine-koenig@pengutronix.de] Sent: Wednesday, March 03, 2021 5:10 AM To: Jingle Wu; Dmitry Torokhov; kernel@pengutronix.de Cc: linux-input@vger.kernel.org Subject: elan_i2c: failed to read report data: -71 Hello, I just installed Linux on a new Thinkpad E15 and I experience a non-working touchpad. I can move the mouse just fine, but when I press one of the three buttons or move the trackpoint the kernel log gets flooded with: elan_i2c 0-0015: failed to read report data: -71 and nothing happens in the GUI. This is a kernel from Debian testing, i.e. 5.10.13, during probe of the device the following is reported: elan_i2c 0-0015: supply vcc not found, using dummy regulator elan_i2c 0-0015: Elan Touchpad: Module ID: 0x000e, Firmware: 0x0001, Sample: 0x0000, IAP: 0x0000 input: Elan Touchpad as /devices/pci0000:00/0000:00:1f.4/i2c-0/0-0015/input/input21 input: Elan TrackPoint as /devices/pci0000:00/0000:00:1f.4/i2c-0/0-0015/input/input22 I backported commits 056115daede8 Input: elan_i2c - add new trackpoint report type 0x5F c7f0169e3bd2 Input: elan_i2c_core - move header inclusion inside to this kernel, but this didn't help. When enabling smbus tracing the matching events are: irq/159-elan_i2-2207 [003] .... 963.625641: smbus_read: i2c-0 a=015 f=0040 c=a8 BLOCK_DATA irq/159-elan_i2-2207 [003] .... 963.629247: smbus_result: i2c-0 a=015 f=0000 c=a8 BLOCK_DATA rd res=-71 The relevant code is: len = i2c_smbus_read_block_data(client, ETP_SMBUS_PACKET_QUERY, &report[ETP_SMBUS_REPORT_OFFSET]); if (len < 0) { dev_err(&client->dev, "failed to read report data: %d\n", len); return len; } I think the failing location in the i2c driver is if (read_write == I2C_SMBUS_READ || command == I2C_SMBUS_BLOCK_PROC_CALL) { len = inb_p(SMBHSTDAT0(priv)); if (len < 1 || len > I2C_SMBUS_BLOCK_MAX) return -EPROTO; data->block[0] = len; for (i = 0; i < len; i++) data->block[i + 1] = inb_p(SMBBLKDAT(priv)); } in i801_block_transaction_by_block(). Does this ring a bell? Does someone know if there is documentation available? Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ | ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: elan_i2c: failed to read report data: -71 2021-03-03 3:13 ` jingle @ 2021-03-03 18:32 ` Uwe Kleine-König 2021-03-03 20:03 ` Uwe Kleine-König 2021-03-26 9:00 ` Egor Ignatov 1 sibling, 1 reply; 13+ messages in thread From: Uwe Kleine-König @ 2021-03-03 18:32 UTC (permalink / raw) To: jingle; +Cc: 'Dmitry Torokhov', kernel, linux-input [-- Attachment #1: Type: text/plain, Size: 866 bytes --] Hello, On Wed, Mar 03, 2021 at 11:13:21AM +0800, jingle wrote: > HI uwe: > > Please updates this patchs. > > 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 The first was one of the two patches I already tried, but the latter indeed fixes my problem \o/. @Dmitry: If you don't consider your tree stable, feel free to add a Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> to e4c9062717feda88900b566463228d1c4910af6d. Best regards and thanks for your support, Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ | [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: elan_i2c: failed to read report data: -71 2021-03-03 18:32 ` Uwe Kleine-König @ 2021-03-03 20:03 ` Uwe Kleine-König 2021-03-04 1:53 ` 'Dmitry Torokhov' 0 siblings, 1 reply; 13+ messages in thread From: Uwe Kleine-König @ 2021-03-03 20:03 UTC (permalink / raw) To: 'Dmitry Torokhov'; +Cc: jingle, kernel, linux-input, stable [-- Attachment #1: Type: text/plain, Size: 1119 bytes --] Hello Dmitry, On Wed, Mar 03, 2021 at 07:32:23PM +0100, Uwe Kleine-König wrote: > Hello, > > On Wed, Mar 03, 2021 at 11:13:21AM +0800, jingle wrote: > > HI uwe: > > > > Please updates this patchs. > > > > 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 > > The first was one of the two patches I already tried, but the latter > indeed fixes my problem \o/. > > @Dmitry: If you don't consider your tree stable, feel free to add a > > Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> > > to e4c9062717feda88900b566463228d1c4910af6d. Do you consider this patch for stable? I'd like to see it in Debian's 5.10 kernel and I guess I'm not the only one who would benefit from such a backport. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ | [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: elan_i2c: failed to read report data: -71 2021-03-03 20:03 ` Uwe Kleine-König @ 2021-03-04 1:53 ` 'Dmitry Torokhov' 2021-03-04 6:59 ` Uwe Kleine-König 0 siblings, 1 reply; 13+ messages in thread From: 'Dmitry Torokhov' @ 2021-03-04 1:53 UTC (permalink / raw) To: Uwe Kleine-König; +Cc: jingle, kernel, linux-input, stable Hi Uwe, On Wed, Mar 03, 2021 at 09:03:30PM +0100, Uwe Kleine-König wrote: > Hello Dmitry, > > On Wed, Mar 03, 2021 at 07:32:23PM +0100, Uwe Kleine-König wrote: > > Hello, > > > > On Wed, Mar 03, 2021 at 11:13:21AM +0800, jingle wrote: > > > HI uwe: > > > > > > Please updates this patchs. > > > > > > 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 > > > > The first was one of the two patches I already tried, but the latter > > indeed fixes my problem \o/. > > > > @Dmitry: If you don't consider your tree stable, feel free to add a > > > > Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> > > > > to e4c9062717feda88900b566463228d1c4910af6d. > > Do you consider this patch for stable? I'd like to see it in Debian's > 5.10 kernel and I guess I'm not the only one who would benefit from such > a backport. When I was applying the patches I did not realize that there was already hardware in the wild that needed it. The patches are now in mainline, so I can no longer adjust the tags, but I will not object if you propose them for stable. Thanks. -- Dmitry ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: elan_i2c: failed to read report data: -71 2021-03-04 1:53 ` 'Dmitry Torokhov' @ 2021-03-04 6:59 ` Uwe Kleine-König 2021-03-04 8:49 ` Nikolai Kostrigin 2021-03-04 13:38 ` Greg KH 0 siblings, 2 replies; 13+ messages in thread From: Uwe Kleine-König @ 2021-03-04 6:59 UTC (permalink / raw) To: stable; +Cc: jingle, kernel, linux-input, 'Dmitry Torokhov' [-- Attachment #1: Type: text/plain, Size: 2238 bytes --] Hello, On Wed, Mar 03, 2021 at 05:53:37PM -0800, 'Dmitry Torokhov' wrote: > On Wed, Mar 03, 2021 at 09:03:30PM +0100, Uwe Kleine-König wrote: > > On Wed, Mar 03, 2021 at 07:32:23PM +0100, Uwe Kleine-König wrote: > > > On Wed, Mar 03, 2021 at 11:13:21AM +0800, jingle wrote: > > > > Please updates this patchs. > > > > > > > > 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 > > > > > > The first was one of the two patches I already tried, but the latter > > > indeed fixes my problem \o/. > > > > > > @Dmitry: If you don't consider your tree stable, feel free to add a > > > > > > Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> > > > > > > to e4c9062717feda88900b566463228d1c4910af6d. > > > > Do you consider this patch for stable? I'd like to see it in Debian's > > 5.10 kernel and I guess I'm not the only one who would benefit from such > > a backport. > > When I was applying the patches I did not realize that there was already > hardware in the wild that needed it. The patches are now in mainline, so > I can no longer adjust the tags, but I will not object if you propose > them for stable. I want to propose to backport commit e4c9062717fe ("Input: elantech - fix protocol errors for some trackpoints in SMBus mode") to the active stable kernels. This commit repairs the track point and the touch pad buttons on a Lenovo Thinkpad E15 here. Without this change I don't get any events apart from an error message for each button press or move of the track point in the kernel log. (Also the error message is the same for all buttons and the track point, so I cannot create a new input event driver in userspace that emulates the right event depending on the error message :-) At least to 5.10.x it applies cleanly, I didn't try the older stable branches. Best regards and thanks Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ | [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: elan_i2c: failed to read report data: -71 2021-03-04 6:59 ` Uwe Kleine-König @ 2021-03-04 8:49 ` Nikolai Kostrigin 2021-03-04 13:38 ` Greg KH 2021-03-05 19:18 ` Uwe Kleine-König 2021-03-04 13:38 ` Greg KH 1 sibling, 2 replies; 13+ messages in thread From: Nikolai Kostrigin @ 2021-03-04 8:49 UTC (permalink / raw) To: stable Cc: jingle, kernel, linux-input, 'Dmitry Torokhov', Uwe Kleine-König Hi, 04.03.2021 09:59, Uwe Kleine-König пишет: > Hello, > > On Wed, Mar 03, 2021 at 05:53:37PM -0800, 'Dmitry Torokhov' wrote: >> On Wed, Mar 03, 2021 at 09:03:30PM +0100, Uwe Kleine-König wrote: >>> On Wed, Mar 03, 2021 at 07:32:23PM +0100, Uwe Kleine-König wrote: >>>> On Wed, Mar 03, 2021 at 11:13:21AM +0800, jingle wrote: >>>>> Please updates this patchs. >>>>> >>>>> 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 >>>> >>>> The first was one of the two patches I already tried, but the latter >>>> indeed fixes my problem \o/. >>>> >>>> @Dmitry: If you don't consider your tree stable, feel free to add a >>>> >>>> Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> >>>> >>>> to e4c9062717feda88900b566463228d1c4910af6d. >>> >>> Do you consider this patch for stable? I'd like to see it in Debian's >>> 5.10 kernel and I guess I'm not the only one who would benefit from such >>> a backport. >> >> When I was applying the patches I did not realize that there was already >> hardware in the wild that needed it. The patches are now in mainline, so >> I can no longer adjust the tags, but I will not object if you propose >> them for stable. > > I want to propose to backport commit > > e4c9062717fe ("Input: elantech - fix protocol errors for some trackpoints in SMBus mode") > > to the active stable kernels. This commit repairs the track point and > the touch pad buttons on a Lenovo Thinkpad E15 here. Without this change > I don't get any events apart from an error message for each button press > or move of the track point in the kernel log. (Also the error message is > the same for all buttons and the track point, so I cannot create a new > input event driver in userspace that emulates the right event depending > on the error message :-) > > At least to 5.10.x it applies cleanly, I didn't try the older stable > branches. > > Best regards and thanks > Uwe > I'd like to propose to backport [1] also as it was checked along with previously proposed patch and fixes Elan Trackpoint operation on Thinkpad L13. Both patches apply cleanly to 5.10.17 in my case. I also tried to apply to 5.4.x, but failed. [1] 056115daede8 Input: elan_i2c - add new trackpoint report type 0x5F Additional info is available here: https://lore.kernel.org/linux-input/fe31f6f8-6e38-2ed6-8548-6fa271bf36e9@basealt.ru/T/#m514047f2c5e7e2ec4ed9658782f14221ed7598fc -- Best regards, Nikolai Kostrigin ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: elan_i2c: failed to read report data: -71 2021-03-04 8:49 ` Nikolai Kostrigin @ 2021-03-04 13:38 ` Greg KH 2021-03-05 19:18 ` Uwe Kleine-König 1 sibling, 0 replies; 13+ messages in thread From: Greg KH @ 2021-03-04 13:38 UTC (permalink / raw) To: Nikolai Kostrigin Cc: stable, jingle, kernel, linux-input, 'Dmitry Torokhov', Uwe Kleine-König On Thu, Mar 04, 2021 at 11:49:59AM +0300, Nikolai Kostrigin wrote: > Hi, > > 04.03.2021 09:59, Uwe Kleine-König пишет: > > Hello, > > > > On Wed, Mar 03, 2021 at 05:53:37PM -0800, 'Dmitry Torokhov' wrote: > >> On Wed, Mar 03, 2021 at 09:03:30PM +0100, Uwe Kleine-König wrote: > >>> On Wed, Mar 03, 2021 at 07:32:23PM +0100, Uwe Kleine-König wrote: > >>>> On Wed, Mar 03, 2021 at 11:13:21AM +0800, jingle wrote: > >>>>> Please updates this patchs. > >>>>> > >>>>> 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 > >>>> > >>>> The first was one of the two patches I already tried, but the latter > >>>> indeed fixes my problem \o/. > >>>> > >>>> @Dmitry: If you don't consider your tree stable, feel free to add a > >>>> > >>>> Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> > >>>> > >>>> to e4c9062717feda88900b566463228d1c4910af6d. > >>> > >>> Do you consider this patch for stable? I'd like to see it in Debian's > >>> 5.10 kernel and I guess I'm not the only one who would benefit from such > >>> a backport. > >> > >> When I was applying the patches I did not realize that there was already > >> hardware in the wild that needed it. The patches are now in mainline, so > >> I can no longer adjust the tags, but I will not object if you propose > >> them for stable. > > > > I want to propose to backport commit > > > > e4c9062717fe ("Input: elantech - fix protocol errors for some trackpoints in SMBus mode") > > > > to the active stable kernels. This commit repairs the track point and > > the touch pad buttons on a Lenovo Thinkpad E15 here. Without this change > > I don't get any events apart from an error message for each button press > > or move of the track point in the kernel log. (Also the error message is > > the same for all buttons and the track point, so I cannot create a new > > input event driver in userspace that emulates the right event depending > > on the error message :-) > > > > At least to 5.10.x it applies cleanly, I didn't try the older stable > > branches. > > > > Best regards and thanks > > Uwe > > > > I'd like to propose to backport [1] also as it was checked along with > previously proposed patch and fixes Elan Trackpoint operation on > Thinkpad L13. > > Both patches apply cleanly to 5.10.17 in my case. > > I also tried to apply to 5.4.x, but failed. > > [1] 056115daede8 Input: elan_i2c - add new trackpoint report type 0x5F Applied to 5.10.y now, thanks. greg k-h ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: elan_i2c: failed to read report data: -71 2021-03-04 8:49 ` Nikolai Kostrigin 2021-03-04 13:38 ` Greg KH @ 2021-03-05 19:18 ` Uwe Kleine-König 1 sibling, 0 replies; 13+ messages in thread From: Uwe Kleine-König @ 2021-03-05 19:18 UTC (permalink / raw) To: Nikolai Kostrigin Cc: stable, 'Dmitry Torokhov', jingle, kernel, linux-input [-- Attachment #1: Type: text/plain, Size: 3395 bytes --] On Thu, Mar 04, 2021 at 11:49:59AM +0300, Nikolai Kostrigin wrote: > Hi, > > 04.03.2021 09:59, Uwe Kleine-König пишет: > > Hello, > > > > On Wed, Mar 03, 2021 at 05:53:37PM -0800, 'Dmitry Torokhov' wrote: > >> On Wed, Mar 03, 2021 at 09:03:30PM +0100, Uwe Kleine-König wrote: > >>> On Wed, Mar 03, 2021 at 07:32:23PM +0100, Uwe Kleine-König wrote: > >>>> On Wed, Mar 03, 2021 at 11:13:21AM +0800, jingle wrote: > >>>>> Please updates this patchs. > >>>>> > >>>>> 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 > >>>> > >>>> The first was one of the two patches I already tried, but the latter > >>>> indeed fixes my problem \o/. > >>>> > >>>> @Dmitry: If you don't consider your tree stable, feel free to add a > >>>> > >>>> Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> > >>>> > >>>> to e4c9062717feda88900b566463228d1c4910af6d. > >>> > >>> Do you consider this patch for stable? I'd like to see it in Debian's > >>> 5.10 kernel and I guess I'm not the only one who would benefit from such > >>> a backport. > >> > >> When I was applying the patches I did not realize that there was already > >> hardware in the wild that needed it. The patches are now in mainline, so > >> I can no longer adjust the tags, but I will not object if you propose > >> them for stable. > > > > I want to propose to backport commit > > > > e4c9062717fe ("Input: elantech - fix protocol errors for some trackpoints in SMBus mode") > > > > to the active stable kernels. This commit repairs the track point and > > the touch pad buttons on a Lenovo Thinkpad E15 here. Without this change > > I don't get any events apart from an error message for each button press > > or move of the track point in the kernel log. (Also the error message is > > the same for all buttons and the track point, so I cannot create a new > > input event driver in userspace that emulates the right event depending > > on the error message :-) > > > > At least to 5.10.x it applies cleanly, I didn't try the older stable > > branches. > > > > Best regards and thanks > > Uwe > > > > I'd like to propose to backport [1] also as it was checked along with > previously proposed patch and fixes Elan Trackpoint operation on > Thinkpad L13. > > Both patches apply cleanly to 5.10.17 in my case. > > I also tried to apply to 5.4.x, but failed. > > [1] 056115daede8 Input: elan_i2c - add new trackpoint report type 0x5F > > Additional info is available here: > > https://lore.kernel.org/linux-input/fe31f6f8-6e38-2ed6-8548-6fa271bf36e9@basealt.ru/T/#m514047f2c5e7e2ec4ed9658782f14221ed7598fc FTR: I tested 5.10 + e4c9062717fe ("Input: elantech - fix protocol errors for some trackpoints in SMBus mode") now and in this setup the touchpad is still broken. I assume that in combination with 056115daede8 it will work. The working setup I tested was 5.10 + c7f0169e3bd2 + 056115daede8 + e4c9062717fe and I assume c7f0169e3bd2 isn't relevant. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ | [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: elan_i2c: failed to read report data: -71 2021-03-04 6:59 ` Uwe Kleine-König 2021-03-04 8:49 ` Nikolai Kostrigin @ 2021-03-04 13:38 ` Greg KH 1 sibling, 0 replies; 13+ messages in thread From: Greg KH @ 2021-03-04 13:38 UTC (permalink / raw) To: Uwe Kleine-König Cc: stable, jingle, kernel, linux-input, 'Dmitry Torokhov' On Thu, Mar 04, 2021 at 07:59:58AM +0100, Uwe Kleine-König wrote: > Hello, > > On Wed, Mar 03, 2021 at 05:53:37PM -0800, 'Dmitry Torokhov' wrote: > > On Wed, Mar 03, 2021 at 09:03:30PM +0100, Uwe Kleine-König wrote: > > > On Wed, Mar 03, 2021 at 07:32:23PM +0100, Uwe Kleine-König wrote: > > > > On Wed, Mar 03, 2021 at 11:13:21AM +0800, jingle wrote: > > > > > Please updates this patchs. > > > > > > > > > > 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 > > > > > > > > The first was one of the two patches I already tried, but the latter > > > > indeed fixes my problem \o/. > > > > > > > > @Dmitry: If you don't consider your tree stable, feel free to add a > > > > > > > > Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> > > > > > > > > to e4c9062717feda88900b566463228d1c4910af6d. > > > > > > Do you consider this patch for stable? I'd like to see it in Debian's > > > 5.10 kernel and I guess I'm not the only one who would benefit from such > > > a backport. > > > > When I was applying the patches I did not realize that there was already > > hardware in the wild that needed it. The patches are now in mainline, so > > I can no longer adjust the tags, but I will not object if you propose > > them for stable. > > I want to propose to backport commit > > e4c9062717fe ("Input: elantech - fix protocol errors for some trackpoints in SMBus mode") > > to the active stable kernels. This commit repairs the track point and > the touch pad buttons on a Lenovo Thinkpad E15 here. Without this change > I don't get any events apart from an error message for each button press > or move of the track point in the kernel log. (Also the error message is > the same for all buttons and the track point, so I cannot create a new > input event driver in userspace that emulates the right event depending > on the error message :-) > > At least to 5.10.x it applies cleanly, I didn't try the older stable > branches. Now queued up. greg k-h ^ permalink raw reply [flat|nested] 13+ messages in thread
* RE: elan_i2c: failed to read report data: -71 2021-03-03 3:13 ` jingle 2021-03-03 18:32 ` Uwe Kleine-König @ 2021-03-26 9:00 ` Egor Ignatov 1 sibling, 0 replies; 13+ messages in thread From: Egor Ignatov @ 2021-03-26 9:00 UTC (permalink / raw) To: jingle.wu; +Cc: dmitry.torokhov, kernel, linux-input, u.kleine-koenig Hi, I have installed the latest 5.10 kernel on Lenovo L13 laptop and both touchpad and trackpoint work fine. But after resuming from hibernation mode trackpoint(and 3 buttons) stop working. The kernel log says: elan_i2c 14-0015: failed to read report data: -71 I assume this is because some initial trackpoint setup is done on the first boot. Then after hibernation the device resets. And the wake-up code doesn't set it up properly. Any help would be appreciated. ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2021-03-26 9:08 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-03-02 21:09 elan_i2c: failed to read report data: -71 Uwe Kleine-König 2021-03-03 1:26 ` Dmitry Torokhov 2021-03-03 10:41 ` Nikolai Kostrigin 2021-03-03 3:13 ` jingle 2021-03-03 18:32 ` Uwe Kleine-König 2021-03-03 20:03 ` Uwe Kleine-König 2021-03-04 1:53 ` 'Dmitry Torokhov' 2021-03-04 6:59 ` Uwe Kleine-König 2021-03-04 8:49 ` Nikolai Kostrigin 2021-03-04 13:38 ` Greg KH 2021-03-05 19:18 ` Uwe Kleine-König 2021-03-04 13:38 ` Greg KH 2021-03-26 9:00 ` Egor Ignatov
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).