From bde868f05e022ce3657a0fb5e49869c04f281d64 Mon Sep 17 00:00:00 2001 From: Aris Lin Date: Thu, 5 Jun 2025 11:20:12 +0800 Subject: [PATCH] synaptics: add usb reset in probe to recover stall condition --- libfprint/drivers/synaptics/synaptics.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c index c0228fbd..705a3c2d 100644 --- a/libfprint/drivers/synaptics/synaptics.c +++ b/libfprint/drivers/synaptics/synaptics.c @@ -1254,6 +1254,12 @@ dev_probe (FpDevice *device) return; } + if (!g_usb_device_reset (usb_dev, &error)) + { + fp_dbg ("%s g_usb_device_reset failed %s", G_STRFUNC, error->message); + goto err_close; + } + if (!g_usb_device_claim_interface (usb_dev, 0, 0, &error)) goto err_close;