summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-12-23elanspi: Try to avoid cancellation problemsmincrmatt12/elanspi-fix-cancelmincrmatt121-1/+8
2021-12-22elanspi: Adjust register tables (fixes #438)mincrmatt122-4/+41
New values taken from a newer version of the official driver.
2021-12-16Allow FpPrint data to be extended on enrollment.Dmitrii Shcherbakov9-52/+305
* Allow FPI_PRINT_NBIS to be extended rather than overridden if a user supplies an existing FpPrint template with data; * Prints will only be extended if a device has the required feature. For image-based devices this feature is added by default since they typically do not have storage (this can be overridden at the child class level). Extending an existing FpPrint requires passing a template print with existing data during the enrollment process. This is done because the caller is responsible for maintaining the fingerprint database and doing the necessary deserialization operations if needed. The existing example program is updated to show how to do that.
2021-12-02elanspi: Silence some SSMs that may log excessively otherwiseBenjamin Berg1-0/+5
2021-12-02ssm: Add API to silence most state change debug messagesBenjamin Berg3-7/+28
Otherwise tightly looping SSMs (primarily SPI transfers), will flood the logs in inappropriate ways.
2021-12-02elanspi: Move debug print so that it contains all informationBenjamin Berg1-2/+2
Two of the printed variables were only calculated after the message was printed, making the logged information less useful than it could be.
2021-12-01context: Ensure mainloop is idle before enumeration completesBenjamin Berg1-2/+14
This ensures that we have processed all hotplug events before considering enumeration to be complete. This is important due to USB persist being turned off. At resume time, devices will disappear and immediately re-appear. In this situatoin, enumerate could first see the old state with a removed device resulting in it to not be discovered. As a hotplug event is semingly emitted by the kernel immediately, we can simply make sure to process this hotplug event before returning from enumerate. Closes: fprintd#119
2021-11-15doc: Fix broken documentation for FpiDeviceUdevSubtypeFlags enumMatthew Mirvish1-1/+3
Added description and fixed incorrect name in comment, so now gtkdoc actually shows useful information.
2021-11-02Release 1.94.2v1.94.2Benjamin Berg2-1/+8
2021-11-02udev-hwdb: Update unsupported device listBenjamin Berg2-0/+2
2021-10-28doc: Add missing Drivers API SSM functionsMarco Trevisan (Treviño)1-0/+3
2021-10-28doc: Include missing types (SPI) and functions to the Drivers APIMarco Trevisan (Treviño)2-1/+20
2021-10-27goodixmoc: Fix template struct for required length calculationBenjamin Berg1-2/+4
The length is only a single byte in the transfer. However, the struct had a uint32_t in that place, breaking the sizeof() calculation and seemingly creating issues for certain lengths of user id strings (which depend on the username). Fix this by changing the type to uint8_t. Also add the initial 0x43 prefix byte and a byte of apparent padding that the struct contains. Leave the two reserved bytes at the end, as they seem to actually have a meaning (i.e. they are seemingly send in listings). This effectively makes the struct one byte smaller, bringing it down to 127 bytes from 128 bytes. Closes: #428, #404
2021-10-27tests: Add missing trailing new lines on devices attributesMarco Trevisan (Treviño)3-436/+436
This as per the same reasons of commit 63bfaf4, and without trailing new lines such attributes aren't picked by umockdev in ubuntu and debian.
2021-10-20goodixmoc: add PID 63CCboger2-0/+3
63CC: Dell Latitude series fingerprint sensor
2021-10-12elanmoc: add PID 0x0c7dhermanlin2-0/+2
Signed-off-by: hermanlin <herman.lin@emc.com.tw>
2021-09-24Release 1.94.1v1.94.1Benjamin Berg2-1/+11
2021-09-24NEWS: Fix 1.94.0 release dateBenjamin Berg1-1/+1
2021-09-24goodixmoc: Do not run identify step during enrollBenjamin Berg4-316/+106
While useful, there are advantages for this to be done by the surrounding code (i.e. fprintd). As such, remove the identify stage from the goodix driver and rely on fprintd doing it for us. One can probably argue that neither solution is perfect. Ideally, we would probably return the information required to delete the old print to the upper stack and let the driver/device handle the duplicate checking. However, for now this works well. We may need to reconsider this if we get devices that do the duplicate checking transparently and just throw an enroll error. NOTE: The driver did not report any progress for the identify step. As such, the number of enroll steps reported by the device remain the same. Closes: #415
2021-09-21goodixmoc: Returned device print matched by verify/identifyBenjamin Berg1-44/+46
This is needed for the fprintd duplicate checking code. The information is needed to delete stale prints automatically from the device. Related: #415
2021-09-21tests: Run custom.py from test creation helper when availableBenjamin Berg2-11/+22
This allows creating tests both for image and non-image devices using the same script.
2021-09-17goodixmoc: add PID 63BCboger2-0/+3
63BC: Dell XPS series fingerprint sensor
2021-09-17udev-hwdb: Update unsupported device listBenjamin Berg2-0/+2
2021-09-17udev-hwdb: Set ID_PERSIST=0 in hwdbBenjamin Berg2-1/+29
See https://github.com/systemd/systemd/pull/20756
2021-09-17synaptics: add new PID 0x0123, 0x0126, and 0x0129Aris Lin2-0/+6
2021-09-15ci: Reference image directly for forksBenjamin Berg1-6/+3
Otherwise forks will not find the image and things fall apart (due to the method of how we build the image).
2021-09-15ci: Pull in diffutilsBenjamin Berg1-0/+1
It is needed by tests/test-generated-hwdb.sh and is not pulled in indirectly anymore.
2021-09-15ci: Switch to newer CI templatesBenjamin Berg1-4/+9
2021-09-15elanmoc: Fix warningBenjamin Berg1-1/+1
Really, it shouldn't matter, as there is no return. But adding the NULL initializer does not harm either.
2021-09-15meson: Use source_root() to not require meson 0.56Benjamin Berg1-2/+2
This fixes the flatpak build.
2021-09-15tests: Simplify capture of driver behaviour for regression testsBastien Nocera3-47/+184
And update instructions for the simpler method. Co-authored-by: Benjamin Berg <bberg@redhat.com>
2021-09-15device: Export kernel device from FpDeviceBastien Nocera1-3/+22
This is inelegant, but allows API consumers to match the FpDevice with an OS device.
2021-09-09tests: Add U.are.U 4500 testBastien Nocera4-0/+221
2021-09-08tests: Add uru4000 testBastien Nocera5-1/+222
This test requires control transfer replay fixes that will be contained in umockdev 0.16.3. Bump the requirement accordingly. Closes: #412
2021-09-08uru4000: Fix transfer type on interrupt endpointBenjamin Berg1-3/+3
It appears the kernel automatically "fixes" this mistake and it works. the transfer in question is an interrupt transfer and should be submitted as such. Do that in order to make things more correct and so that the test can run.
2021-09-08tests: Add (another) elan driver replay testBastien Nocera4-0/+218
This capture was made using a "COBO" branded device, and uses the new pcapng format.
2021-09-08tests: Add aes2501 driver replay testBastien Nocera4-0/+224
2021-09-08tests: Simplify multiple tests per driver codeBastien Nocera1-5/+1
2021-09-06Revert "device: Export kernel device from FpDevice"Bastien Nocera1-22/+3
This reverts commit 8f93aef1221eb1b2dfc81c5dbacede8a07b86118.
2021-09-06Revert "tests: Simplify capture of driver behaviour for regression tests"Bastien Nocera3-149/+47
This reverts commit 0dcb4be4d30197b02a6fddba34ce6f7b393cec6c.
2021-09-06tests: Simplify capture of driver behaviour for regression testsBastien Nocera3-47/+149
And update instructions for the simpler method.
2021-09-06device: Export kernel device from FpDeviceBastien Nocera1-3/+22
This is inelegant, but allows API consumers to match the FpDevice with an OS device.
2021-09-03fp-context: Fix typo in API docsBastien Nocera1-1/+1
2021-09-03fpi-device: Do not include config.h in headersMarco Trevisan (Treviño)1-2/+0
It should be included in files requiring it only.
2021-08-20Release 1.94.0Benjamin Berg2-1/+13
2021-08-20doc: Add internal suspend/resume APIBenjamin Berg1-1/+3
2021-08-20doc: Add public suspend/resume APIBenjamin Berg1-0/+6
2021-08-19doc: Add criticial section APIBenjamin Berg1-0/+2
2021-08-19udev-hwdb: Update unsupported list (add synaptics PID 00e7)Benjamin Berg2-0/+2
2021-08-19virtual-device: Return empty no-match if unknown SCAN id is passedBenjamin Berg3-36/+19
This matches the expectation. i.e. we return no-match and we do not return a scanned print as we don't have anything for it. If we did indeed return a scanned print, then fprintd would try to delete it during enroll and would then fail. Note that we do *not* return a DATA_NOT_FOUND error in the storage device if the print does not exist. This is because not all devices support reporting this error. It is therefore more sensible to handle it gracefully and expect test setups to set the error explicitly for testing purposes.