Skip to contentSkip to conversation

Input: elantech - add LEN2146 to SMBus blacklist for ThinkPad L13 Gen2

PATCH In review Nikolai Kostrigin 3 participants 3 messages Feb 8, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: elantech - add LEN2146 to SMBus blacklist for ThinkPad L13 Gen2

ThinkPad L13 Gen2 has both touchpad and trackpoint.
PNP: LEN2146 PNP0f13
With the default protocol (elantech-smbus) trackpoint is not operating, while touchpad does. Changing to elantech renders both operational.

---
 drivers/input/mouse/elantech.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/mouse/elantech.c +1 -0
index 90f8765f9efc..c4c3fa5828d8 100644
@@ -1776,6 +1776,7 @@ static const char * const i2c_blacklist_pnp_ids[] = {
 	 * These are known to not be working properly as bits are missing
 	 * in elan_i2c.
 	 */
+	"LEN2146", /* ThinkPad L13 Gen2 */
 	NULL
 };
 
Signature · 1 line
2.29.2
#1 lore raw

Hi Nikolai,

Quoted 7 lines · Nikolai Kostrigin

ThinkPad L13 Gen2 has both touchpad and trackpoint.
PNP: LEN2146 PNP0f13
With the default protocol (elantech-smbus) trackpoint is not operating, while touchpad does. Changing to elantech renders both operational.

Instead of downgrading the capabilities of the touchpad, couldn't we fix the trackpoint issues?

I am surprised elantech doesn't work with the trackpoint, because I am pretty sure I wrote patches in that regard. Which kernel version have you been testing?

Cheers,
Benjamin

Quoted 19 lines
---
 drivers/input/mouse/elantech.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/mouse/elantech.c +1 -1
index 90f8765f9efc..c4c3fa5828d8 100644
@@ -1776,6 +1776,7 @@ static const char * const i2c_blacklist_pnp_ids[] = {
         * These are known to not be working properly as bits are missing
         * in elan_i2c.
         */
+       "LEN2146", /* ThinkPad L13 Gen2 */
        NULL
 };
 
--

2.29.2

#2 lore raw

Hi, Benjamin!

08.02.2021 11:06, Benjamin Tissoires пишет:

Quoted 11 lines

Hi Nikolai,

Quoted 6 lines · Nikolai Kostrigin

ThinkPad L13 Gen2 has both touchpad and trackpoint.
PNP: LEN2146 PNP0f13
With the default protocol (elantech-smbus) trackpoint is not operating, while touchpad does. Changing to elantech renders both operational.

Instead of downgrading the capabilities of the touchpad, couldn't we fix the trackpoint issues?

Yes, I consider fixing the issue would be better than downgrading touchpad capabilities.
Blacklisting was the first and most obvious idea to test.

I'm eager to perform additional diagnostics to choose a better solution. Your advice would be appreciated.

Quoted 4 lines

I am surprised elantech doesn't work with the trackpoint, because I am pretty sure I wrote patches in that regard. Which kernel version have you been testing?

The patch was tested with 5.10.13 only, but the trackpoint behaviour is the same on 5.4.92.

Quoted 24 lines

Cheers,
Benjamin

Quoted 19 lines
---
 drivers/input/mouse/elantech.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/mouse/elantech.c +1 -1
index 90f8765f9efc..c4c3fa5828d8 100644
@@ -1776,6 +1776,7 @@ static const char * const i2c_blacklist_pnp_ids[] = {
         * These are known to not be working properly as bits are missing
         * in elan_i2c.
         */
+       "LEN2146", /* ThinkPad L13 Gen2 */
        NULL
 };
 
--

2.29.2

Signature · 2 lines
Best regards,
Nikolai Kostrigin