Skip to contentSkip to conversation

Input: elan_i2c - fix X205TA iap version

PATCH In review Michele Curti 2 participants 2 messages Sep 12, 2015

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

PATCH 1/1 Input: elan_i2c - fix X205TA iap version

After commit commit 58f1eae48e53 ("Input: elan_i2c - use iap_version to get firmware information") the touchpad on the Asus X205TA does not work anymore, iap version is 0, so modify the switch-case index.

The 0x08 case was added for the X205TA in commit 534fcb3bdaab ("Input:
elan_i2c - enable ELAN0100 acpi panels")

---
 drivers/input/mouse/elan_i2c_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/mouse/elan_i2c_core.c +1 -1
index fa94530..c40a02d 100644
@@ -98,7 +98,7 @@ static int elan_get_fwinfo(u8 iap_version, u16 *validpage_count,
 			   u16 *signature_address)
 {
 	switch (iap_version) {
-	case 0x08:
+	case 0x00:
 		*validpage_count = 512;
 		break;
 	case 0x09:
Signature · 1 line
2.5.1
maintainer
#1 lore raw

HI Michele,

Quoted 7 lines · Michele Curti

After commit commit 58f1eae48e53 ("Input: elan_i2c - use iap_version to get firmware information") the touchpad on the Asus X205TA does not work anymore, iap version is 0, so modify the switch-case index.

The 0x08 case was added for the X205TA in commit 534fcb3bdaab ("Input:
elan_i2c - enable ELAN0100 acpi panels")

I'll sit on this patch a bit - I have a feeling will have to revert 58f1eae48e53.

Thanks.

Quoted 21 lines
---
 drivers/input/mouse/elan_i2c_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/mouse/elan_i2c_core.c +1 -2
index fa94530..c40a02d 100644
@@ -98,7 +98,7 @@ static int elan_get_fwinfo(u8 iap_version, u16 *validpage_count,
                           u16 *signature_address)
 {
        switch (iap_version) {
-       case 0x08:
+       case 0x00:
                *validpage_count = 512;
                break;
        case 0x09:
--

2.5.1

Signature · 1 line
Dmitry