mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 07:00:30 +00:00
synaptics-rmi: Speed up reading the PDT from 900ms to 30ms
Don't continue to scan pages after the last function.
This commit is contained in:
parent
d837ca8c28
commit
b8e97e56c3
@ -394,6 +394,7 @@ fu_synaptics_rmi_device_scan_pdt (FuSynapticsRmiDevice *self, GError **error)
|
||||
|
||||
/* scan pages */
|
||||
for (guint page = 0; page < RMI_DEVICE_MAX_PAGE; page++) {
|
||||
gboolean found = FALSE;
|
||||
guint32 page_start = RMI_DEVICE_PAGE_SIZE * page;
|
||||
guint32 pdt_start = page_start + RMI_DEVICE_PAGE_SCAN_START;
|
||||
guint32 pdt_end = page_start + RMI_DEVICE_PAGE_SCAN_END;
|
||||
@ -418,7 +419,10 @@ fu_synaptics_rmi_device_scan_pdt (FuSynapticsRmiDevice *self, GError **error)
|
||||
break;
|
||||
interrupt_count += func->interrupt_source_count;
|
||||
g_ptr_array_add (priv->functions, g_steal_pointer (&func));
|
||||
found = TRUE;
|
||||
}
|
||||
if (!found)
|
||||
break;
|
||||
}
|
||||
|
||||
/* see docs */
|
||||
|
Loading…
Reference in New Issue
Block a user