Age | Commit message (Collapse) | Author |
|
(cherry picked from commit cf807718a2a6802475be33bff400835d447e5bff)
Signed-off-by: Benson Leung <bleung@google.com>
Bug: 24809436
Change-Id: I3bdd5c1b4aca08c9ed8fa524472bdb52285be125
|
|
Signed-off-by: Benson Leung <bleung@google.com>
Bug: 24809436
(cherry picked from commit 757b6f6c072b023dd42d71dfb65417987a611234)
Change-Id: I57d6cd10f0d775fc4dfdbe51fd8b76ba4038eef6
|
|
Most HID devices allow appending the reflash command to the end of the firmware
block. This avoids sending a second report with the just the command. Also, after
the block is written HID devices send an attention report. Only read the F34 control
registers if waiting for that attention report times out.
Signed-off-by: Benson Leung <bleung@google.com>
Bug: 24809436
(cherry picked from commit 76743e425429076626df483691ce7abe563abd81)
Change-Id: I0a3276d77605843cbb6ddec221320a6048d7b925
|
|
|
|
|
|
Addresses security concern:
All users of Read and Write fail to check for return value being equal
to desired write size (only look for <0, not a size >= 0 but less than
expected). This can lead to all kinds of corruption or overflows.
|
|
|
|
of input reports changed
If the firmware configuration has changed then the size of input reports between the
bootloader and the UI may be different. Forcing a rebind of the driver when switching modes
will update the transport drivers of the new input report size.
|
|
In some cases during firmware update the size of the input reports can change
this commit allows for the unbinding and rebinding of the transport HID device to force
a reload of the HID descriptors so that the new size if read by the HID transport
drivers.
|
|
image is not newer then the firmware on the device
|
|
flash programming
|
|
|
|
|
|
before reading from the
device. Also, merge the extract header and initialize functions.
|
|
|
|
can be fixed otherwise it will be really slow. But, this will only happen if something is broken in the driver.
|
|
|
|
|
|
|
|
|