fwupd/plugins/elantp
Richard Hughes 1a077289bc Speed up daemon startup by 15%
During my fwupd startup fu_plugin_has_custom_flag gets called 21 times
which causes all HWIDs to be enumerated with 346 calls to the quite
expensive fu_context_lookup_quirk_by_id() function.

Move the flag to a private hashset and enumerate the HWIDs only during
startup. There's nothing plugin specific about them anyway...
2021-11-03 07:14:37 +00:00
..
tests Move the fuzzing files into the plugin directories 2021-10-22 15:24:05 +01:00
elantp.quirk Simplify the quirk file format 2021-03-03 08:30:34 +00:00
fu-elantp-common.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-elantp-common.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-elantp-firmware.c trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-elantp-firmware.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-elantp-hid-device.c Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fu-elantp-hid-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-elantp-i2c-device.c Allow using a per-device global percentage completion 2021-09-13 14:28:15 +01:00
fu-elantp-i2c-device.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-plugin-elantp.c Speed up daemon startup by 15% 2021-11-03 07:14:37 +00:00
fu-self-test.c Move the fuzzing files into the plugin directories 2021-10-22 15:24:05 +01:00
meson.build Move the fuzzing files into the plugin directories 2021-10-22 15:24:05 +01:00
README.md trivial: update markdown for pre-commit style 2021-07-18 14:42:47 -05:00

Elan TouchPad

Introduction

This plugin allows updating Touchpad devices from Elan. Devices are enumerated using HID and raw I²C nodes. The I²C mode is used for firmware recovery.

Firmware Format

The daemon will decompress the cabinet archive and extract a firmware blob in an unspecified binary file format.

This plugin supports the following protocol ID:

  • tw.com.emc.elantp

GUID Generation

These device uses the standard DeviceInstanceId values, e.g.

  • HIDRAW\VEN_04F3&DEV_3010

Additionally another instance ID is added which corresponds to the module ID:

  • HIDRAW\VEN_04F3&DEV_3010&MOD_1234

These devices also use custom GUID values for the IC configuration, e.g.

  • ELANTP\ICTYPE_09

Additionally another instance ID is added which corresponds to the IC type & module ID:

  • ELANTP\ICTYPE_09&MOD_1234

Update Behavior

The device usually presents in HID mode, and the firmware is written to the device by switching to a IAP mode where the touchpad is nonfunctional. Once complete the device is reset to get out of IAP mode and to load the new firmware version.

On flash failure the device is nonfunctional, but is recoverable by writing to the i2c device. This is typically much slower than updating the device using HID and also requires a model-specific HWID quirk to match.

Vendor ID Security

The vendor ID is set from the HID vendor, for example set to HIDRAW:0x17EF

Quirk Use

This plugin uses the following plugin-specific quirks:

ElantpIcPageCount

The IC page count.

Since: 1.4.6

ElantpIapPassword

The IAP password.

Since: 1.4.6

External Interface Access

This plugin requires ioctl access to HIDIOCSFEATURE and HIDIOCGFEATURE.